Manipulating files

pdbowling

Registered User.
Local time
Today, 12:33
Joined
Feb 14, 2003
Messages
179
Good day all.
I have a directory full of files (.xls) that I need to open up and change but I can't be sure what the file names are going to be.

Is there a nice way to use 'File System Objects' to loop through all the files in a folder? Any alternate suggestions would be greatly appreciated also.

Thanks
PB
 
asuming you are allready in the folder:
FileName = Dir("*.xls")
do while filename <> ""'
'do stuf here
filename = dir
loop

Regards

P.S. you might also use GetFile so you can browse to the folder and hand pick the file(s)
 

Users who are viewing this thread

Back
Top Bottom