×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

opening newest file in a directory within a macro

opening newest file in a directory within a macro

opening newest file in a directory within a macro

(OP)
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

 

RE: opening newest file in a directory within a macro

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

HTH
dan

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources