Dialogs

J

JB

How can I display a dialog that will allow the user to point to the location
of a file and return the path and filename info to me without opening or
saving the file?

Cheers
 
J

Jonathan West

Hi JB

Try this

With Dialogs(wdDialogFileOpen)
If .Display = -1 Then
MsgBox "Selected file is" & vbCr & _
WordBasic.FileNameInfo$(.Name, 1)
Else
MsgBox "No file selected"
End If
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top