I'm using the exact code in two different forms. In one form it works fine, on the other I get this message:
Method 'FileDialog' of object'_Application' failed
This is the code:
With Application.FileDialog(msoFileDialogOpen)
.AllowMultiSelect = False
.InitialFileName = Path
.Show
rtnFile = .SelectedItems(1)
End With
I haven't the slightest idea what it is not liking. Any suggestions?
(I'm quite certain the Path is not the problem)
Method 'FileDialog' of object'_Application' failed
This is the code:
With Application.FileDialog(msoFileDialogOpen)
.AllowMultiSelect = False
.InitialFileName = Path
.Show
rtnFile = .SelectedItems(1)
End With
I haven't the slightest idea what it is not liking. Any suggestions?
(I'm quite certain the Path is not the problem)