Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to create a list of all the files in a folder, but am
fumbling with the detail. The code below only lists the files with extension ".doc" in the folder in question. There ore other types of files (.pdf, .tiff) but they are not listed. Any reason why, and how does one work around it. Thanks Laurence Sub test2() With Application.FileSearch For i = 1 To .FoundFiles.Count MsgBox .FoundFiles(i) Sheets("Sheet1").Range("A" & i).Value = .FoundFiles(i) Next i End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to create a folder and copy files | New Users to Excel | |||
How to create a copy of a folder having five files in it, & rename | Excel Worksheet Functions | |||
List files in a folder | Excel Programming | |||
create a list of worksheet names (from a single folder, or open files) | Excel Discussion (Misc queries) | |||
How to get the list of files in a folder | Excel Programming |