Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Capitalizing the First Letter after a Colon.
Written by Allen Wyatt (last updated May 22, 2021)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365
Becca asked if there is a way to create a default setting so that the first letter following a colon will always be a capital letter. Unfortunately, there is no built-in way to do this in Word. You can, however, create a macro that can be used to step through your document and make sure that each lowercase letter following a colon (and a space) is converted to uppercase.
Sub CapsAfterColon() Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = ": ([a-z])" .Replacement.Text = ": \1" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = True .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute While Selection.Find.Found Selection.Range.Case = wdUpperCase Selection.Collapse direction:=wdCollapseEnd Selection.Find.Execute Wend End Sub
The macro uses a wildcard search to find instances of a colon followed by a space and a lowercase letter. For each instance found, the text is converted to uppercase. The macro searches for and changes the case of all such instances in the document.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13032) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Capitalizing the First Letter after a Colon.
Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!
Word provides you with three types of hyphens and two types of dashes that you can use in your documents. Understanding ...
Discover MoreNeed to find out how many times words are repeated in a document? If so, you'll appreciate the discussion in this tip ...
Discover MoreNeed to delete a range of pages out of the middle of your document? It's easy to do using editing techniques you already ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments