Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening newest file in a directory within a macro

Status
Not open for further replies.

steven162

Automotive
Joined
Oct 3, 2009
Messages
5
Location
GB
Hi all,

Thanks again for your help with the getting numbers from a column issue I had earlier.

Now the next problem(s)

I want to run a macro that opens the newest file in a directory, extract some data from it and save this in a new file with a name that will include some data within the file (probaly the time)

I think this will be my first experience with Visual Basic but I would like some pointers as to where to start.

thanks again

Steve

 
You can use the "Scripting.FileSystemObject" look through files in a folder and get the date the file was created or modified.

HTH
dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top