
StrPageNum = InputBox("Enter a page number: ")
Where is find and replace in word install#
First, install and run a macro following steps in method 2.Method 3: Run Word Macro to Find and Replace Text on a Designated Pageįollowing macro enables you to find and replace text on a specific page. You shall achieve the exact same effect as in method 1. Enter the finding and replacing text respectively in two boxes. There will be two input boxes prompting up.StrReplaceText = InputBox("Enter replacing text here:") StrFindText = InputBox("Enter finding text here:") Copy and paste the following codes there:.Then click “Normal” and click “Insert”.Next trigger VBA editor by pressing “Alt+ F11”.First of all, select a range of document content.Method 2: Run VBA Codes to Find and Replace Text in a Selection A box will pop up, asking if you want to continue doing the searching at the rest of a document.

