Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Opening a browse and load file box in a macro

Currently I have a macro that uses the following line to load a file.
FileName = InputBox("Please enter the Text File's name, e.g. test.txt")
What I want is to change this so it has the standard file load box that
includes the "browse" button and the click on file to choose, etc. The
files I am loading with this macro are down a few folders and trying to get
the target path is a pain when I have to type in the whole path.

--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Opening a browse and load file box in a macro

Take a look at GetOpenFilename in help, it is all there.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Scott Calkins via OfficeKB.com" wrote in
message ...
Currently I have a macro that uses the following line to load a file.
FileName = InputBox("Please enter the Text File's name, e.g. test.txt")
What I want is to change this so it has the standard file load box that
includes the "browse" button and the click on file to choose, etc. The
files I am loading with this macro are down a few folders and trying to

get
the target path is a pain when I have to type in the whole path.

--
Message posted via http://www.officekb.com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening a browse and load file box in a macro


Hi Scott

have a look @ the getopenFilename function.

eg
FileToOpen = Application.GetOpenFilename

Look in the help files for the properties.


--
Ivan F Moala


------------------------------------------------------------------------
Ivan F Moala's Profile: http://www.excelforum.com/member.php...fo&userid=1954
View this thread: http://www.excelforum.com/showthread...hreadid=374079

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
Browse File for Mac John Vickers Excel Discussion (Misc queries) 1 February 17th 06 06:23 PM
can't browse file k_anucha Excel Discussion (Misc queries) 1 September 29th 05 01:51 AM
opening a word document from excel: file still won't load chris Excel Programming 2 April 1st 04 12:05 PM
File Browse Box JONNIE Excel Programming 2 February 5th 04 05:22 PM


All times are GMT +1. The time now is 08:34 AM.

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

About Us

"It's about Microsoft Excel"