Excel Macro to parse list of excel files and move them depending on a single cells value

5 pts.
Tags:
Microsoft Excel
Microsoft Excel macros
Does anyone know how to creat an Excel macro that I can run on a directory of excel files that will look for a value of cell B47 and if it's > 600 move it to another directory and if it's < 600 move it to another one?

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can use the Scripting.FileSystemObject to loop through all the files in a folder. And here’s some code to read information from a closed workbook:

http://vbanet.blogspot.com/2008/11/cell-read-closed-files.html

HTH,
JP

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: