New answers tagged

0

Not random, but no special tools required. To replace every fourth occurrence (case sensitive): Find and Replace > Replace Use wildcards = checked Find: (<happy>*)(<happy>*)(<happy>*)<happy> Replace: \1\2\3joy Replace All With (some) case insensitivity: Find and Replace > Replace Use wildcards = checked Find: (<[Hh]...


4

Here is a method directly in Word for replacing every 3rd, then every 5th occurrence of "happy" with "joy'. After you record one macro (to make an average of 25% swaps), you run a second macro once that runs the first one to document end: Record a macro, naming it MacroJoy1 (View / Macros / Run Macro). Use Ctl-H (not -F) to find the next &...


3

Yeah, like other people are saying, making a VBA Macro is the way to go: https://support.microsoft.com/en-us/office/create-or-run-a-macro-c6b99036-905c-49a6-818a-dfb98b7c3c9c Something like using the Find function, then randomly, with the RND function, going some number of spaces ahead, and then replacing the selection with the word you want.


0

Only manually, or by subjecting your Word document to a programming languageā€¦ which for any single instance will almost certainly be at least as difficult. To the extent you can re-use it the idea becomes more efficient, though no more easy. Word itself has no conception of how to replace X out of Y words.


4

This solution will probably be more programming intensive than what you are looking for but I'll put in out there is case it is of use to someone. MS Word just stores a document as a zip file with a .docx extension. You can unzip it with standard utilities. The zip file contains a number of xml files as well as other files that hold formatting information....


3

It's a bit of a pain, but as far as I know there is no such function native to MS Word. Besides that, you'll probably be best off using CTRL+F and reviewing each case individually for context, rhythm, etc. before making changes -- indiscriminate machine replacement will probably make more problems than it solves.


16

The quickest way is to do a "Find" (Ctrl+F) and cycle through each individual instance and select replace when you wish to replace the instance with "Joy".


Top 50 recent answers are included