Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default List files in A1 Cell Downwards??

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   Report Post  
Posted to microsoft.public.excel.programming
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/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i link multiple files (tif files) to one cell Kerry Excel Discussion (Misc queries) 0 July 31st 08 06:03 PM
getting list of files Esradekan Excel Worksheet Functions 3 July 25th 08 10:20 AM
list all the files on my computer Dave F Excel Discussion (Misc queries) 2 December 10th 06 02:50 PM
dropdown list...no help in the help files miketv New Users to Excel 0 May 9th 06 05:34 AM
List Files in excel PeterO Excel Discussion (Misc queries) 2 June 15th 05 01:04 AM


All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"