P
Paula
I am trying to get back a path to a selected file using
the following code, but can only get the filename.
Can anyone help?
Thanks
Sub GetFilePath()
Dim sFilename As String
Dim sFilePath As String
Dim dlgSaveAs As Dialog
Set dlgSaveAs = Dialogs(wdDialogFileOpen)
dlgSaveAs.Display
sFilename = dlgSaveAs.Name
sFilePath = dlgSaveAs.????
MsgBox sFilePath & "\" & sFilename
End Sub
the following code, but can only get the filename.
Can anyone help?
Thanks
Sub GetFilePath()
Dim sFilename As String
Dim sFilePath As String
Dim dlgSaveAs As Dialog
Set dlgSaveAs = Dialogs(wdDialogFileOpen)
dlgSaveAs.Display
sFilename = dlgSaveAs.Name
sFilePath = dlgSaveAs.????
MsgBox sFilePath & "\" & sFilename
End Sub