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

Page updated Jan 5, 2013

FIXMSGS - Fix messages (email, newgroups, etc.) by removing extraneous codes and characters

Download FIXMSGS.ZIP (v1.04; 07/12/04; 11,148 bytes)

Compatible with WordPerfect 7 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 Support

A WordPerfect macro to remove several miscellaneous formatting codes, ">" symbols (quoteback marks), and extra spaces from email messages or material copied from a newsgroup and pasted into WordPerfect. It also converts line breaks (replacing them with Hard Returns).

Note that the macro cannot anticipate everything that may be included in an email message or newsgroup snippet, so you may have to (1) manually remove other codes or characters later, or (2) add them to the macro's removal list (see the macro code).

Before playing the macro, you must first select some or all text that was previously pasted into a WordPerfect document from your email program or newsgroup reader. By forcing you to select material first, you are less likely to strip out other existing codes or text from the current document. (You can use Edit | Undo after playing the macro.)

You have the option of converting hard returns (HRt) inside paragraphs to spaces to facilitate word wrapping. Note that this option may be best used by selecting individual paragraphs first, or you could wrap individual lines in single-spaced lists, etc.

See also LineWrap.

Programming note: The macro uses two variable arrays to store the Search and Replace terms, which are then used in a ForNext() loop -- a good way for a macro to process a document multiple times in a similar manner.