How to capitalize the first letter after colon in a Word document?
If you need to capitalize the first letters after colons in a Word document, to change them one by one manually will not be a good choice. This article, I will talk about a way to change the first lowercase letter to uppercase letter after the colons as quickly as possible.
The following VBA code can help you to make all the first letters uppercase after the colons in the whole Word document to capitalize, please do as this:
1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
VBA code: Capitalize the first letters after colons:
Application.ScreenUpdating = False
.Text = ": ([a-z])"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchWholeWord = False
.MatchSoundsLike = False
.MatchCase = False
.MatchWildcards = True
.MatchAllWordForms = False
.AllCaps = True
.SmallCaps = False
Application.ScreenUpdating = True
3. Then, press F5 key to run this code, and all the first letters after the colons have been converted to uppercase letters at once, see screenshot:
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
Dive into the highlighted features below or click here to explore the full power of Kutools for Word.
➕ Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Diagonal Line Table / Equation Caption / Image Caption / Table Caption / Multiple Pictures / Discover more in our Insert Group
Transform your Word tasks with Kutools. 👉 Download with 30-day trial Now 🚀.