Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i link multiple files (tif files) to one cell | Excel Discussion (Misc queries) | |||
getting list of files | Excel Worksheet Functions | |||
list all the files on my computer | Excel Discussion (Misc queries) | |||
dropdown list...no help in the help files | New Users to Excel | |||
List Files in excel | Excel Discussion (Misc queries) |