Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Greshter
 
Posts: n/a
Default Browse button on form for folder path

Hi All

I am trying to create a form which has a button which can browse for a
folder path. I then need to have this path placed in an adjacent
textbox. I think I need something along the lines of the following in
the command button's code:

Application.GetOpenFilename

however this piece of code just opens a file whereas I need the
pathname for a folder.

Any ideas out there would be greatly appreciated.

Cheers,
Mike

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Browse button on form for folder path

Jim Rech has a BrowseForFolder routine at:
http://www.oaltd.co.uk/MVP/Default.htm
(look for BrowseForFolder)

John Walkenbach has one at:
http://j-walk.com/ss/excel/tips/tip29.htm

If you and all your users are running xl2002+, take a look at VBA's help for:
application.filedialog(msoFileDialogFolderPicker)

Greshter wrote:

Hi All

I am trying to create a form which has a button which can browse for a
folder path. I then need to have this path placed in an adjacent
textbox. I think I need something along the lines of the following in
the command button's code:

Application.GetOpenFilename

however this piece of code just opens a file whereas I need the
pathname for a folder.

Any ideas out there would be greatly appreciated.

Cheers,
Mike


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Greshter
 
Posts: n/a
Default Browse button on form for folder path

Those were two excellent links and just what I was after.

Thanks for that Dave

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
Automate process via button on form kjg Excel Worksheet Functions 0 November 30th 05 10:01 PM
use a button to open a user form? Hru48 Excel Discussion (Misc queries) 1 September 1st 05 07:41 PM
display set of records in a form with previous and next button jophy j via OfficeKB.com New Users to Excel 3 July 25th 05 12:42 PM
Command button on data-entry form Susy Excel Discussion (Misc queries) 1 February 15th 05 01:46 AM
A "previous" button on a user form Anthony Slater Excel Discussion (Misc queries) 3 November 29th 04 05:57 PM


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

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"