Auto-increment file name
I want to save several files with a naming convention as follows:
"FilePrefix_###.xls", where the ### would be a number ranging from 1 to 999.
The routine would search through a folder and determine if there were any
other files named "FilePrefix_" and choose the next number in the sequence.
What would be the best way to search through a give folder path? FileSearch
object? I would appreciate some advice.
Thanks,
Matthew Pfluger
|