Hi,
How to create list of files in a folder/sub folder. I just want the file names only. I don't need any file attributes.
I found a article in kb but it doesn't help me. I am using excel 2007.
Thanks in advance,
krrish
Hi,
How to create list of files in a folder/sub folder. I just want the file names only. I don't need any file attributes.
I found a article in kb but it doesn't help me. I am using excel 2007.
Thanks in advance,
krrish
Explain in what way it doesn't help.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Sorry xld,
I got the right link here:
by the way can any one explain this steps.http://www.vbaexpress.com/kb/getarticle.php?kb_id=1042
If .SelectedItems.Count <> 0 Then xDirect$ = .SelectedItems(1) & "\" xFname$ = Dir(xDirect$, 7) Do While xFname$ <> "" ActiveCell.Offset(xRow) = xFname$ xRow = xRow + 1 xFname$ = Dir
It takes the first of the folder names selected and loops through processing every file in that older.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
hey sorry to bugging you,Originally Posted by xld
In this code, what is mean by 7?Dir(xDirect$, 7)