How to Replace Lowercase Text After a Colon with Uppercase in Word
Question details
The user needs to automatically capitalize lowercase letters that appear immediately after a colon in Microsoft Word, especially when Dragon Anywhere inserts lowercase text while dictating lists.

- Product
- Microsoft Word and Dragon Anywhere
- Device & OS
- not provided
- Scenario
- A user dictates lists into Microsoft Word with Dragon Anywhere and needs the first letter after each colon to be uppercase without manually retyping.
- Observed behavior
- Word receives lowercase text after a colon, and there is no built-in Word command that automatically capitalizes that position.
Open the affected document in Microsoft Word and press Alt+F11 to confirm that the VBA editor opens. If you do not see the Developer tab, enable it from File > Options > Customize Ribbon before running the macro.
Use a Word VBA wildcard macro to capitalize the letter after a colon
Best for documents with many colons and for cases where colons are followed by spaces, non-breaking spaces, or tabs before a lowercase letter.
Word does not have a built-in AutoCorrect option to capitalize every letter that follows a colon. The VBA wildcard pattern :[ ^s^t]@[a-z] finds a colon, any number of normal spaces, non-breaking spaces, or tabs, and one lowercase letter, then changes that letter to uppercase.
In Microsoft Word, press Alt+F11. If Alt+F11 does not open the editor, enable the Developer tab via File > Options > Customize Ribbon, then click Developer > Visual Basic.
In the VBA editor, right-click Normal in the Project panel, go to Insert, and choose Module.
Copy and paste the following macro into the new module: Sub CapitalizeAfterColon() Dim rng As Range Set rng = ActiveDocument.Content With rng.Find .ClearFormatting .Replacement.ClearFormatting .Text = ":[ ^s^t]@[a-z]" .Forward = True .Wrap = wdFindStop .MatchWildcards = True .MatchCase = True Do While .Execute rng.Characters.Last.Case = wdUpperCase rng.Collapse wdCollapseEnd Loop End With MsgBox "Capitalization check complete." End Sub
Close the VBA editor, return to Word, and run the macro from Developer > Macros. Select CapitalizeAfterColon and click Run. Review the document to confirm that the lowercase letters after colons are now uppercase.

WPS Office: A Free, Lightweight Word Alternative for Dictation Editing
When Microsoft Word requires a VBA macro to handle this kind of capitalization, WPS Office offers a free and lightweight alternative. It opens and saves Word .docx files with a familiar ribbon interface, so you can review Dragon Anywhere text without extra Office costs.
- 1. Download WPS Office free: Go to the WPS Office download page and click Download WPS Office Free.
- 2. Open the Word document in WPS Writer: Install WPS Office, launch WPS Writer, and open the .docx file you were editing in Microsoft Word.
- 3. Edit and review the document: Use WPS Writer's familiar ribbon tools to review the text after colons, run spell-check, and continue working.

Frequently Asked Questions
Why does Word insert lowercase text after a colon when I dictate with Dragon Anywhere?
Dragon Anywhere can send lowercase text after a colon, and Word does not have a built-in AutoCorrect rule that automatically capitalizes that position.
Can I use Word's Find and Replace alone to change the case after a colon?
No. Word's Find and Replace cannot convert the found letter's case. You need a VBA macro or manual formatting to change the letter to uppercase.
Does this macro handle multiple spaces or non-breaking spaces after a colon?
Yes. The wildcard pattern :[ ^s^t]@[a-z] includes normal spaces, non-breaking spaces with ^s, and tabs with ^t.
How do I run the VBA macro in Word?
Press Alt+F11 to open the VBA editor, insert a module, paste the macro code, and then run it from Developer > Macros.




