PDA

View Full Version : Find and replace multiple words



zonorox
04-01-2016, 02:14 PM
Hi everybody,

i would like a macro that will help me to find and replace some specified words in a document.

Example: This is a new document, i want to replace this word with another word but i don't know how.

find: new document ---> replace with: new paper
find: another word ---> replace with: some parts


so that the document will be:

This is a new paper, i want to replace this word with some parts but i don't know how.


Thanks

gmayor
04-01-2016, 08:48 PM
To save re-inventing the wheel see

http://www.gmayor.com/document_batch_processes.htm (http://www.gmayor.com/document_batch_processes.htm)
Create a table with the replacement pairs and use the process to handle the files and folders.

gmaxey
04-02-2016, 05:54 AM
My VBA Find and Replace Add-In is tailored for this sort of thing: http://gregmaxey.mvps.org/word_tip_pages/vba_find_and_replace.html