Open File Dialog Box on UserForm

S

scantor145

Excel 2003 w/Visual Basic 6.3

There is no Common Dialog Box control in VB 6.3. Is there another way
to place a File Open Dialog Box onto a UserForm?
 
T

Tom Ogilvy

Not on the form, but you can use

fname = Application.GetOpenfileName()

However, this seems to make the userform modeless, so you might hide the
form first, then reshow it after the file is selected. Note that the
GetOpenfileName does not open the file, just returns the file name selected.
 

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