I'm having a problem with the FileListBox.Selected property. I have searched on here but nothing comes to light.
Set File1.MultiSelect = 2 (extended). But how can I obtain each file name that I choose (multi select)? Let say I choose/highlighted 3 files from the file list box. I want them to be display on msgbox, but how??
It only displays the last file selected in the msgbox. What am I missing.
VB Code:
Private Sub cmdDisplay_Click() Dim count As Integer Dim N As Integer count = File1.ListCount For N = 0 To count - 1 If File1.Selected(N) = True Then MsgBox File1.FileName End If Next End Sub
Thanks.




Reply With Quote