Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Adjusting Space Before.

Adjusting Space Before

Written by Allen Wyatt (last updated November 28, 2020)
This tip applies to Word 97, 2000, 2002, and 2003


Word provides a wide variety of shortcuts that affect the formatting of your document. One such shortcut, Ctrl+0 (that a zero) adds or removes a single line of space from before the selected paragraph. In this case, a "single line" is defined as 12 points of space. For some formatting needs, you may want to add more or less space before a paragraph, and so may wonder if you can change Ctrl+0 so it adds or removes the desired space.

There is no configuration setting you can use to modify how Ctrl+0 does its work; it will always add or remove the 12 points. If you have a variety of spacing needs before paragraphs, the most versatile solution is to define styles that control how you want the text to be formatted. Styles can add any amount of space desired before a paragraph, or none at all. You can then assign the styles to keyboard shortcuts and use the shortcuts to apply the styles to your text.

If you don't want to use styles, but instead want to "recode" what Ctrl+0 does, you can create your own macro. The Ctrl+0 shortcut actually runs an internal command named OpenOrCloseUpPara. If you create a macro that uses this same name, it will be run whenever you press Ctrl+0 instead of the internal command. The following macro is just one example of the type you could create:

Sub OpenOrCloseUpPara()
    If Selection.ParagraphFormat.SpaceBefore = 0 Then
        Selection.ParagraphFormat.SpaceBefore = 18
    Else
        Selection.ParagraphFormat.SpaceBefore = 0
    End If
End Sub

This code first checks to see if the space before the paragraph is 0. If it is, the macro sets the space before to 18 points (a line and a half). If the space before is not 0, then it is set to 0 to effectively remove any space before.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (3846) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Adjusting Space Before.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Saving Money on Printing Labels

Labels can be expensive, and a little common sense will help you waste less money as you try to get your labels to appear ...

Discover More

Last-Row Border Formatting

When the last row displayed on a page doesn't show the borders you want, it can be confusing to figure out how to get ...

Discover More

Inserting Multiple Graphics in a Document

Word allows you to easily place graphics in a document. Placing one or two graphics is easy, but placing many graphics in ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (menu)

Indent and Justify Command

WordPerfect users are familiar with the F4 command, which indents and justifies a paragraph. Word does not have an ...

Discover More

Creating a Double Hanging Indent

A hanging indent is a type of paragraph formatting in which all lines of the paragraph are indented from the left margin ...

Discover More

Removing Space Before Paragraphs

Want to quickly format a paragraph to remove any extra space before it? Word includes a tool that can make this change a ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is one less than 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.