Forum Discussion
Find and replace in all opened documents.
How do i use "Find" or "Find or Replace" option in all 5 opened MS word documents together?
Currently its working on just one document at a time.
Safe mode starts word with its defaults.
It does not load the Normal.dotm template nor any Add-Ins.
If you write a macro, and save it in the Normal template, when you open in safe mode, you will not have access to it automatically. Both of the linked utilities would be available in safe mode if you loaded them manually as Add-Ins. Neither would be automatically available.
To load a template as an Add-In that is not automatically loaded, you go to the Developer Tab and click on either the Document Template or the Word Add-Ins button and add it. (You do not change the attached template.) When you click on Add, you will get a list of templates that are in the User Templates folder, including the Normal.dotm template. You can move to a different folder.
3 Replies
- Charles_KenyonBronze Contributor
You don't without writing some macro to cycle through the open documents. Note "write" not "record." This is not something built into Word.
Here is a page about using it on all files in a folder.
How to Find & ReplaceAll on a batch of documents in the same folder
Here are links to a couple of ways to batch process documents.
Those may give you a start on writing such a macro.
See also:
- VBA Basics by Greg Maxey (especially the part on Collections. I believe you will want to cycle through the Documents collection)
- Word Macros and Visual Basic for Applications (VBA) FAQ (look at the section on Working with Strings, Dates, Find & Replace)
- shubham_580Copper ContributorThanks for replying
It's also work in MS word safe mode?- Charles_KenyonBronze Contributor
Safe mode starts word with its defaults.
It does not load the Normal.dotm template nor any Add-Ins.
If you write a macro, and save it in the Normal template, when you open in safe mode, you will not have access to it automatically. Both of the linked utilities would be available in safe mode if you loaded them manually as Add-Ins. Neither would be automatically available.
To load a template as an Add-In that is not automatically loaded, you go to the Developer Tab and click on either the Document Template or the Word Add-Ins button and add it. (You do not change the attached template.) When you click on Add, you will get a list of templates that are in the User Templates folder, including the Normal.dotm template. You can move to a different folder.