#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default 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

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File in use Dialog box Chip Excel Discussion (Misc queries) 1 January 5th 06 05:30 PM
open file dialog-select file-import worksheet Divinedar Excel Programming 1 January 16th 04 07:13 PM
Prompt user to select file with default file selected dialog Bruce Cooley Excel Programming 0 September 15th 03 06:43 AM
Prompt user to select file with default file selected dialog Bob Phillips[_5_] Excel Programming 0 September 14th 03 09:22 PM
Prompt user to select file with default file selected dialog Bob Phillips[_5_] Excel Programming 0 September 14th 03 09:19 PM


All times are GMT +1. The time now is 09:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"