List files in A1 Cell Downwards??

  • Thread starter Thread starter ianripping
  • Start date Start date
I

ianripping

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, i
just posts them in any ActiveCel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top