| Barry MacDonnell's
Toolbox for WordPerfect
Macros, tips, and
templates for Corel® WordPerfect® for Windows®
| Page updated Jan 7, 2017
|LETTERHD - An automated letterhead template|
!README FIRST.WPD, MY LETTERHEAD.WPT (two versions, one for WP8 and one for WP9/WP10+), and the guide, MY LETTERHEAD TEMPLATE.WPD, and AUTOMATING WORDPERFECT TEMPLATES (in PDF format, which requires Adobe Acrobat Reader; if you have Reader installed and want to view this file online, click here)].
Other pages on this site which might be of interest:
templates - How to easily create and modify
your own custom templates
The Suppress feature - Stopping the display of certain format items on a page
Delay Codes - Starting specified formatting "x" pages further into the document
2footers.html - Using two footers simultaneously (one for page number, the other for separator line and filename, etc.) so that items do not overlap
2Trays.html - Print your letterhead page from one printer tray, and second and subsequent pages from another tray ("two-tray" printing) - The functions of WordPerfect's Page Setup dialog
Assoc.html - Automatically associate a personalized keyboard or menu with a template
AutoDate.html - Automatically insert the current date as unchanging text in a letterhead or other template
AutoNumb.html - Automatic paragraph numbering, outlines, and numbered lists - How to turn these on and off, temporarily or permanently
AutoSpel.html - Automatically run the spell checker before printing a document
Boilerplate.html - Ten ways to insert 'boilerplate' and other repeating items: QuickWords, QuickCorrect, Shortcut keys, Styles, Macros, Floating cells, Insert>File, and (in WordPerfect 10+), Text variables, the Corel ClipBook, and other utility programs
CustomRA.html - Customize the return address on envelopes with graphics and font attributes
CustPrns.html - How to create new, customized copies of your favorite printer choices - Controlling the tray source, ink color, and other features of your printer
Env2Prn2.html - Print envelopes to another printer, then reset WordPerfect 10 to your default printer
HeadFootWM.html - Headers, Footers, and Watermarks - Some useful WordPerfect features you can add to multi-page documents ... and how to start, stop, replace, change, or delay their appearance (links to related topics, such as page numbering and page identification, can be found on the left column of the page)
LoadLetr.html - Load a letterhead (or any other document based on a template) with a mouseclick or keystroke
MailingAddress.html - How WordPerfect finds a mailing address on your letter
MergeMP.html - Merging multiple-page letters using letterhead paper for page 1 and plain paper for subsequent pages - Merging multiple-page documents so that formatting is identical from record to record - Page numbering in multi-page form documents
PageNumb.html - Page numbering in WordPerfect (plus related links)
ResetMargins.html - 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.
StampDoc.html - Creating "DRAFT," "COPY," and other identification stamps on the pages of a document
Here is an automated custom
letterhead template. The download file (see
left column) contains detailed, step-by-step guides to modifying the
included sample templates and creating other "prompted" templates.
☼ To set up a non-automated (or unprompted) custom letterhead template based on the included letterhead template see the tip below.
☼ To create any non-automated (or unprompted) custom templates see here.
☼ To add items to it on certain pages (and not other pages) -- or suppress certain items on a given page -- see here.
Important: Two (nearly) identical sample templates are included in the download file (in the left column): One template is for WordPerfect 8 (which has slightly different Address Book fields than later versions), named "My letterhead (WP8).wpt"; the other one is for WordPerfect 9 and later versions, named "My letterhead (WP9).wpt". The main instructional guide is named "My letterhead template.wpd" and it is a regular WordPerfect document, not a template.
Screen shot 1:
Page 1 of sample letterhead document
Screen shot 2:
Page 2 of sample letterhead document:
As shown in screen shot 1, the template uses a simple text letterhead inside a graphic box at the top of the letter. The use of text makes it easy to edit and change; the use of a box keeps the letterhead information together on the page.
But what makes it truly useful is this: It pops up a fill-in Template Information dialog (screen shot 3) to get information from the user, then it automatically inserts this information -- and certain other information -- in various places in the letter. This information includes such things as the current date, delivery method, recipient's name and address, reference information, and page numbers on subsequent pages.
Screen shot 3:
Template Information dialog that appears when a new letter document is loaded:
The template also creates informational
headers and footers in their proper locations depending on the
number of pages in the letter. (See screen shot 1 and 2).
Multipage letters: If the letter has more than one page, page 2 and following pages will have different headers and footers from the ones used on page 1. The header on page 2+ (see screen shot 2 above) will show the recipient's name, a RE: item (if used), the current date, and the page number. The footer on page 2+ shows just the company name and address. (Again, these can be customized.)
Finally, a template macro -- a macro that was saved inside the template -- removes certain text strings if they are not used (and the lines they would have occupied) such as empty address lines, reference lines, and "cc:" information.
Setting up a non-automated (or partially automated) letterhead template
How to position the cursor at a specific
location in a document as soon as the document opens.
This material is for those who wish to create just a cursor-positioning function in any template -- using the same basic method that exists in the MyLetterhead.wpt template above but without the other automation features employed in that template.
You may have heard of another method: Users have found that setting a QuickMark
with Tools, Bookmark and enabling the option "Go to QuickMark on open"
will work when saving an ordinary document but will not work when saving a template that has a
QuickMark embedded in it. This small problem seems to be present since
at least WordPerfect 8 and is still present in WordPerfect X4 (and perhaps later versions).
However, the following method will work to automate the initial positioning of the cursor in documents based on a particular template. The main reason is that it uses a standard bookmark, not a QuickMark bookmark.
1. Edit (or create) the custom template (for help see here).
2. Place the cursor where you wish to begin typing.
3. Click Tools, Bookmark, Create and give the new bookmark a name (e.g., Start or Text, etc.). (Don't check the box, "Selected Bookmark," under the name in the Create Bookmark dialog; that option creates a paired bookmark. Here, you just want a single bookmark code.) Click OK, then Close, to return to the template document you are editing.
4. Next, create a template macro by recording it while the template document is still on screen. Here's how:
5. Now, you need to associate this macro with a trigger (for more on triggers see http://wptoolbox.com/tips/Triggers.html):
6. Save the template document.
7. Test the
effects of the new macro by loading a new blank document based on that
template (File, New...).
[For a much more comprehensive explanation on automating templates, see the PDF file Automating WordPerfect Templates on the main Tips page here.)