View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Loomah Loomah is offline
external usenet poster
 
Posts: 18
Default List files in A1 Cell Downwards??

insert the line
range("A1").activate
before your loop begins
;-)

ianripping wrote in message
...
OK can you hlp me with this part?

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

I want it to post the file names from A1 onwards. At the moment, it
just posts them in any ActiveCell


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