ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open File Dialog Box on UserForm (https://www.excelbanter.com/excel-programming/335577-open-file-dialog-box-userform.html)

scantor145[_19_]

Open File Dialog Box on UserForm
 

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?


--
scantor145
------------------------------------------------------------------------
scantor145's Profile: http://www.excelforum.com/member.php...o&userid=14766
View this thread: http://www.excelforum.com/showthread...hreadid=390288


Tom Ogilvy

Open File Dialog Box on UserForm
 
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.

--
Regards,
Tom Ogilvy

"scantor145" wrote
in message ...

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?


--
scantor145
------------------------------------------------------------------------
scantor145's Profile:

http://www.excelforum.com/member.php...o&userid=14766
View this thread: http://www.excelforum.com/showthread...hreadid=390288





All times are GMT +1. The time now is 10:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com