| Barry MacDonnell's
Toolbox for WordPerfect
Macros, tips, and
templates for Corel® WordPerfect® for Windows®
| Page updated Sep 12, 2107
|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, edit, 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
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).
See these pages on the Toolbox site for more information:
Using these features manually as explained on those two linked pages will let you do the same things (and more) that you can do using the macro below. But the macro illustrates how several WordPerfect features can be combined to produce a custom formatted dolcument.
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]
Here is a very basic (i.e., demonstration) macro that creates a Header A and a Footer B in a document without such substructures. Note that it simply types some text into each item, but you can modify the code to insert other things.
// 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):