Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Can anyone help me Create Excel list of files in windows folders
|
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Can anyone help me Create Excel list of files in windows folders
Do you mean just a list of folders? Try the following code.
You'll need a reference to the Scripting Runtime Library. Dim FSO As Scripting.FileSystemObject Dim Fldr As Scripting.Folder Dim Rng As Range Set FSO = New Scripting.FileSystemObject Set Rng = Range("A1") For Each Fldr In FSO.GetFolder("H:\").SubFolders Rng.Value = Fldr.Path Set Rng = Rng(2, 1) Next Fldr -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "solrac1956" wrote in message ... I had previously been able to create an Excel list of Windows Folders. I seem to have lost that component in my personal memory. Can anyone help me. Carlos E. Gutierrez |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I unlock FILE access? | Excel Discussion (Misc queries) | |||
Getting Windows Installer when trying to open Excel files | Excel Discussion (Misc queries) | |||
Create a cascading list box using Excel | Excel Discussion (Misc queries) | |||
Is there a way to create a drop-down list of links in Excel? | Excel Worksheet Functions | |||
create calendar drop down list in Excel sell | New Users to Excel |