
Tips.Net > WordTips Home > Editing > Dealing with Run-On Sentences
Summary: A common task when editing documents is to break up run-on sentences. You can make this task a little easier by using the editing macro described in this tip. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)
Mia often edits documents containing run-on sentences. Invariably these are two sentences that are currently joined by a comma. Mia wants to replace the comma with a period and then capitalize the first letter of the next word. Doing this manually gets repetitive and time-consuming, so she would like to create a macro and a keyboard shortcut to handle the process.
You could actually record a macro to handle this type of edit. Put your insertion point to the left of the comma and start the macro recorder. You can then perform these steps:
You can now stop the macro recorder. The macro could be assigned to a shortcut key, or to a button on the toolbar (or, in Word 2007, to the Quick Access toolbar). If you examine the macro, you will find that it looks similar to the following:
Sub FixRunOn()
Selection.MoveRight Unit:=wdCharacter, _
Count:=1, Extend:=wdExtend
Selection.TypeText Text:="."
Selection.MoveRight Unit:=wdCharacter, _
Count:=1
Selection.MoveRight Unit:=wdCharacter, _
Count:=1, Extend:=wdExtend
Selection.Range.Case = wdUpperCase
End Sub
Tip #492 applies to Microsoft Word versions: 97 2000 2002 2003 2007
Find and Replace Almost Anything! Learn the ins and outs of the powerful search engines available in Word. Learn to search for and replace text, formatting, graphics, and special characters the easy way with WordTips: Find and Replace.
The real power behind Word's best documents lies in understanding styles and templates. Learn the key to more powerful document creation. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips