Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2008 by Barry MacDonnell. All Rights Reserved.

Page updated June 6, 2008
WordPerfect Tips
Main tips page | Browse tips

Need to reset page margins on page 2 (if there is a page 2) back to the one-inch default or some other setting?

Here's how to do it in either the current document or in a template.

Step 1.

Put the cursor at the top of page 1, then click Format, Page, Delay Codes. Accept the "1" in the "Number of pages..." field and click OK.

Step 2.

In the Define Delayed Codes window that appears, click Format, Margins (or click the Page Setup or Page Size button).

Step 3.

WordPerfect 9 and earlier - In the Page Setup dialog that appears, set new margins or accept the default of 1" for all margins, then click OK. Go to Step 4.

WordPerfect 10 and later - If you have not changed any margins on page 1 but you want to ensure that margins are always set back to the 1" default on any second or subsequent page, follow the instructions in the next paragraph. If you have changed any margins to a new value on page 1, you should not need these instructions (but please read them before going to Step 4).

In the Page Setup dialog that appears, change any of the margin settings a small amount, then click OK. This will insert all four margin codes in the Reveal Codes window of the Define Delay Codes screen. Then change the margin settings back to your default (1") or to some other setting. This extra step of changing margins a small amount in Define Delay Codes, then resetting them to the desired amount, is a workaround for a small bug in WP10/11/12/X3. In WP9 and earlier versions the program would insert the four margin codes -- with a default 1" setting -- by simply clicking OK in Page Setup. If you just click OK in WP10/11/12/X3 to try and insert default margin settings, nothing happens: no codes are inserted.

Step 4.

Click Close to exit from the Define Delay Codes window. In Reveal Codes, you should see a [Delay] code on page 1. Normally you should move the cursor past this new code before beginning typing your text so as not to push the code to another page.

Tips

Here's a tip to let you "hide" a [Delay] code so it is less likely to be moved or deleted accidentally: Open Reveal Codes, select just the new [Delay] code (this is most easily done with <Shift+arrow>), and cut it to the clipboard with <Ctrl+X>. Then double-click the initial [Open Style: DocumentStyle] code at the very top of the document; this opens the Style Editor; paste the [Delay Code] into the Contents field, then click OK. (Just remember to look inside the initial style code if you need to revise or delete the [Delay] code!)

  • You can use more than one Delay code in the document's initial style.
  • Caution: Do not try to create a [Delay] code for a Header, Footer, or Watermark directly inside the document's (or template's) initial style's Styles Editor by using the menu in the Styles Editor dialog, or the program may "hang" on you. Instead, either cut the [Delay] code from the document and paste into the Style Editor as explained above, or copy an existing [Delay] code from another document and paste it into the Styles Editor.
  • Macro writers: You can easily incorporate formatting codes inside a document's (or template's) initial style with a macro. See here for an example.