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. In this article, I will talk about a way to change the first lowercase letter to uppercase letter after the colons as quickly as possible.
Capitalize the first letters after colons with VBA code in a Word document
Capitalize the first letters after colons with VBA code in a Word document
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:
Sub CapitalizeWordAfterColon()
Application.ScreenUpdating = False
Selection.HomeKey wdStory
With Selection.Find
.ClearFormatting
.Text = ": ([a-z])"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchWholeWord = False
.MatchSoundsLike = False
.MatchCase = False
.MatchWildcards = True
.MatchAllWordForms = False
With .Replacement.Font
.AllCaps = True
.SmallCaps = False
End With
End With
Selection.Find.Execute Replace:=wdReplaceAll
Application.ScreenUpdating = True
End Sub
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:
Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint...![]() |
Enhance your workflow now. Learn More about Office Tab Free Download |
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
๐ค Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...
๐ Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...
โ Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...
๐งน Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...
โ Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...
๐ Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...
โญ Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...
๐ Supports 40+ Languages: Use Kutools in your preferred language โ supports English, Spanish, German, French, Chinese, and 40+ others!

โจ Kutools for Office โ One Installation, Five Powerful Tools!
Includes Office Tab Pro ยท Kutools for Excel ยท Kutools for Outlook ยท Kutools for Word ยท Kutools for PowerPoint
๐ฆ Get all 5 tools in one suite | ๐ Seamless integration with Microsoft Office | โก Save time and boost productivity instantly
Best Office Productivity Tools
Kutools for Word - 100+ Tools for Word
- ๐ค Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish / Super Translate / AI Redaction / AI Proofread
- ๐ Document Mastery: Split Pages / Merge Documents / Batch Convert to PDF
- โ Contents Editing: Batch Find and Replace / Resize All Pictures
- ๐งน Effortless Clean: Remove Extra Spaces / Remove Section Breaks
- โ Creative Inserts: Insert Thousand Separators / Insert Check Boxes / Create QR Codes
- ๐ Supports 40+ Languages: Kutools speaks your language โ 40+ languages supported!