Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel XP, Win XP
I want get a listing of all the files in a specific folder (ThePath). The following code does this but the listing includes the path before every file name. How do I change this code to give only the file names, for instance, FileName.xls. Thanks for your time. Otto Sub GetFileList() Dim c As Integer With Application.FileSearch .NewSearch .LookIn = ThePath For c = 1 To .Execute Dest.Value = .FoundFiles(c) Set Dest = Dest.Offset(1) End If Next c End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clear the file open file name dropdown list | Excel Discussion (Misc queries) | |||
File list - list filenames in excel | Excel Programming | |||
ActiveSheet.QueryTables.Add using InputBox and/or a URL list in a .txt file list | Excel Programming | |||
The 'Recently used file list' does not show up under the 'File' menu. | Excel Worksheet Functions | |||
Convert List box from excel file to VBA list box object | Excel Programming |