Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski 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
Oct 3, 2009
5
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

 
Replies continue below

Recommended for you

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