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

Page updated Sep 2, 2009
UPDATER - Update a document with the current system's defaults, and also remove confidential information from the Undo/Redo History feature as well as all spell-checker skipped words from the Document Word List

Download UPDATER.ZIP (version 1.22; 10/19/06; 9,294 bytes)

Compatible with WordPerfect 8 and later versions

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

Downloading, Documentation, Modifications, and Support

For a similar macro, download (Corel C_Tech) Charles Rosssiter's NewSave macro here.

For a similar macro for WordPerfect 6.1, see #UPDATE.WCM in the WP6.1 version of John Land's collections on the Other Authors page.

A macro to "update" the current on-screen document, or any selected file on disk, with the current system's default template settings.

This is helpful if you want to

  • annotate a document from another source and use your own default template's settings (default font, redline method, etc.); or
  • update old files with new default fonts, etc.; or
  • remove annoying pop-up messages about permission to hyphenate in documents where hyphenation was previously turned on, but where it is currently turned off; or
  • remove information that may have been stored in Edit, Undo/Redo History when the document was saved. (This feature -- to save revision history or "metadata" -- is a user-selectable setting. Click the Options button from the Undo/Redo History dialog and uncheck "Save Undo/Redo items with document." Then resave the current document and play Updater on it just to be sure.) Such metadata information can be recovered and viewed by others who share your documents, so unless you always create documents with the "Save Undo/Redo items with document" turned off, you may want to use Updater to remove your confidential revisions, deletions, etc., before distributing them. If nothing else, the documents should be smaller in file size after playing Updater on them; or
  • remove the contents of the Document Word List, which stores spell checker words that have been skipped during a spell check; or
  • try to fix damaged or corrupted documents with the "X-Insert" or "X-Retrieve" method (see here for more information on the causes and cures of damaged or corrupted documents).

The macro uses a simple trick to accomplish its task:

  • First, it stores the "guest" document's path and filename, and then immediately closes the document.
  • Then it opens a new document (the "host") and enters a single character (a technique called "X-Insert" or "X-Retrieve").
  • Then it erases that character. This establishes the hidden file header using your template defaults.
  • Then (using the stored filename) it inserts the guest document, which then will take on the settings (e.g., redline method) of the host document.
  • Finally, it saves the host file using the filename of the guest file, overwriting the guest file on disk.

Instructions: Simply play the macro. You are given the choice of updating the current document on screen or any file on disc. If the file on screen has been modified, you will be asked if you want to save the changes (you must save the changes if you want the macro to continue).