RogerCooper
Registered User.
- Local time
- Yesterday, 21:11
- Joined
- Jul 30, 2014
- Messages
- 390
I need to have a user select a file for further operations using a normal dialog. I tried this code, but nothing happens, not even an error.
I have the Microsoft Office 16.0 object library in references. Is there a better way to do this?
Code:
Dim FileName As String
Dim FD As FileDialog
Set FD = Application.FileDialog(msoFileDialogFilePicker)
FileName = FD.InitialFileName
I have the Microsoft Office 16.0 object library in references. Is there a better way to do this?