How to bold all instances of the same word in a Word document?
AuthorXiaoyang•Last modified
Manually bolding repeated words throughout a long Word document can be time-consuming and inefficient. Whether you need to bold a single word or multiple different words at once, this tutorial covers two effective methods: using a simple VBA script for one word, or applying Kutools for Word’s powerful batch replacement tool for multiple words.
Bold all instances of the same word in a Word document with VBA code
The following VBA code lets you bold every instance of a specific word throughout the document. Please follow these steps:
Hold down Alt + F11 to open the Microsoft Visual Basic for Applications window.
Click Insert > Module, then copy and paste the following code into the blank module:
Sub BoldAll()
Dim xStr As String
xStr = InputBox("Please enter the word that you want to bold:", "Kutools for Word")
If Trim(xStr) = "" Then
MsgBox "Can't be empty!", vbInformation, "Kutools for Word"
Exit Sub
End If
With ActiveDocument.Content.Find
.ClearFormatting
.Text = xStr
.Replacement.ClearFormatting
.Replacement.Font.Bold = True
.Replacement.Text = "^&"
.Wrap = wdFindStop
.Format = True
.Forward = True
.Execute Replace:=wdReplaceAll
End With
End Sub
After inserting the code, press F5 to run it. A dialog box will appear asking you to enter the word you want to bold.
Click OK, and all instances of the specified word in your document will be formatted in bold.
Bold all instances of multiple words in a Word document with Kutools for Word
Instead of using VBA, Kutools for Word offers a much easier way to bold multiple words at once through its Batch Replacement feature. This method is perfect when you want to apply bold formatting to several specific words in one go, without writing any code.
Kutools for Word, equipped with AI 🤖, offers over 100 handy features to simplify your tasks.
In the Batch Find and Replace window, click the "Add Row" button to insert a find-and-replace rule:
Enter the word you want to bold in both the "Find what" and "Replace with" boxes.
In the "Find Format" column, click Font and specify the original format (usually set to Regular).
In the "Replace Format" column, click Font and choose Bold.
Click "Add Row" again to add more words you want to bold by repeating the steps above.
Once all words are added, click "Replace" to bold all specified words at once.
Note: By clicking the "Add" button on the right side of the dialog box (beside the File Type box), you can add more Word documents to apply the same find and replace rules.
Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!
Do More in Less Time with AI-Enhanced Kutools for Word
Kutools for Word isn't just a set of tools - it's a smart solution designed to boost your productivity. With AI-driven capabilities and the most essential features, Kutools helps you accomplish more in less time:
Summarize, rewrite, compose, and translate content instantly.
Proofread text in real-time with grammar, punctuation, and style suggestions as you write.
Rephrase and translate content while keeping layout, style, and structure untouched.
Translate your content into over 40 languages with ease, expanding your reach globally.
Receive instant help and intelligent insights based on your current document content.
Ask how to complete a task - like removing section breaks - and the AI will guide you or do it for you.
Redact sensitive or confidential information in seconds to ensure complete privacy.
All tools work seamlessly inside Word, always within reach.
Create, refine, translate, summarize and secure documents effortlessly.
Improve grammar, clarity, and tone as you write in real time.
Rephrase and translate content with no layout or formatting changes.
Ask how to complete a task - like removing section breaks - and the AI will guide you or do it for you.
All tools work seamlessly inside Word, always within reach.