Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Common Dialog Boxes

I need to allow the user of my program to choose a Folder to work in.
I know how to use the common dialog box procedure using
"Application.Dialogs(commondialogFindFiles)" to allow the user to find a file.
How can I show a common dialog box to pick a folder, instead of a file?
--
Lionel
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Common Dialog Boxes

You could use the built-in File dialog picker:

Sub a()
Dim x As FileDialog
Set x = Application.FileDialog(msoFileDialogFolderPicker)
x.Show
MsgBox x.SelectedItems(1)
End Sub

or the Windows API folder browser:

http://www.j-walk.com/ss/excel/tips/tip29.htm

http://www.oaltd.co.uk/DLCount/DLCou...eForFolder.zip

--
Jim
"lionel" wrote in message
...
|I need to allow the user of my program to choose a Folder to work in.
| I know how to use the common dialog box procedure using
| "Application.Dialogs(commondialogFindFiles)" to allow the user to find a
file.
| How can I show a common dialog box to pick a folder, instead of a file?
| --
| Lionel


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
Common Dialog Box langron Excel Programming 1 March 14th 05 05:33 PM
common dialog box inquirer Excel Programming 1 April 7th 04 08:22 PM
Common Dialog & other Didier Poskin Excel Programming 2 February 16th 04 06:34 PM
Common Dialog Boxes Lionel Fridjhon Excel Programming 1 July 24th 03 03:15 PM
Common Dialog Box pat Excel Programming 2 July 10th 03 09:44 PM


All times are GMT +1. The time now is 09:10 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"