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

Page updated May 28, 2018

Redline all capital (UPPERcase) letters

Download RLCAPS.ZIP (v1.01; 02/01/17; 9909 bytes)

Compatible with WordPerfect 8 and later versions

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

Downloading, Documentation, Modifications, and Suppor

Related pages -

•  Convert Case - a macro  to convert the case of text (6 options, including Reverse case).

This macro finds every capital (uppercase) letter, then emphasizes it with redline. It can optionally add large size, bold, and/or italics, Like This.

This also makes capital letters easy to find when proofreading the document.


  • You could use this macro with archaic texts to simulate a medieval "look." [See the macro in the footnote below to add a new font to just the capital letters, such as Lucida Calligraphy or Old English.]
  • Since the macro adds a WordPerfect redline font attribute (not a red text color) to each item it finds, you can use another macro to change or augment the redline attribute codes for various effects. See Ron Hirsch's Replace Codes - Plus.
  • The technique can be modified by macro writers to use other means of emphasis (e.g., underlines) or -- using the macro's ForEach loop as a guide -- to find and replace a series of items such as characters, words, WordPerfect codes, etc.


  • After marking up the document and editing it, either -
    • undo the macro's changes with <Ctrl+Z> or Edit>Undo (note: depending on your settings in Edit>Undo/Redo History on the WordPerfect menu bar, you may be able to undo all changes made by the macro); or
    • save the document with a different name to preserve the original; or
    • close the document without saving changes made by this macro.
  • Note that you can play the macro multiple times on the same document, but unless you Undo changes between each play you might get lots of extra (but harmless) "[Ignore...]" codes around each capital letter.
  • You can set menu defaults in the macro's User Modification Area.


You might want to change the font of the capital letters to something fancier. The macro below can do that. You could play it by itself, or after playing the RLcaps macro.

The macro doesn't search in substructures (footnotes, headers, text boxes, etc.). But you probably don't want it to work there, anyway.

See the comments at the top of the code below. (Note that if you play it multiple times on the same document you probably will see lots of extra "empty" [Font] code pairs. They can be ignored. The macro does very little error-checking, error-trapping, or clean up, but it worked fine in several tests.)

To copy the macro code below into your WordPerfect program, see here.

// Macro begins here

// This simple macro assumes you have the Lucida Calligraphy font installed;
// you can also substitute any installed font; be sure to spell it exactly
// as it appears in your Font list.

ForEach (x;
PosDocVeryTop // Start at the top
MatchSelection // Select the item when found
SearchCaseSensitive (Yes!) // Look for capitals only
OnNotFound (NextLetter@) // If not found, jump down
SearchString (x) // Search for each letter above
While(True) // (i.e., keep looping until 'Not Found')
Font ("Lucida Calligraphy") // Apply the font
Messagebox(;; "Finished")

// Macro ends here