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®
| Page updated Sep 18, 2021
|Colorize Text - A macro that finds all user-specified text in the document and colors it with any one of several standard colors or a custom color|
Some related pages -
• HiLiteDoc.wcm - Highlight words or short phrases in a document based on words/phrases you enter on a pop up menu or from a master list of words (similar to manually using Tools, Highlight on each item)
• Add Codes.wcm - Quickly search the current document for up to 10 specified words or phrases and, when found, add one or more text attributes (e.g., Bold, Underline, Italics, Redline, Large size, etc.) to them wherever they appear in that document
• ReplaceCodes.wcm - Quickly change text attributes (e.g., Bold, Italics, Redline, Large size, etc.) by replacing, adding, or deleting the chosen attribute wherever it appears in the current document; you can even replace an attribute with a custom style (which can be globally updated whenever desired)
• Replacem.wcm - Replace multiple words in one pass; also see the small macros in the footnotes there you can use to add attributes to the words (e.g., Bold, Italics, Redline, Large size, etc.)
ColorTxt.wcm is a macro finds specified words or short phrases and
This is done in a similar manner to Format, Font, Color -- but it works on all the specified words or phrases that are found in the document.
It may be particularly useful in long letters or reports to add color emplasis to certain words or phrases.
When you play the macro a menu appears.
Simply input the desired word or (short) phrase to color. Then choose a color. Several standard colors are available, or you can use a color wheel or RGB color values to select a custom color. (See the Tip below about RGB values.)
You can play the macro more than once on the same document, using different colors for different text.
Menu options include adding bold and/or italics to
the item(s) and to pause for confirmation of each instance found. You
can also remove existing colors before adding new ones.
Note that applying a "red color" as used here is not the same as Redline (i.e., a red appearance applied with Format, Font, Redline, or the red color created with WordPerfect's Document Compare/Review). Colorizing text with this macro uses color codes to bracket the text, the same as if you used Format, Font, Color to apply a color.
You can undo changes (Edit, Undo) after printing or viewing. However, it is always best to work on a copy of the document or save it with a different name after applying the color.
A menu option allows removing all (or specific) instances of color.