Word.Tips.Net WordTips (Menu Interface)

An Automatic Two Spaces After a Period

Summary: Should you put two spaces after a sentence or just one? Ask different people and you will get different answers. To Word the answer isn't really important; it can help you enforce either type of spacing you want. This tip explains how. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

Tom asked if there is a way to configure Word so it automatically places two spaces after each period, as can be done in WordPerfect. It is interesting that every time a question about inter-sentence spacing comes up, I receive a flurry of messages indicating either that two spaces is a good idea or that two spaces represents poor form.

I'm not going to get into considerations of what is right or wrong when it comes to spacing between sentences. There are, quite honestly, good reasons to do such spacing, and equally good reasons to not do it. (Tom, I trust you will make your own educated decision about whether two spaces after a period is really necessary in this day and age.)

That being said, the purpose of this tip is to explain how you can adjust your typing for the spacing you prefer. Word does not provide an "automatic two spaces" setting, as is available in WordPerfect. There are still things you can do, however.

First of all, you can configure Word's grammar checker to flag any end-of-sentence spacing that doesn't match your preferences. Simply follow these steps if you are using a version of Word prior to Word 2007:

  1. Choose Options from the Tools menu. Word displays the Options dialog box.
  2. Make sure the Spelling & Grammar tab is displayed. (Click here to see a related figure.)
  3. Click on the Settings button. Word displays the Grammar Settings dialog box. (Click here to see a related figure.)
  4. Use the Spaces Required Between Sentences drop-down list to indicate how many spaces you prefer between your sentences.
  5. Click on OK to close the Grammar Settings dialog box.
  6. Click on OK to close the Options dialog box.

If you are using Word 2007, then you should follow these steps:

  1. Click the Office button and then click Word Options. Word displays the Word Options dialog box.
  2. Click the Proofing option at the left side of the dialog box. (Click here to see a related figure.)
  3. Click the Settings button. Word displays the Grammar Settings dialog box.
  4. Use the Spaces Required Between Sentences drop-down list to indicate how many spaces you prefer between your sentences.
  5. Click on OK to close the Grammar Settings dialog box.
  6. Click on OK to close the Word Options dialog box.

Now the grammar checker will flag any sentences that don't conform to your preference with a green wavy underline. When you then right-click on the flagging, you can choose to correct the spacing for that occurrence.

If you want to do mass replacements of your end-of-sentence spacing, the best thing to do is to use the search and replace features of Word. The techniques to do this have been covered in other issues. For those of you who want to automate the process of using search and replace, the following VBA macro is quite handy. It will replace any number of spaces at the end of a sentence with two spaces:

Sub TwoSpaces()
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = "([.\?\!]) {1,}"
        .Replacement.Text = "\1  "
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchWildcards = True
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub

If you want to alter the macro so that it ensures all your sentences have only a single space at the end, you can simply change the .Replacement.Text line so there is only one space in the replacement string. Another thing to note about this macro is that it corrects any sentences ending in a period, question mark, or exclamation point; it will not catch and correct any sentences that end in a quote mark.

Finally, just in case you are curious, you cannot effectively use AutoCorrect to change end-of-sentence spacing. Why? Because AutoCorrect uses the space character as a signal to trigger checking what was just typed. Thus, AutoCorrect entries cannot utilize spaces, so you cannot use AutoCorrect to search for a period followed by a space and replace it with a period followed by two spaces. You can, if you desire, cause AutoCorrect to replace every period you type with a period followed by two spaces, but this can lead to some very bizarre typing experiences. Try it, if you want, but you will probably delete the "replace periods with a period and two spaces" entry shortly after the try.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1820) applies to the following Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007

Related Tips:

Document and Annotate! One of the easily overlooked tools provided by Word is the ability to add footnotes and endnotes to your documents. WordTips: Footnotes and Endnotes is the definitive resource guide to using these tools to enhance your documents. Check out WordTips: Footnotes and Endnotes today!