tips, and templates for Corel®
WordPerfect® for Windows®
Page updated Jun 4, 2018
Scroll down for all listings
items on this page? Please direct them to the original authors.[N.B.: Not all of
the macros on this page have been tested by Barry MacDonnell, but
all are from reputable sources.]
Downloading and installing macros and templates: See instructions here
|Did you find something
Did it save you some time?
A small donation -- anonymous if you prefer -- via PayPal (credit cards accepted) will be greatly appreciated to help me keep this site alive. Thanks very much for your support!
|WordPerfect version (compatibility)||Author||Descriptions / Downloads|
WordPerfect 11 users: See important information here about using macros and some templates in the first release of WP11 (220.127.116.11).
| Ron Hirsch has graciously contributed these macros.
Replace Codes - Plus has been modified by Barry MacDonnell with Ron's permission.
Download REPLACE.ZIP 03/12/18; 35,616 bytes).
Contains 2 macros:
• Replace Codes - Plus.wcm (v1.04)(Minor update 01/24/18) for WordPerfect versions 9 and later versions
• Replace font size via menu.wcm (see below)
|6-12 (but most should work in later versions)||
Over 160 WordPerfect for Windows macros in a
ZIP archive file. Documentation included. Note: These unsupported macros are
in the public domain.
JLMACS80.ZIP (963,987 bytes) - For WordPerfect 8 - but many (if not most) will work with WordPerfect 9+. Originally published on CompuServe. Dedicated to the public domain by John Land, Esq. Thanks, John!
- "In a Dialog you select a folder; in a second Dialog you choose a
macro. Then DoFolder runs that macro on each file in the folder."
Many other macros and other items by Roy Lewis are directly downloadable from his web site at https://www.lemoto.org.uk/corel/mcMenFl.htm and https://www.lemoto.org.uk/corel/mcKyBd.htm.
is a retired attorney from Oklahoma and was a frequent contributor to WordPerfect Universe. He originally
published these as PDF files
website (now closed) but has graciously agreed to allow posting the
(slightly renamed) files here.
CPMACMAN.ZIP (7,914,915 bytes) - A Common Person's WordPerfect Macro Manual
Contains all 12 chapters (192 pages) in one PDF fle, originally published in 2004 but still useful today. Note: The document is searchable; however, original navigation links are broken.
MERGE2WP.ZIP (410,890 bytes) - Using WordPerfect's Merge To Create Mailing Labels From Quattro Pro
A 4-step PDF tutorial (7 pages) with lots of screen shots. The method is described for Quattro Pro, but it can also be used with Microsoft Excel or a WordPerfect table as the data source.
See Gordon's page of free macros here.
(08/24/08; 296,876 bytes) - Includes three macros and a PDF document
(Indexes and Indexing.pdf) which outlines an approach to creating
indexes; identifies alternative methods of selecting and marking index
entries; demonstrates a technique for creating multiple indexes to any
document; lists macros designed to assist indexing; and provides an
example of a suitable index format.
• Creating Custom Keyboards.pdf (08/07/08; PDF file, 597,521 bytes) - The document outlines the advantages of personal or project keyboards, and illustrates how to assign features, text, programs, and macros to keyboards and templates. It includes a method of recording the assignments. [See also Assigning a macro, feature, program, or string of keystrokes to a key or key combination (i.e., a "shortcut" or "hot key").]
• TRANSLATE.ZIP (12/30/05; 35,631 bytes) - This package comprises four macros and an explanatory document. It was developed to process translated documents but may also be used with English third party documents. Co-incidentally the macros can provide items for inclusion in indexes, and glossaries.
◦ MisSpelt.wcm captures as a list all text entries identified by the
Spell Checker as 'mis-spelt' or not already added to a custom
◦ CleanUp.wcm removes punctuation and other characters and some codes from lists, sorts the list and deletes duplicate entries. Additional or alternative characters and codes can be easily added.
◦ ExtractLC.wcm separates into two documents list entries with an
initial upper case or lower case character.
◦ Hyphen_Dash.wcm substitutes the WP CharSet value 4,33 [-] for a hyphen.
• CODECHAR.ZIP (11/23/04; 123,924 bytes) - Finding and Using Codes and Characters in WordPerfect Macros
Knowing which character or code precedes or follows the cursor may be an important factor in making a macro work successfully. This included WordPerfect document assembles information about using the system variables ?Left/?RightCode :: ?Left/?RightChar to find codes and characters in WordPerfect macros.
Some macro tips and code fragments are included, together with guides to additional resources and other details that affect the use of variables and commands.
A macro (ShowCodes.wcm) is also included. The macro displays a small movable dialog on screen that remains on screen until dismissed; you can then move the cursor in Reveal Codes and the dialog will show the current code or character's numerical values to the left and right side of the cursor. You can then use the value(s) in your own macro when you move to, or around, a particular area in the document.
• SPACES2TAB.ZIP (8/22/04; 4,702 bytes) - Searches for and deletes all occurrences of multiple spaces and substitutes a LeftTab code. Particularly useful when tabular material converted from other programs use multiple spaces to preserve visual appearance of the original document or table. Can be easily modified to substitute a single space or other character or code in documents.
• PGLNNO.ZIP (07/18/04; 22,690 bytes) - "Page-Line-Number" - A macro written by New Zealand author Lindsay Rollo that finds a specified character string in a document and records in a second document the page number, line number, and type and location of each string's occurrence. [See also PageLine in the main Library, which can produce a complete page- and line number Index.]
• SPACES.ZIP (98,375 bytes) - WordPerfect users who produce self-published documents, prepare them as camera-ready copy, or who generate PDF files will appreciate this archive file. It includes a free font, space.ttf, to produce typographical hard spaces, which improve readability in headings, measurements, etc.
WPWIN does not provide for typographic spaces - that is, fixed spaces of various widths that are proportional of the base font size. At least three typographic spaces are usually available in dedicated DTP programs.
This archive file includes a TrueType font for creating typographic spaces [licensed for personal use], and explanatory notes and examples about the uses for typographic spaces in general documents of all types and particularly for compliance with ISO standards and academic publishing standards in scientific, technical and professional journals, reports and publications. The notes are in PDF format, and include a macro example for WordPerfect.
Incluided in the above ZIP file is a separate zrchive file, SPACERS.ZIP, which contains six macros. These macros can be assigned to keystrokes such as Alt+1, Alt+2, etc., to automate the insertion of typographical spaces.
archive of Charles's macros:
ALLROSSITERMACROS.ZIP (253,057 bytes; 1 May 08) - Macros by Charles Rossiter - The archive contains a WPD document and these macros:• AppBarMsg.wcm - (WP9+) To display messages at the bottom right of the screen:
Page X of Y
• CharCount.wcm (WP9+) - To provide word, character and white space counts for main text, footnotes, endnotes, headers/footers, text boxes and comments separately. May be applied to whole document or to selected text. The results may be written to the clipboard and so be pasted into the current or a new document.
Tip: For those who need an exact number of characters per line, here is an easy technique from Charles posted on WordPerfect Universe (and a downloadable style for those who want a finished product) that can produce (e.g.) 63 characters per line. Note that this requires a monospace font such as Courier New.
• CleanSave.wcm - To save a file with a refreshed internal header, with old metadata removed.
Saves the file with original date and time (optional).
Saves with the original document summary (optional).
Saves with a backup file (optional).
Saves with default font settings and language settings.
• ConvertCaseInitialCaps.wcm (For WP10 and later versions) - To workaround a bug in WPWin10 [and later?], which causes the WPWin command Convert Case Initial Capitals to fail, if the Tools, Settings, Convert option "Do not use printer metrics" has been selected and written to the default template. The macro could be attached to the Edit, Convert menu.
[UPDATE: This WordPerfect bug seems to have been fixed in a later version of WordPerfect, since it doesn't now exist in (at least) WPX7. For a more flexible macro (i.e., more options) that was not designed as a fix for the problem, see Convert Case.wcm on the Toolbox site here.]
• Delete Current File.wcm (NOT for WP8 - but see Shredder.wcm in the main Library) - To delete the file currently on-screen.
• FloatingCellToolbar.wcm - Toggle the TableFormulaCellBar on/off for Floating Cells.
• Julian.wcm - To calculate Julian dates, and numbers of days between 2 dates.
• Margins Set.wcm (Not needed for WPWin8, but functions correctly) - To set margins for pages and labels. Correction for bug in WPWin9 and later. [See Footnote 1 below.]
• NewSave.wcm - To save a file with a refreshed internal header. As CleanSave.wcm, but without the options.
• QWManage.wcm - Manage QuickWords.
A. Create a 2 column table listing all QuickWords Abbreviations and their Expansions defined in the current, default and supplemental templates.
B. Restore QuickWords and their expansions from the output of option A created in a table with 2 columns of Abbreviations and Expansions.
• Reverse Case.wcm - To reverse the case of selected text.
• SMR.wcm - Macro for calculating the 95% confidence intervals for a Standardized Mortality Ratio, given the values of at least 2 of SMR, observed deaths, expected deaths.
• SearchCodes.wcm - Dialog for displaying common codes to be searched for, and for deleting or replacing these codes from a document.
• Style List.wcm - Creates a list of all document and outline styles in the default template.
• TableAttributesRemove.wcm - Removes Table and Table Cell attributes; leaves table text attributes unchanged.
• TextOpen_Save.wcm (WP9+) - To provide all options available for opening and saving Ansi/Ascii files.
• WordCount.wcm (WP9+) - To provide word counts for main text, footnotes, endnotes, headers/footers, text boxes and comments separately. May be applied to whole document or to selected text. The results may be written to the clipboard and so be pasted into the current or a new document.
Footnote 1 [...continued from above...]
Charles Rossiter's Margins Set macro sets margins for pages and labels. As Charles said in a post on WordPerfect Universe: "You should not change label margins in a document [in WP9 and later]. It should only be done when you are selecting the label definition; then click Edit. A bug in the margins dialog (since WPWin9) applies the page margins to the labels." His macro will do the job, though, including setting label margins to zero.
Footnote 2 [...continued from above...]
You can use Ron Hirsch's Replace Codes - Plus macro to change or augment (add) multiple text attributes or other formatting applied to certain words of phrases with a few separate steps.
While this could be done with other custom macros that simply find and change (or add additional) format codes, the following tip replaces specific existing formatting with a custom Character style at the various original formatted locations.
(It's also easier to do than to explain.)
This new style acts as a "container" and makes it easier in the future to edit the new formatting later for those particular items by simply editing any single instance of the style. It also makes it easier to completely remove the style code -- and thus either retain the style's new formatting or even remove all the style's formatting from its text -- as explained on the CustomStyles page.
Suppose you have used italicized redline at various places in a document that was formatted overall in 12-point Times New Roman font, and you wish to change these items to bold 10-point Arial font.
Note that the method demonstrated below is similar for changing other text attributes, fonts, sizes, etc. -- even solitary text attributes such as bold or underline -- applied to various body text items.
• Open Reveal Codes (View, Reveal Codes).
• In the document, create a custom Character style that applies an otherwise unused text attribute.
Note: This new style must be available in the property bar's Styles list (or in Format, Styles) and it should apply a text attribute or other format that is not used elsewhere in the document. The purpose is to use the style to temporarily replace (e.g.) the existing [Italc] and [Redline] format code pairs at locations where they exist together. [If you are not sure how to create the style, see custom styles for more information.]
For example, create a style so that it applies (e.g.) the Very Large relative size attribute (or perhaps a distinctive color or font face). In our example, in the Styles Editor's contents pane you should see these 3 codes (which may be wrapped inside the pane):
[Very Large][Codes to the Left are ON - Codes to the Right are OFF][Very Large]
Important: The long [Codes to the Left...] code needs to be visible by ticking the box at the bottom of the pane, "Show 'off codes'".
• Name the style (keep the name short and memorable, such as RepStyle1) and save it. [Optionally, you can copy it to your default (or other) template for future use in other documents, as explained on the CustomStyles page.]
• Play Replace Codes - Plus in the document -- once for each replacement. See next bullet point.
For the first replacement: Choose the format to replace that typically covers just the word or phrase, or is the least likely of the other format(s) to be used by itself elsewhere in the document. In our example you could choose to replace the redline codes (assuming, for example, that italics might often be used by itself at other locations).
Reason: Since some text formatting can be applied in a "nested" overlapping manner (this is an example of overlapping italic and redline attributes) rather than at the same location (this is an example of non-overlapping italic and redline attributes) you might want to focus first on replacing the least likely attribute (here, the redline attribute).
Recommendation (although not required): Choose (tick) the checkbox option on the macro's menu to Prompt you for confirmation at each item found so that you can see the screen and won't accidentally change (e.g.) the wrong items. (When prompted, you can exit at any time and even Undo the last change with Ctrl+Z.) If you know your targeted multiple text attributes are only used together and are not used alone, you can skip this option.
• Use the radio button on the left side of the macro's pop up menu to choose the attribute. Tick (enable) the Style checkbox on the right side of the menu. On the next menu screen, type the custom style's name at the top of the drop list. Click OK to begin replacing that attribute.
• Repeat this process for the the next format code (here, italics). Repeat again for any other format codes that are part of the multiple attributes to replace. (This repetition does not duplicate the same Style, it just overwrites it.)
When finished replacing the existing format codes, you should now have only very large text items (i.e., created by the custom style) at those locations in your document instead of the original italicized redline text.
This new format created by the applied Style is just a temporary "placeholder" for step #3.
• Edit any instance of the newly applied Style by simply double-clicking on the [Style] code in Reveal Codes to open its Styles Editor.
▸ Place the cursor in the Editor's Contents pane at the top left side of that pane. Delete the [Very Large] code there (unless you really want to use it). Be sure not to delete the long [Codes to the Left...] code, which should remain in place. (Cancel out of the Editor if you make a mistake.)
▸ Then use Shift+Arrow to select all codes in the pane.
(In our example it's probably just the long [Codes to the Left...] code.)
▸ While selected, use the Styles Editor's own menu (or its text property bar) to apply the desired formatting:
Arial, 10-point size, and the bold attribute.
Again, be sure not to delete the long [Codes to the Left ...] code, which should remain in place.
▸ Move the cursor in the Contents pane back to the top of the pane and you should now see (in our example) these codes in the Styles Editor:
[Bold][Font Size: 10pt][Font: Arial][Codes to the Left are ON - Codes to the Right are OFF][Bold]
▸ Close the Styles Editor (click OK) to return to the document. You should now see that the relevant text items in the document are formatted in Arial 10-point bold.
☼ You can repeat step #3 whenever desired to revise the applied formatting. To remove the custom style see "How to remove styles..." on the CustomStyles page.
☼ You can copy the (now edited) custom style for future use in the current or future documents. See "Editing, modifying, and copying existing styles" on the CustomStyles page.