Microsoft word find and replace same line
Note: In this case, all “KTE” in this document will be replaced with “New”, and “KTO” and “KTW” will be replaced with “Test” and “Finish”.
In the second Kutools for Word dialog box, enter the new words you will replace with (these words also need to be separated by commas), and then click the OK button. In the first Kutools for Word dialog box, enter the multiple words you will find and replace into the textbox, and separate them with comma, then click the OK button. MsgBox "Find and replace characters must be equal.", vbInformation, "Kutools for Word" If UBound(xFindArr) UBound(xReplaceArr) Then XReplace = InputBox("Enter new items here, seperated by comma: ", "Kutools for Word")
XFind = InputBox("Enter items to be found here,seperated by comma: ", "Kutools for Word") VBA code: Find and replace multiple words at the same time in Word Sub FindAndReplaceMultiItems() Then copy below VBA code into the Module window. In the Microsoft Visual Basic for Applications window, click Insert > Module. Open the Word document you want to find and replace multiple words at the same time, then press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ. Please do as follows to find and replace multiple word at the same time in a Word document.ġ. In this article, we are talking about a VBA method to find and replace multiple different words at the same time in Word document.įind and replace multiple words at the same time in Word with VBA codeĮasily find and replace multiple words at the same time in Word with an amazing feature But if you want to find and replace different words at the same time, this build-in function can’t help.
Word provides a Find and Replace function to find all instances of a word or phrase and replace them with a new word at the same time.
MICROSOFT WORD FIND AND REPLACE SAME LINE HOW TO
How to find and replace multiple words at the same time in a Word document?