Modify keyword in multiple files

A

Abbas

Hi,

Suppose that you have 500 .doc files some of these
contains the word "bus". You want to change the word "bus"
into "car". You don't know which files contains the
word "bus".

The question is, what is the fastest way to perform the
task?
Is it possible with some scripting?
Would it be easier if it were .html?

Thanks,

Abbas
 
C

Cindy Meister -WordMVP-

Hi Abbas,
Suppose that you have 500 .doc files some of these
contains the word "bus". You want to change the word "bus"
into "car". You don't know which files contains the
word "bus".

The question is, what is the fastest way to perform the
task?
Is it possible with some scripting?
Yes. The VBA code would have to open each file and perform
Find/Replace.
Would it be easier if it were .html?
Faster for the script to execute, anyway. Wouldn't have to be
done with Word VBA. And no problems with possible dialog
boxes interrupting execution.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 
D

Doug Robbins - Word MVP

Hi Abbas,

See the article "How to Find & ReplaceAll on a Batch of Documents in the
Same Folder" at:

http://www.mvps.org/word/FAQs/MacrosVBA/BatchFR.htm

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top