Saving ListBox information to a file.?
Hi, I'm trying to save information inside of a ListBox to a *.txt file.
This is the code im using:
Private Sub cmdSave_Click()
Dim FileName As String
dlgFile.Action = 2
FileName = dlgFile.FileName
F = FreeFile
Open FileName For Output As #F
Print #F, lstPolicy.text
Close #F
End Sub
I can get information in a textbox and label to save to a file but i cant seem to get the right ListBox property to save the lstpolicy information to a file. Can anyone help me?
-Flaw