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

Barry MacDonnell's
Toolbox for WordPerfect

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

Page updated Sep 2, 2009

HFMACH - The "Header/Footer Machine"

Download HFMACH.ZIP (v1.06; 07/13/04; 40,827 bytes)

Compatible with WordPerfect 7 and later versions

An earlier version of the techniques used by this macro is available for WP61: See MPDOCS6.

Note: The macro was tested under WP8/WP9/WP10/11/12, but has been reported to work under WP7. See the text box at the top of the macro's code and the comments embedded throughout the macro.

Downloading, Documentation, Modifications, and Support

The Header/Footer Machine is a macro that can pick up either selected or manually inserted text and type it into any of seven header (or footer) styles. By default it suppresses the header or footer on Page 1 of multipage documents, and adds the date and page number (in "page X" or "page X of Y" numbering) on subsequent pages. All you have to do is play the macro and make selections from a dialog box.

(30KB)

Play the macro more than once on a document to add separate headers and footers, each with different information -- or use the same header or footer but with different information on different pages (great for address books, instruction manuals, etc.). Used with any template containing a special bookmark, the macro can automatically pick up a letter's recipient or a story's title, and insert it into a header or footer.

The macro's code is heavily annotated for those who want to learn relatively simple techniques, or for those who just want to cut-and-paste some of the code into their own macros, change the macro's dialog defaults, etc. Originally written in 1997, and still popular.