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 Jul 21, 2019 |
|
"Date
Inserter"
- View a scrollable calendar and quickly insert any selected date into
your document in various formats (including "legal-style" dates) -
Optionally have the macro add or subtract "x" days from the selected
date. |
||
|
Purpose Date Inserter.wcm is a macro that displays a dialog on screen (screen shot) with a date field that lets you pick a desired date from a calendar (or simply type in a desired date). It then inserts that date at the current cursor location with the click of a push button, in any of several different formats. Example default formats - June 17, 2019 Monday, June 17, 2019 the 17th day of June, 2019 6/17/2019 Other options let you - add or subtract "x" days from the desired date before inserting the date, display the selected date on screen only, or add bold formatting to the date. Note that the inserted date is a "static" date -- it will not automatically change to the current date if the document is saved and opened at a later time. For that, you should use WordPerfect's menu: Insert, Date/Time, <choose a date/time format>, enable the checkbox "Keep the inserted date current," and click Insert. Limitations Simply place the cursor where you
want the date inserted in the document and then play the macro. Choose
the desired date and other options, then press the appropriate push
button. (A menu checkbox option lets you display the date on screen in
a message box dialog instead of inserting it; press OK to dismiss the
dialog.) Notes • Several menu items can be set to other defaults in the User Modification Area at the top of the macro's code. • Dates in the Date Inserter macro (and the alternative macro below) follow the Month-Day-Year format. To change date formats that are inserted by the push buttons on the main menu see the comments at the top of the macro's code. • Macro writers: // Macro snippet begins // First, get date components from the user's system - |
|
|