ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   File Dialog (https://www.excelbanter.com/excel-programming/305950-file-dialog.html)

luis

File Dialog
 
Hello.
I'm writing a macro and what i'd like to do is the
following:
The macro has a source file, that could be on many
different locations and with different names. How can i
open a dialog box to browse for the source file, and when
the user double clicks on the file then the macro
continues execution using this file?

Thanks

Luis


Frank Kabel

File Dialog
 
Hi
have a look at
GetOpenFilename
in the VBA help

--
Regards
Frank Kabel
Frankfurt, Germany


Luis wrote:
Hello.
I'm writing a macro and what i'd like to do is the
following:
The macro has a source file, that could be on many
different locations and with different names. How can i
open a dialog box to browse for the source file, and when
the user double clicks on the file then the macro
continues execution using this file?

Thanks

Luis


luis

File Dialog
 
Perfect!
Thanks a lot!


-----Original Message-----
Hi
have a look at
GetOpenFilename
in the VBA help

--
Regards
Frank Kabel
Frankfurt, Germany


Luis wrote:
Hello.
I'm writing a macro and what i'd like to do is the
following:
The macro has a source file, that could be on many
different locations and with different names. How can i
open a dialog box to browse for the source file, and

when
the user double clicks on the file then the macro
continues execution using this file?

Thanks

Luis

.



All times are GMT +1. The time now is 12:01 AM.

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