by Allen Wyatt
(last updated August 31, 2019)
Michael has documents that he needs to edit daily. These documents are "free flowing," with no sentence endings or beginnings. (They start out as raw transcriptions.) It would be very helpful to Michael if he could select a character and have a macro automatically make that character uppercase and go back two spaces to type a period. That would allow him to edit the documents much quicker than he otherwise could.
This type of need is tailor-made for addressing with a macro. Here is an example of a simple macro that will do exactly what Michael wants:
Sub BreakSentence() Selection.Range.Case = wdUpperCase Selection.MoveLeft Unit:=wdCharacter, Count:=2 Selection.TypeText Text:="." End Sub
In order to use it, simply select the character that is at the start of what you view as the new sentence. (Truth be told, you could probably get away with simply putting the insertion point just before that character.) Run the macro, and it performs the two tasks—making the letter capitalized and inserting a period.
The biggest assumption in this macro is that there is only a single space between each word. If there are multiple spaces, then you will need to "clean up" your text after the macro is run.
You can make the macro even more useful by assigning it to a shortcut key. This allows you to make your character selection, press the shortcut key, and then continue with your editing. How you assign a macro to a shortcut key is described in this WordTip.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13668) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365.
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!
Want a quick way to repeat a word or phrase you just typed? Here's the shortcut you need.Discover More
If you are using Word in Draft view, and the text on the screen doesn't wrap at the right margin like it should, the ...Discover More
Some people like to have one space between sentences, while others prefer two. For those in the latter camp, you may ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.