7 replies
by a.douwes
by rhbb
by mike_molloy
There is a method called GETOPENFILENAME that you can use to present the file open dialog box to the users and let them pick a file to open. It doesn't actually open the file, you have to use a second statement to do that. This statement will put the name in a variable, and you use the variable in the file open statement.
You can apply a file file (*.xls, etc)if you wish, and you have a couple of other option that are described in the vba help item for the method.
by rhbb
by bdeitrick
Here's a little sub that shows you how to get a filename and open that file:
Sub PromptToOpenFile()
Application.Workbooks.Open Application.GetOpenFilename
End Sub
Bernie
by rhbb
by rhbb
This discussion is closed to new replies.
Trending Software posts
Sort by Trending