LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Changing to a selected folder

Is there method of openning File Browser-like dialog, allowing the user to
move up and down the folder tree from the current folder, select a drive at
the top of the tree, move down the folder tree of the selected drive to a
desired folder, and then select that folder. The dialog needs to a) return
the full path to that selected directory (whence one could use ChDir to make
it the defulat directory), or b) change the default directory to that
selected directory?

This is an Explorer-like function but I do not see how to do this within
Excel VBA, even using the FileSystemObjecrt or any of the accessible Excel
Dialogs. Dialogs(xlDialogOpen).Show comes the closest but requires
selecting a Excel file and openning it.


I want to write a VBA procedure that will list all the directories in a tree
in an Excel worksheet, starting from a selected directory or the root
directory of a select drive.

How can I do this?

There are Excel-Addins that list files but I have found none that allow
restricting the listing to directories only.

John


 
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
Changing selected cells coloring Karyn Excel Discussion (Misc queries) 0 December 18th 07 07:34 PM
changing folder order in File Save LDBlanes Excel Discussion (Misc queries) 2 January 10th 07 07:06 PM
Save Linked Doc in Another Folder Without Changing Link Path jeannie v Excel Worksheet Functions 0 August 31st 06 05:48 PM
Changing Macro Folder JDub Excel Discussion (Misc queries) 1 July 31st 06 04:56 PM
Changing Opening folder Blair Excel Worksheet Functions 2 July 1st 06 05:04 PM


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