Sample Header Ad - 728x90

How can I find and replace words across multiple .docx or .txt documents?

1 vote
1 answer
127 views
MacOS Sonoma 14.5 Macbook Pro M1 Office 365 (Institutional) (.docx not required) I have about 50 documents that require swapping names within the document for ID codes. The documents are 30-40 pages each, and have ~15 instances of name swapping each. All names correlate with an ID. So for example: name: Mary Poppins becomes: P123456 name: Donald Duck becomes: P590834 Luckily, none of the names coincide - there is only one Mary, and one Donald, and so forth. This means I *Should* be able to Find+Replace across multiple documents to accomplish the task. The documents are currently .docx but I can easily convert them to .txt and back if need be. All files are in the same folder. I have seen several fixes, but they tend to be outdated or intended for Windows, such as: VBA Find and Replace Word Macro Fixes I suspect I can do this with Automator, but my tests so far have accomplished nothing.
Asked by Gryph (214 rep)
Aug 8, 2024, 08:09 AM
Last activity: Aug 8, 2024, 09:17 AM