
Tips.Net > WordTips Home > Formatting > Paragraph Formatting > Quickly Adjusting Paragraph Spacing
Summary: Word allows you to easily adjust the amount of white space before and after a paragraph. Rather than continually displaying the Paragraph dialog box, you may want to use the macros in this tip to make short work of adding the desired space. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
One of the finishing touches that many people need to apply to their documents is to precisely adjust the spacing between their paragraphs to achieve a desired look. Word provides quite a bit of control over the spacing between paragraphs. You do this by adjusting the Before and After values in the Paragraph dialog box.
If you do quite a bit of adjusting space before or after a paragraph, it can become tedious to continually display the Paragraph dialog box and make the adjustments. Unfortunately, Word does not include any keyboard shortcuts that allow you to adjust this type of spacing quickly. You can, however, achieve an equivalent ease-of-use by developing your own macros.
For instance, the following macros will adjust the space after a paragraph by a single point.
Sub SAPlus() Dim SA As Integer SA = Selection.ParagraphFormat.SpaceAfter + 1 If SA > 1584 Then SA = 1584 Selection.ParagraphFormat.SpaceAfter = SA End Sub
Notice that the macro only allows you to increase the space after a paragraph to 1584 points. This is because this is the maximum value allowed by Word; a higher value would generate an error. A slight variation on the macro results in one for decreasing space after a paragraph:
Sub SAMinus() Dim SA As Integer SA = Selection.ParagraphFormat.SpaceAfter - 1 If SA < 0 Then SA = 0 Selection.ParagraphFormat.SpaceAfter = SA End Sub
Note that these macros could easily be modified to use some other value or formula for calculating the increment or decrement for spacing. For instance, you could add or subtract 6 points at a time, if desired. You could also change the macros so they apply to the space before a paragraph by simply changing every occurrence of "after" to "before."
The final trick to make these macros really useful is to assign them to a keyboard combination or buttons on the toolbar. You can do this using information provided in other issues of WordTips.
Tip #1669 applies to Microsoft Word versions: 97 2000 2002 2003
Create and Merge! Discover how to use Word's mail merge tool to create your own custom documents. WordTips: Mail Merge Magic includes all the information you need to make your merges more productive.
Discover how to use Word's mail merge tool to create your own custom documents in just minutes. Great e-book answers all your questions. (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