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: Making Sure a Document Always Has an Even Number of Pages.

Making Sure a Document Always Has an Even Number of Pages

Written by Allen Wyatt (last updated July 5, 2021)
This tip applies to Word 97, 2000, 2002, and 2003


2

Zelda would like to be able to automatically add a blank page at the end of a Word document when that document contains an odd number of pages. She would like this to happen because she produces many separate documents that are combined in Adobe and created as PDFs for double-sided printing.

There are two things you can try to get the desired extra page. The first (and perhaps the easiest) is to add a field code to the end of your document that adds the extra page, but only if there are an odd number of pages in the document. Here's the field code:

{ IF { =MOD({ PAGE \* ARABIC}, 2)} = 0 "" "<page break>" }

This should be placed immediately after the last paragraph at the very end of the document. You create the field braces by using Ctrl+F9, and where you see <page break> you should actually add a page break by pressing Ctrl+Enter. The field only adds the page break if the page on which the field occurs is an odd page number. This approach (using the field) is very similar to the approach discussed on this page at the Word MVP site:

http://wordmvp.com/FAQs/TblsFldsFms/InsEvnPgEndChap.htm

The other approach is to use a macro to add the extra page. This doesn't have to be a fancy macro; something as simple as the following will do:

Sub AddPageIfOddNumberOfPages()
If ActiveDocument.BuiltInDocumentProperties("number of pages") Mod 2 <> 0 Then
    Selection.EndKey Unit:=wdStory
    Selection.InsertBreak Type:=wdSectionBreakNextPage
End If
End Sub

Of course, this macro should only be run a single time, just before you print the document for the first time.

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 (3843) 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: Making Sure a Document Always Has an Even Number of Pages.

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

Placeholders for Stamps

Got a reply envelope you want to create? Why not put a placeholder for the stamp on the envelope? It's easy to do if you ...

Discover More

Getting Rid of Hyperlinks in Footnotes

When you add hyperlinks to a document, Word makes them active, meaning you can click them to open the target of the ...

Discover More

Printing Non-Printing Characters

Serious users of Word often display non-printing characters on-screen so they can see them easier. If you want those ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (menu)

Printing Close to the Edge

Word allows you to specify all sorts of paper sizes and margins for your documents. If your margins result in trying to ...

Discover More

Always Printing Drawing Objects

Add a bunch of drawing objects to your document, and you may wonder how to make sure they all appear on a printout. How ...

Discover More

Guidelines for Laser Printer Letterhead

Plan on using printed letterhead in your laser printer? Here are some tips and cautions about doing so.

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 nine minus 5?

2017-12-13 03:37:58

Gareth Rafferty

I've found this incredibly useful - it does what I need it to, but not quite in the way I'd expected...

The macro is the only way I've been able to complete this as I am using a section break (next page) after the last paragraph to enable me to have a back cover page. The field code method doesn't seem to work.

With the macro approach, though, it's adding the extra page as required, however, I'd like the extra page to be added before the section break at the end of the document, rather than at the end of the document. Is this possible (and does this make sense?)?


2015-05-16 18:20:36

Steve Wells

In a previous job, I had been told to place "This Page Intentionally Left Blank" on otherwise empty even pages. I hate that message, because it is self-falsifying. It it's got a message, the page is NOT blank.
But there is a point to being clear that an empty page is not a printing error. So…

I set up the company's (printed) manuals to automatically end each chapter on an even page (after a final pre-printing command to update all fields.) At the end of each chapter, I manually placed a nested field group to control everything. The field made no visible changes if it was on an even numbered page, and with non-printing characters showing, it looked like a lone paragraph mark, or when hiding the non-printing characters, it was invisible. It contained the following fields:

{•IF{•=MOD({•PAGE•*•Arabic•},2)}=•0•""•"
<page•break>
{•ADVANCE••d•216•}This•page•concludes<soft-return>
{STYLEREF••"Heading•1"••*•MERGEFORMAT•}."•}

In the above, curly braces are the field markers and tiny dots are blank spaces, which are important to have exactly right. The items in angle brackets are inserted: a manual page break and a soft return (Shift+Enter). I set the entire STYLEREF field as bold text and the outermost field as 12pt Arial, single spaced, centered, which matched the other text, but other than centering, it's not crucial.

What did it do?
If this end-of-chapter field happened to be on an even page, nothing of it printed. If it had been on a formerly odd page, but text was added or deleted, any previously expanded incarnation collapsed back to its non-printing marker form.
If this end-of-chapter field happened to be on an odd page:
It inserted a page break to place it on the next (even) page, pushed the text down to somewhat above mid-page, added the words "This•page•concludes" and placed the chapter's name (the previous Heading 1 entry) on the next line down in bold text.

It might look like (other than centering, which I can’t format in this comment):
This•page•concludes
Avoid Lying About Blank Pages

It worked perfectly and was TRUE! The page actually did conclude the chapter of that name. Nobody ever questioned the meaning or the wording, not even the guys who wanted a "Blank" message.

A note: For my appendix chapters, which used a different heading, I used my Appendix Heading style for the STYLEREF. Otherwise, it would have used the name of the last regular chapter.


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.