Excel VBA Code Question

T

Theresa

Hello:

I have a macro that opens a specified file. I want the
macro to open any file that I specify in a popup box.

Does anyone have any idea how I can do this?

Thanks.
 
D

Dick Kusleika

Theresa

You can use

Application.GetOpenFilename

that will provide you with the standard File - Open dialog through which you
can change folders and search for files. The GetOpenFilename method returns
a string that is the file name. You still have to open that workbook via
code.
 

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