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. 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. Why? Because AutoCorrect uses the space character as a signal to trigger checking what was just typed. 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.įinally, just in case you are curious, you cannot effectively use AutoCorrect to change end-of-sentence spacing. Replacement.Text line so there is only one space in the replacement string. 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. It will replace any number of spaces at the end of a sentence with two spaces: For those of you who want to automate the process of using search and replace, the following VBA macro is quite handy. The techniques to do this have been covered in other issues. 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.
When you then right-click on the flagging, you can choose to correct the spacing for that occurrence. Now the grammar checker will flag any sentences that don't conform to your preference with a green wavy underline. Click on OK to close the Options dialog box.Click on OK to close the Grammar Settings dialog box.Use the Spaces Required Between Sentences drop-down list to indicate how many spaces you prefer between your sentences.Word displays the Grammar Settings dialog box.
The Spelling & Grammar tab of the Options dialog box.