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-2012 by Barry MacDonnell. All Rights Reserved.

Page updated Dec 24, 2010
EDGETEXT - Place text, date, or filename outside the page margins

Download EDGETEXT.ZIP (v1.03; 12/24/10; 21,626 bytes)

Revised in WordPerfect X5 but should be compatible with WordPerfect 8 and later versions

WordPerfect 11 users: See important information about using macros in the first release of WP11 (11.0.0.233) at the top of this page.

Downloading, Documentation, Modifications, and Support

Macros with a similar purpose:

DocStamp - A macro that will toggle the display of a user-specified document text stamp—such as "DRAFT" or "COPY"—on and off.

FilStamp - Places the filename at the bottom of FooterA or FooterB, or at the top of HeaderA or HeaderB, starting on page 1.

See also: QuickWords for another way to insert items in a document.

[Revision 1.03, updated 12/24/2010]

Purpose

This WordPerfect macro can place a line of text, the date, and/or the filename at one of eight places around the edges of the page, outside the page margins, on all pages or just specific pages.

This macro grew out of the question, "How do you automatically place text (or the date, or the filename) outside page margins?"

Options

Several formatting options are available. You can adjust or insert the following.

  • Placement: You can put the box on all pages (inside WatermarkA or WatermakB), or just on the current page (in a page-anchored text box).
  • Location: Top of page outside margins (left, center, or right side); middle of page (left side, right side); or bottom of page (left, center, or right side).
  • Offset: The box can be placed midway between the margin guidelines and the physical edges of the page. (The default is to place it as close as possible to the edge of the physical page. In all cases, it is the top of the box that determines placement from the physical edge of the page.)
  • Flip contents: The left and right side boxes can have their contents flipped from the normal rotation.
  • Border: A border can be added. This might be best used with the left, right or top/bottom center locations. If you omit the optional text and date, a blank box with a border might have various practical uses.
  • Optional text: A sample is included so you don't get an empty box on the page. You can use up to 200 characters, including WordPerfect symbols. Additional options allow using smaller or larger font sizes and various text attributes (including shading, highlighting, and redlining).
  • Date: You can have the macro enter the date as a dynamic code or as a static text string.
  • Filename: The filename, with or without the path, can be inserted.

Always print a test page to ensure the text box doesn't extend into your printer's non-printing area. (It should not. If it does, you can change page margins to a narrower setting, and/or choose a greater distance "offset" from the edge of the page for the text box.) You might also want to verify the overall "look" of the box. You can do this easily with File, Print Preview.

Operation and box removal

Depending on menu selections, the macro either uses a text box inside a watermark (to make it appear on all pages) or it places the text box on an individual page.

The watermark-type text box can be deleted by simply deleting the watermark in Reveal Codes; the page-type text box can be deleted by locating the [Box] code in Reveal Codes and deleting it (you can also just drag it from Reveal Codes).

Note that if the box is placed on the Current page only the [Box] code might be located inside a [Delay Codes] code; if so, go to the page where the [Delay Codes] code is located and delete it. [If you click on the code you should see it labeled [Delay Codes: [Box]].]

Note that if you choose one of the two watermark options, any pre-existing watermark of that type (A or B) in the document will be superseded. However, if the pre-existing watermark of that type (A or B) is further down in the document it will take over from that point, so your stamp might not appear from that point forward. [This normal for such items. For more on how watermarks operate see "Headers, Footers, and Watermarks - how to start, stop, suppress, change, replace, delay, overlay, and remove them" at http://wptoolbox.com/tips/HeadFootWM.html.]

Tips

  • You can create multiple text boxes in the document, some on all pages (use one or both watermark Placement choices) and some on specific pages (use the "Current page only" choice) -- and each can be in a different location. Or navigate to a page, use "Current page only" to create a box, navigate to another page, and add another box, etc.
  • Once a customized box is created it can be used in a QuickWord for future documents. This makes it easy and quick to use again. Just select the [Watermark] or [Box] code and create a QuickWord from it.
  • If you need a blank box, select "Create the text box with a border," and do not enter any text or select a filename or date.
  • It may be easier to see these effects by practicing on a copy of your document or on a blank document.
  • You can generally Undo any changes with Edit, Undo (or Ctrl+z).

Modifications

Default menu choices can be changed through the redlined User Modification Area at the top of the macro's code. Once you have put the macro in your macros folder (see instructions), click on Tools, Macro, Edit and open it for editing. Make the desired changes following the instructions in the modification area, and then click Save & Compile on the macro toolbar.

Page Top