Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50158

[SOLVED] How to get filename of file just opened

$
0
0
Hi guys and gals,

I am sure this will be super-easy to answer, but I am blanked out a bit.
At a certain point in my VBA code, I'm prompting the user to open a file, which I need to refer to in the rest of the macro.
How can I see if the user actually opened a file and if so, how do I get the filename that's just opened?

I use the following line to show the file open popup.
Code:

Application.Dialogs(xlDialogOpen).Show
Thanks in advance for all help :)

Viewing all articles
Browse latest Browse all 50158

Trending Articles