lucas.conceicao237868
2011-02-21, 03:18 PM
Hello everybody,
I have a code that open multiselected files.
Set objFile = New FileDialogs
strFilter = "Files |*.dwg;*.dxf;*.tiff"
objFile.OwnerHwnd = ThisDrawing.HWND
objFile.Title = "Open a drawing"
objFile.MultiSelect = True
objFile.StartInDir = "c:\"
objFile.Filter = strFilter
strFileName = objFile.ShowOpen
If Not strFileName = vbNullString Then
MsgBox strFileName
End If
Set objFile = Nothing
When i select for example 2 files, MsgBox Show me a message like this --> D:\Lucas\Drwaings\drawing1.dwg drawing2.dwg
I want to know how can i get the fileNames.
After i get the file names i have to add them in 2 listBoxes.
ANybody have any iDEA?
Thanks.
I have a code that open multiselected files.
Set objFile = New FileDialogs
strFilter = "Files |*.dwg;*.dxf;*.tiff"
objFile.OwnerHwnd = ThisDrawing.HWND
objFile.Title = "Open a drawing"
objFile.MultiSelect = True
objFile.StartInDir = "c:\"
objFile.Filter = strFilter
strFileName = objFile.ShowOpen
If Not strFileName = vbNullString Then
MsgBox strFileName
End If
Set objFile = Nothing
When i select for example 2 files, MsgBox Show me a message like this --> D:\Lucas\Drwaings\drawing1.dwg drawing2.dwg
I want to know how can i get the fileNames.
After i get the file names i have to add them in 2 listBoxes.
ANybody have any iDEA?
Thanks.