Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]() Quote:
After fetching the file names into Column C, using right, left, choose and logical functions Created and edited by Bala Sesharao Option Explicit Sub GetFileNames() Dim x_coordinate As Long Dim x_directory, x_Filename$, InitialFoldr$ InitialFoldr$ = "G:\" '<<< Startup folder to begin searching from With Application.FileDialog(msoFileDialogFolderPicker) .InitialFileName = Application.DefaultFilePath & "\" .Title = "Please select a folder to list Files from" .InitialFileName = InitialFoldr$ .Show If .SelectedItems.Count < 0 Then x_directory = .SelectedItems(1) & "\" x_Filename$ = Dir(x_directory, 7) Do While x_Filename$ < "" ActiveCell.Offset(x_coordinate) = x_Filename$ x_coordinate = x_coordinate + 1 x_Filename$ = Dir Loop End If End With End Sub
__________________
Thanks Bala |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA write macro change column with 3 number digits to 4 digits the | Excel Discussion (Misc queries) | |||
Filter 3 digits | Excel Discussion (Misc queries) | |||
Filtering by Term Digits | Excel Discussion (Misc queries) | |||
how can I set up a custom filter to ignore the last few digits | Excel Discussion (Misc queries) | |||
Filter/find/isolate one specific term? | Excel Worksheet Functions |