T
Tim Childs
Hi
I used the VB Example code from Microsoft Help but wanted to select MULTIPLE
files and have Option Explicit declared. The error trapping no longer worked
properly for no file being selected n the dialog box- can someone give me a
hand in getting it to work.
Thanks
Tim
Option Explicit
Sub ImportBudgetFileData()
Dim FileToOpen
FileToOpen = Application _
.GetOpenFilename("Text Files (*.xls), *.xls", , , , True)
'If FileToOpen(1) <> False Then
' MsgBox "Open " & FileToOpen
'End If
I used the VB Example code from Microsoft Help but wanted to select MULTIPLE
files and have Option Explicit declared. The error trapping no longer worked
properly for no file being selected n the dialog box- can someone give me a
hand in getting it to work.
Thanks
Tim
Option Explicit
Sub ImportBudgetFileData()
Dim FileToOpen
FileToOpen = Application _
.GetOpenFilename("Text Files (*.xls), *.xls", , , , True)
'If FileToOpen(1) <> False Then
' MsgBox "Open " & FileToOpen
'End If