Forum Discussion
Search for URL string in multiple Word documents
I need to modify certain URLs in a number of Word documents. Is there a way to search for a particular string (like "urldefense") in multiple Word documents in a folder? (I'm using desktop Word for Windows)
5 Replies
- Charles_KenyonBronze Contributor
This question is about doing a search within Word, not Explorer.
You seem to have posted this question more than once? There are more replies in your other thread:
You can perform search and replace operations for a specific string (such as urldefense) across multiple Word documents. However, Microsoft Word does not provide a native feature for multi‑document searching. The recommended approach is to use VBA macros within Word to automate the process.
https://learn.microsoft.com/en-us/office/vba/api/word.find
- RebsCopper Contributor
If the folder the Word documents are in is in File Explorer (such as in the Documents folder, sub-folder, or the like), then in File Explorer:
IF the Ribbon is minimized (i.e. the arrow circled in green is facing down), proceed to step 1.
IF the Ribbon is pinned (i.e. the arrow circled in green is facing up), proceed to step 2.
Step 1.
Click in the search bar (red arrow) and then the "Search Tools/Search" tab will appear at upper near-left
Click on "Search" (circled in blue) to expand the Ribbon.
Then proceed to step 3.
Step 2.
Click in the search bar (indicated by red arrow) and proceed to next step.
Step 3.
Click on "Advanced Options" (orange arrow) and if "File Contents" (indicated by magenta arrow) has a checkmark to the left of it, then proceed to next step.
If that is not the case, click "File Contents" (indicated by magenta arrow) so it has a checkmark to the left, and proceed to next step.
Step 4.
In the search bar (red arrow) type the word you wish to search.
NOTE: Use quotation marks around a search word or search phrase for the search to match it exactly.