"Ads by Goooooogle" links provided by Google.com, which has sole control over all advertising content it displays on this site.

Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2008 by Barry MacDonnell. All Rights Reserved.

Page updated Jul 9, 2008
DELCODES - Two macros to (1) delete single selected codes and (2) delete pairs of "empty" attribute and appearance codes

Download DELCODES.ZIP (07/09/08; 16,937 bytes)

Compatible with WordPerfect 7 and later versions

Downloading, Documentation, Modifications, and Support

(1) DELCODES deletes selected single codes from a document such as [Bold On], [Hypertext Begin], [Para Spacing], [Tab Set], etc. Many of these codes are actually the beginning code that is part of a pair of codes surround text; deleting the first code will automatically delete the second (ending) code. Other codes, such as [Tab Set], are strictly single codes and are not part of a pair. The list of codes presented in the opening menu can be modified in the macro code.

(2) DELPAIRS deletes pairs of "empty" attribute or appearance codes such as [Und On][Und Off] that may have been left behind in a document after editing. They are "empty" because there is no text between them. DELPAIRS is very useful in cleaning up clutter in the Reveal Codes window.

NOTE: The download file was named DELPAIRS.ZIP prior to 3/21/01. Both macros are based on John Land's public domain macros.

TIP: For a macro that can clean up extra codes inserted when you import a Microsoft Word document, see Mike Koenecke's Word Cleanup macro, park of his MAKMacros suite,