How Do I Select a File From The Server?

K

Kenji

Within VBA code, I would like to popup a screen so the user can select a
file from his computer and VBA knows what it is.

I tried using Common Dialog Box, but I found that many Office users did not
have this library.

What can I do?

Kenji
 
A

Andy Wiggins

Here's a piece of code from Excel's Help file:

fileToOpen = Application.GetOpenFilename("Text Files (*.txt), *.txt")
If fileToOpen <> False Then
MsgBox "Open " & fileToOpen
End If


--
Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"
 

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