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?




Reply With Quote