LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 358
Default Getting filenames via VBA

Hi,

Is there an easy way to get the filenames (in a text file) if I quote the
path. For example if I know the path is C:\Andrew can I get a flat file with:

C:\Andrew\file_a.txt
C:\Andrew\file_b.txt

Can we take it one step further and get all files on a drive if I don't know
the path but I do know the drive (C:\). Then you may get:

C:\Andrew\file_a.txt
C:\Andrew\file_b.txt
C:\Smith\file_a.txt
C:\Smith\file_b.txt

Thanks in advance.



--
Andrew
 
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
Filenames and formulae SimoninParis Excel Worksheet Functions 4 September 25th 09 04:21 PM
what do 'blue filenames' mean? Boswell Excel Discussion (Misc queries) 2 January 16th 07 05:36 PM
Using cell value in filenames Neil Beddell Excel Worksheet Functions 3 July 19th 06 08:22 PM
Using Variables in filenames Blinky Bill Excel Discussion (Misc queries) 2 March 11th 05 12:07 AM
Variable Filenames Paul Kendall Excel Programming 2 October 13th 03 03:30 PM


All times are GMT +1. The time now is 06:56 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"