| Barry MacDonnell's
Toolbox for WordPerfect
Macros, tips, and
templates for Corel® WordPerfect® for Windows®
| Page updated Jul 5, 2015
|SUPDELAY - "Suppress and Delay" - A macro to automatically set up "second pages" with "page identifiers" using both the Suppress and Delay features|
See also -
• Headers, Footers, and Watermarks - how to start, stop, suppress, change, replace, delay, overlay, and remove them
• LETTERHD - An example of an automated letterhead template
• To suppress printing and/or delaying graphic images see the GraphicTips page
WordPerfect menu choices (below) refer to the <WordPerfect> menu (right-click on the top menu bar for a choice of menus). If you use a <Microsoft Word> menu, the choices might be absent from your menu (but not from the program), or they might be found under another menu selection. See here for more.
Some information about the manual methods of suppressing and/or delaying items in documents and templates
It might be helpful to understand the difference between -
(A) suppressing items in WordPerfect so they don't appear on a given page, and -
(B) delaying items so they will appear starting on a particular page further in the document (e.g., on page 2 if there is a page 2).
Using these features manually as explained on those two linked pages will let you do the same things (and more) as with the macro below.
Use a macro to suppress and/or delay items in documents and templates
("Suppress and/or Delay") macro can be downloaded from the left sidebar.
It is useful if the second and
subsequent page of letters, reports, etc., have different headers,
footers, watermarks, and margins, or when you don't want a page number
on Page 1.
[Note that you can also do the same things manually in the current document or in a template; see links above.]
Many people who use preprinted
letterhead stationery, "printed-on-the-fly" stationery, or custom
styles for reports often set margins and page numbering differently for
the first page than for second pages. This macro can do it with a mouse click.
Assume you want to use -- or have already used -- Header A, Footer
A, and/or Watermark A for your first page letterhead design (or to
supplement the design of preprinted stationery), or for the title page
of a company report. But you don't want these items on page 2 and following pages (hence, you want to discontinue them starting on page 2).
Assume you want to use -- or have already used -- Header B, Footer
B, and/or Watermark B for other things (such as a name, date, document
title or page number) on the second and subsequent pages -- if there
are any such pages in a given document -- but you don't want them displayed on page 1 (hence you want them suppressed on page 1).
Also assume you have set new margins on
Page 1, and want to return the margins to some preferred default
setting on subsequent pages, if there are any. (Sometimes body text
Note that you don't have to create any header, footer, or watermark, but if you do the macro will suppress or delay the appropriate structures on the appropriate pages, like this:
Step 1. First, go to the top of the document and set up any desired headers, footers, watermarks (of type A or type B, or both), page numbering, and (optionally) new page margins for just the first page.
Step 2. Then play the macro.
Step 3. (Optional) If you use SUPDELAY with correspondence, reports, etc., you can add some simple commands to insert the current date, several hard returns, etc., on the first page when the macro plays. See the comments at the top of the macro and the disabled code segment at the bottom.
☼ You can play the macro in a template (while editing the template itself) for a permanent Page 1/Page 2+ setup.
☼ You can play the macro in your current document before, during, or following text entry and header/footer setup.
☼ On page 2 you can create a new Header A, Footer A, and Watermark A instead of discontinuing (stopping) them. The newly created elements will simply take over on page 2, automatically discontinuing the same elements that are on page 1. For more detailed information, see Headers, Footers, and Watermarks - how to start, stop, suppress, change, replace, delay, overlay, and remove them.
☼ See the (very) basic macro in Footnote 2 that shows how to create a header and a footer, and exit from each such "substructure".
¤ There was a known bug in the Suppress feature in WordPerfect 11 through WordPerfect X3 which caused the [Suppress] code to be deleted. (It was fixed in WordPerfect X4.) See Footnote 3 below.
[This footnote has been moved to its own page: DelayCodes.html]
// Purpose: Demonstrate creating a HeaderA and FooterA at the
// beginning of a document that does not have either of these items.
// Macro begins
Type ("THIS IS HEADER A ")
Type ("THIS IS FOOTER A ")
Procedure pExitSubstructures ()
// Exit from any header, footer, footnote, endnote,
// text box, graphic caption, etc.:
If ((vSubDoc=10) or (vSubDoc=11))
If (vBoxType=1 or vBoxType=3) BoxEnd (Save!) Endif
// Macro ends
There was a known bug in the Suppress feature in WordPerfect 11 through WordPerfect X3 which caused the [Suppress] code to be deleted.
(It was fixed in WordPerfect X4.)
From Charles Rossiter, Corel C_Tech, relating to WordPerfect 11/sp1 through X3 (quoted here):
"There is a known bug [reported in Corel's support database, Answer ID 207691: "A Suppress code is deleted if the suppress criteria are changed... If any suppress option is removed, the suppress code is deleted."] -- So, if you set suppress criteria on page 107, so as to suppress the page header, and then add a suppress of the footer, you will probably have no suppress code, or suppress actions changed."
Two possible solutions:
1. From CyndyZ on WordPerfect Universe (here):
2. From Charles Rossiter (continued from above quote):