In this article, we will share with you 2 quick ways to capitalize the first word after a colon in your Word document.
Generally, while working in a Word document, you can find the word after a colon is not capitalized. And sometimes, you may just need it to be capitalized. For example, in the following screenshot:
The word “this” should be capitalized. Unfortunately, in Word there is no autocorrect rule to do this. But luck for us, there is workaround to do the job.
Method 1: Use the “Find and Replace” Function
- To start off, press “Ctrl+ H” to open the “Find and Replace” dialog box.
- Second enter “: ([a-z])” (without the quotation marks) in “Find what” text box.
- Then enter “: \1” (without the quotation marks) in “Replace with” text box.
- Next click “More” to bring out more options.
- Check the “Use wildcards” box.
- Then make sure your cursor is in “Replace with” box. Click “Format” tab.
- Next choose “Font” to open the “Find Font” dialog box.
- In the box, check “All caps” box and then click “OK”.
- Lastly, click “Replace All” in “Find and Replace” box.
Here is the result:
Method 2: Run Word Macro
- First of all, click “Developer” tab then the “Visual Basic” to open VBA editor. Or you may press “Alt+ F11” instead.
- Then click “Normal” project on the left column.
- Next click “Insert” on the menu bar.
- And select “Module” on the menu.
- Double click on module to open it and paste the following macro there:
Sub CapitalizeWordAfterColon() Application.ScreenUpdating = False ' Find all words after colons. With Selection .HomeKey Unit:=wdStory With Selection.Find .ClearFormatting .Text = ": ([a-z])" .Replacement.Text = ": \1" .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 ' Capitalize all found words. Selection.Find.Execute Replace:=wdReplaceAll End With Application.ScreenUpdating = True End Sub
- Last but not the least, click “Run” button or hit “F5” to execute codes.
The outcome is exact the same as shown in method 1.
Safeguard Your Valuable Data
Data means everything in nowadays’ work. Therefore, we have millions of reasons to take care of it. One of the most efficient preventive measures is to back up files on a regular basis. Believe it or not, backups come much help in times of emergency. Another option left is to get a fixing tool when ended up with corrupt docx.
Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including corrupt Excel and pdf repair software products. For more information visit www.datanumen.com