How do I save the index of a listbox as a file ?
I’m not clear what index you are talking about. Lets review all possibilities: 1)Index property of listbox controls array: Open “c:\temp.txt” For Output As 1 Print #1, Listbox1(n).Index Close #1 2)ListIndex property of listbox (index of currently selected item): Open “c:\temp.txt” For Output As 1 Print #1, Listbox1.ListIndex Close #1 3)Contents of the listbox (all the elements in listbox): Open “c:\temp.txt” For Output As 1 For i=0 To Listbox1.ListCount-1 Print #1, Listbox1.