[RESOLVED] Multiselect in Common Dialog Open (.FileName Not Returning List)
I am using a common dialog open control to open multiple files. Here is my code.
VB Code:
'On Error GoTo EndIt
CD1.Flags = cdlOFNAllowMultiselect + cdlOFNExplorer
CD1.InitDir = App.Path
CD1.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*"
'CD1.MaxFileSize = 32767
CD1.ShowOpen
MsgBox CD1.FileName
When I select 1 file I get a msgbox with it's full path, but if I select multiple files all that is in the msgbox is the path to the folder of the selections (and not the file names).
If I remove the cdlOFNExplorer flag then I get the ugly Win95 dialog, but I get the proper value for CD1.Filename.
Any ideas?
1 Attachment(s)
Re: Multiselect in Common Dialog Open (.FileName Not Returning List)
So, you want the Class Module I use for that? :D
BrowseForFolderDialog and FileDialog coming up!
Re: Multiselect in Common Dialog Open (.FileName Not Returning List)
Thanks Merri, you know what I am using them for anyway. ;)
Re: [RESOLVED] Multiselect in Common Dialog Open (.FileName Not Returning List)
Yup, I know. Atleast it is a good thing they're of some use :) Bothered enough sometime to analyze through a few different codes and put together the ones that actually work. Hope there isn't a bug, I haven't had a throughoutly test of them. Though seems I can select a thousand files and it still works properly, so... :)