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

Page updated Sep 2, 2009
Renamer - Rename the currently open file

Download RENAMER.ZIP (v1.01; 11/22/05; 4,922 bytes)

Compatible with WordPerfect 8 and later version

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

A macro that lets you rename the currently opened file without using the traditional steps of (1) saving the file, (2) closing it, (3) renaming it with Windows Explorer, then (4) opening it again.

How it works

Since clicking on File>Save As automatically creates a copy of the current file (and leaves you in the opened copy), the Renamer macro -

  • renames the open file (with File>Save As), then
  • immediately deletes the original file from your disk, leaving the current (renamed) file open, then
  • returns the cursor at its original location, ready for further document editing

-- all in one step.

Notes and Tips

  • Since the macro deletes the originally opened file after it makes a renamed copy, a warning message was added to the macro code in v1.01: "Delete the originally opened file <name>...?". You can remove this warning and/or the initial pop-up message ("Renaming current file...") in the redlined User Modification Area. Simply open the macro file like any other document, set either or both variables (vDisplayMessage1, DisplayMessage2) to 0 (zero), then click the Save & Compile button on the macro toolbnar.
  • If the current file has not yet been saved with a name, the Save As dialog lets you name and save it. Hence, you can play the macro in any document, even a newly opened and unnamed one.
  • For convenience, you can assign this macro to a toolbar button, keystroke combination, or menu. See "Three easy ways to play macros, load programs, type keystrokes, or use built-in WordPerfect features".

Other file-processing macros of interest

  • MultiSav - Macros to help automate saving documents
  • SaveCopy - A macro that saves the current file and then immediately makes a copy on another hard drive, floppy disk, or other removable disk
  • Shredder - "Shred" (delete from disk) the currently open file

Disclaimer:
All materials, including any software or software code contained herein, or that may be found on a related Internet site are offered without warranty or guarantee of any kind, either express or implied, including but not limited to implied warranties of merchantability, satisfactory quality, fitness for a particular purpose, non-infringement, or those arising by law, statute, usage of trade, course of dealing or otherwise, and are provided on an "as is," and "with all faults" basis. The entire risk as to the results and performance of these materials or software is assumed by you. The author assumes no liability whatsoever to you or any other entity or third party for any special, incidental, direct, indirect, or consequential damages -- including without limitation any damages to equipment, or for loss of profits, for business interruption, for loss of data or other information, or for any other loss arising out of the use or inability to use these materials, techniques, suggestions, or software programs, even if the author has been notified of the possibility or actuality of such damages, or they are foreseeable. Materials herein have been prepared with reasonable care for educational and informative purposes. No representations are made regarding the use or the results of the use of any materials contained herein in terms of their correctness, accuracy, reliability, or otherwise, and you are again cautioned that you use them solely at your own risk. You are advised to make backups of any important files before implementing any materials, including any macro, suggestion, tip, method, technique, or other item contained herein or that may be found on a related Internet site.