D
Dave Yeager
Hey everybody! As a person relatively new to VBA
programming, this newsgroup has been tremendously
helpful. A thank you to everyone who takes the time out
of their day to answer questions!
That being said, here's another one:
I'm trying to build into a custom form a command box that
would allow the user to select a file from their
directories, then have that info including the full path
be filled in to the dialog box. Perhaps code will further
explain:
Private Sub btnBrowse_Click()
With Dialogs(wdDialogFileOpen)
.Display
frmDataSelect.txtSource = .Name
End With
End Sub
"frmDataSelect" would be the custom form and "txtSource"
the text box where the filename is returned. This code
only gives the filename without the path present. Is
there a way I can have the entire file path returned?
-Dave
programming, this newsgroup has been tremendously
helpful. A thank you to everyone who takes the time out
of their day to answer questions!
That being said, here's another one:
I'm trying to build into a custom form a command box that
would allow the user to select a file from their
directories, then have that info including the full path
be filled in to the dialog box. Perhaps code will further
explain:
Private Sub btnBrowse_Click()
With Dialogs(wdDialogFileOpen)
.Display
frmDataSelect.txtSource = .Name
End With
End Sub
"frmDataSelect" would be the custom form and "txtSource"
the text box where the filename is returned. This code
only gives the filename without the path present. Is
there a way I can have the entire file path returned?
-Dave