PDA

View Full Version : Find and Replace Multiple Files



Emoncada
10-13-2009, 07:05 AM
I have over 600 files that I need to run a find and replace script on. Is there a way to do a vba script to have that run without having to open each one and do them manually?

fumei
10-13-2009, 10:53 AM
No.

Just a Find....yes, if you are using pre-2007 Word. You could use Filesearch. Filesearch was removed from 2007. You can use Filesearch to find text in unopened files.

However, a Replace means a write operation. To write text to a file you must open it.

That being said, the word "manually" seems out of order. You can open the files and - depending on what you are doing - most likely automate things.