Background: MBCalndr.wcm started life as CALENDAR.WPM in 1995, a macro for WP6/DOS. It got up to version 2.41 in that incarnation. I didn't start to use WP/WIN until version 8, and then discovered that the macro language regarding dialogues had dramatically changed. As the serious wordprocessing at the office is still done to this day in WP6/DOS, I had no incentive to re-write my old macros. However, as I started to use MS Outlook as my private on-screen calendar I found that Outlook's calendar printing was not quite what I wanted. So I started re-writing my old WordPerfect macro, starting with version 3; the current version of 3.16 reflects several internal development cycles. Other old macros of mine I would like to re-write include a font cataloguer and a Tic-Tac-Toe game. Version 3.17 (23-Sep-00) improved compatibility Changed "Hrt:=NtoC(Hrt!)" which only works in WP9 to "NtoC(0F90Ah)" Version 3.18 (23-Sep-00) bug fix Error condition "tooManyFiles" was wrongly handled as a Procedure() where "MacroName" wasn't available: changed to Label(). Also forgot to reset OnError(). Version 3.20 (27-Sep-00) Interface improvement Introduced Progress Bars and "All 12 Months" button. The Progress Bars were designed on a 1024x768 screen, they work less well on lower resolutions. Version 3.21 (27-Sep-00) Interface improvement Offer the user a choice which, if any, Progress Bars to display. Version 3.22 (27-Sep-00) Functionality improvement Ignore completely empty lines in the events merge file (Calendar.dat). Also: display Progress Bar for importing events. Version 3.23 (14-Oct-00) Functionality improvement The macro now uses an existing paper size definition if started from an empty document or the user selects to create the calendar at the end of the current document; thus our American friends can use Letter size paper. Version 3.24 (18-Nov-00) Bug fix Event Merging occurred only if large progress bars were selected. Small Progress Bar was reset every month. Also: The boxes for previous/next month were left at their default sizes; they are now specified. They also appeared, although only in WP9, in the middle of every second page if multiple months were run; under WP8 they were fine. Version 3.25 (December 2004) New feature Teresa Calley asked if she could have the macro modified so that a week would start on Sunday. This should of course be implemented as a user selectable option, but I don't use WordPerfect all that much any more and my macro skills have become a bit rusty. So I made a new version of the macro which starts a week on Sunday. Usage: I hope that the dialogues in MBCalndr.wcm are self-explanatory and I'll explain here only the optional "Merge Events into Calendar" procedure: This is a feature I always wanted and never got around to implement before: importing events. This is how you do it: In MS Outlook 2000: Menu: File/Import and Export... Export to a File Comma Separated Values (DOS) ("Windows" works, too) Calendar Save as: %Temp%\CALENDAR.DAT (%Temp% = your temp directory or whatever) Map Custom Fields... Clear Map (drag only "Start Date" and "Subject", in that order, into the "To:" pane) OK Finish (Select the period you're interested in; MBCalndr.wcm will ignore events outside its scope) OK In MBCalndr.wcm: Select the file saved above in the "Merge Events into Calendar" dialogue (The dialogue is pre-set to %Temp%\CALENDAR.DAT; if you saved it in a different place, use the dialogue's "Open File" selector box to select it.) Warning: A major drawback here is that MBCalndr.wcm expects the date format to be d/m/yyyy. If your system settings are different you can either re- write the macro to take account of that, or you can use the Control Panel/Regional Settings/Date to switch temporarily to the d/m order (MS Outlook will ignore your settings for the year and always export yyyy). If you don't have MS Outlook, you can probably get your calendar program to export its events into a Comma Separated Values (CSV) file as well. While CorelCentral 9 has such a feature, the resulting output is almost unusable and requires major editing. Alternatively, you can of course hand-create such a file yourself; the format is: "d/m/yyyy","event" with one extra first line which MBCalndr.wcm will disregard. It doesn't matter if the last event has a Carriage Return or not. Or you can just type your events into the finished calendar. Installation: Just put the file MBCalndr.wcm anywhere on your system, although it helps if you put it in WordPerfect's "Supplemental Macro Folder". You can also place a shortcut to it anywhere and execute it from there (if your system has .wcm files associated with PerfectScript). I noticed that on some occasions the macro's warning messages were obscured behind the WordPerfect screen, mainly when WordPerfect had only one document window open, but I couldn't reproduce it consistently. Files included: There are no template files with MBCalndr.wcm: it creates the calendar from scratch. The file MBCalndr.zip contains: MBCalndr.wcm The macro MBCalndr.txt This file CALENDAR.DAT Example data file (with some invalid lines, used for testing) 2001-04.wp9 Calendar for April 2001 produced with CALENDAR.DAT Enjoy! -- Michael Bednarek, Brisbane, Australia http://mbednarek.com/ mb@mbednarek.com "POST NO BILLS"