P
PaxDak
I'm new to VBA in Word. In Excel, I would use Application.GetOpenFileName
to bring up a browser window to allow the user to browse for a specific
file, and then return the selected file as a string.
Is there something equivalent in Word?
I saw the Copy File dialog on the MVP site:
With Dialogs(wdDialogCopyFile)
If .Display <> 0 Then
MsgBox "You chose " & .Directory
Else
MsgBox "Dialog cancelled"
End If
End With
Which returns just the folder path. Looking for the same thing that returns
the file name also. Would also like to set what the the default folder path
is (i.e. the default folder that the browse window opens in).
Any help would be appreciated.
-Pax
to bring up a browser window to allow the user to browse for a specific
file, and then return the selected file as a string.
Is there something equivalent in Word?
I saw the Copy File dialog on the MVP site:
With Dialogs(wdDialogCopyFile)
If .Display <> 0 Then
MsgBox "You chose " & .Directory
Else
MsgBox "Dialog cancelled"
End If
End With
Which returns just the folder path. Looking for the same thing that returns
the file name also. Would also like to set what the the default folder path
is (i.e. the default folder that the browse window opens in).
Any help would be appreciated.
-Pax