Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default File Browse Box

I have a userform on my sheet. What i want is a command
buttom to bring up box which will enable me to browse
files on my hd and then select one to perform an action
on. Does anyone know how to do this?

Also can you have the default value pointing to a specific
folder?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default File Browse Box

See the Application.GetOpenFileName method. This will display a
standard File Open dialog box and return the complete path of the
chosen file. It does not actually open the file.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"JONNIE" wrote in message
...
I have a userform on my sheet. What i want is a command
buttom to bring up box which will enable me to browse
files on my hd and then select one to perform an action
on. Does anyone know how to do this?

Also can you have the default value pointing to a specific
folder?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default File Browse Box


Chdrive "C"
Chdir "C:\Myfolder"
fName = Application.GetOpenFileName()

--
Regards,
Tom Ogilvy

"JONNIE" wrote in message
...
I have a userform on my sheet. What i want is a command
buttom to bring up box which will enable me to browse
files on my hd and then select one to perform an action
on. Does anyone know how to do this?

Also can you have the default value pointing to a specific
folder?




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 For a File or Path and enter in a cell D. Jones Excel Discussion (Misc queries) 5 November 9th 07 04:07 PM
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
Browse Button for File Save Todd Huttenstine[_2_] Excel Programming 4 December 22nd 03 03:28 AM
Import File with browse and select (even from Pocket PC?) Brett9 Excel Programming 3 November 4th 03 08:36 AM


All times are GMT +1. The time now is 11:31 PM.

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"