Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How can I print list of exel files names in folder
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In a new Workbook - Sheet1 run the Standard macro
Sub listthefiles() Cells.ClearContents Range("A1").Select Set fs = Application.FileSearch With fs ..LookIn = "C:\JMay\MyStuff\" ..Filename = "*.xls" If .Execute 0 Then For I = 1 To .FoundFiles.Count ActiveCell.FormulaR1C1 = .FoundFiles(I) ActiveCell.Offset(0, 1).Range("A1").Select ActiveCell.FormulaR1C1 = "=RIGHT(RC[-1],LEN(RC[-1])-45)" ActiveCell.Value = ActiveCell.Value ActiveCell.Offset(1, -1).Select Next I Else End If End With Range("A:A").Delete Range("A1").Select End Sub "Marc R Sorger CW" wrote: How can I print list of exel files names in folder |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Drop Down List | Excel Discussion (Misc queries) | |||
Copying Data List to Different Worksheet | Excel Discussion (Misc queries) | |||
Copying list item (a bit less vague) | Excel Discussion (Misc queries) | |||
copying list items | Excel Discussion (Misc queries) | |||
Refresh a Validation List? | Excel Discussion (Misc queries) |