Thread: File list macro
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
ianripping[_15_] ianripping[_15_] is offline
external usenet poster
 
Posts: 1
Default File list macro

this works easier: -

Sub ListFiles()
F = Dir("C:\*.XLS")
Do While Len(F) 0
ActiveCell.Formula = F
ActiveCell.Offset(1, 0).Select
F = Dir()
Loop
End Sub

got it from microsoft.co

--
Message posted from http://www.ExcelForum.com