Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using FoundFiles to list by path and filename
I am using a macro that lists files that are in the directory I choose
via browseforfolder. The founfiles function lists files alphabetically, regardless of which subfoler it is in. Is there a way to get a list of files in a folder to appear alphabetically, and then continue the list with files in the first subfolder and so on? for example, if i have a folder called 'pictures' that has sub folders 'home' and 'vacation' I would want all the files in 'pictures' to be listed, then the files in 'home', then the files in 'vacation'. Thanks for any help/advice you can give. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using FoundFiles to list by path and filename
figured it out, i just did a sort ascending command. works like a
champ. range("B9:F" & count + 9).Select Selection.Sort Key1:=range("B9"), Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using FoundFiles to list by path and filename
If you are going to put them in a worksheet, why not put them in the
worksheet and sort them. -- Regards, Tom Ogilvy "Jon" wrote in message oups.com... I am using a macro that lists files that are in the directory I choose via browseforfolder. The founfiles function lists files alphabetically, regardless of which subfoler it is in. Is there a way to get a list of files in a folder to appear alphabetically, and then continue the list with files in the first subfolder and so on? for example, if i have a folder called 'pictures' that has sub folders 'home' and 'vacation' I would want all the files in 'pictures' to be listed, then the files in 'home', then the files in 'vacation'. Thanks for any help/advice you can give. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo | Excel Discussion (Misc queries) | |||
Using .FoundFiles to list files by path and file name | Excel Programming | |||
Pulling in the path to a filename | Excel Worksheet Functions | |||
Filename and path | Excel Programming | |||
How to import a path/filename when importing data into an XML list | Excel Worksheet Functions |