Name of files in a folder

I

Irfan Khan

Hi Experts,

How can I get name of all the files exist in one folder through VBA ???


Cheers !!!
 
B

Bob Phillips

A simple Dir loop does it

Dim filename As String

filename = Dir("C:\test\*.xls")
Do While filename <> ""

Debug.Print filename
filename = Dir()
Loop
 
Top