Home
Productivity automation, WordPerfect macros, Word macros, digital media and text convergence. Contact
FAQ
About Gordon McComb Automation
Document automation consulting Document automation training Word processing Digital media and text convergence Visual Basic, C#, XML, and .NET Free tools Automation resources

Free Macro and Document Automation Tools


Here your'll find free tools for document automation. Many are useful as learning examples of how to write macros for custom automation solutions.

All files are provided on as as-is basis with no warranty. No support is given or implied. Please refer to the macro file/description for any version requirements, and special instructions.


WordPerfect Macros

Right-click on the macro file to save it to your PC.

Important! The macros have been compiled for WordPerfect X3. If you're using another version WordPerfect will force recompilation. Be sure to save the file in a folder where you have write-access.

 
Count Lines - cntline.wcm
Counts lines in a document, letting you specify the minimum and maximum number of characters that is construed as a line. This macro is useful for transcribers and others who need to define a line in terms of minimum/maximum length.


Collaboration Formatting - collab.wcm
Mark and unmark text for collaborative writing/editing (redline, comment, etc.). This macro is primarily intended as an example of how to control text formatting via automation.


Date-to-Text - date.wcm
Exchanges [Date] codes (which change as the date changes) with date text throughout tje document. Use this macro when you want to permanently "stamp down" the date code with today's date.


Format Dollar Amount - fmtdoll.wcm
Converts numeric input into a formatted dollar string. For example, enter 1002.12 and you get $1,002.12. This macro is useful as an example of manipulating text strings.


Journal Writer - journal.wcm
Write and store a daily journal or dairy notes.
  • To set an entry, pick a date in the calendar control, and click Show Appointment.
  • Click Set to store the entry.
  • Click Delete to delete the entry.
  • Click Close to close the entry (in Entry mode), or close the dialog box.

Demonstrates the use of simple databases, using the calendar dialog box control, and dialog box callbacks.


Make-a-Box - makebox.wcm
Shortcut for creating a basic graphic box of a specified size. The graphic boxes are set with a character anchor, so they move with text. You can specify the width and height (in inches) of the box.


Separating File/Path from Full Filename - pathfile.wcm
Shows how to use string manipulation to return the filename only of a path+filename string. Also shows how to return just the path of a path+filename string.


Save All Files - saveall.wcm
Your basic "save all open documents," but also demonstrates processing the command using a MessageBox Yes/No prompt.


Daily Calender Maker - sked.wcm
Creates a personal daily schedule.
  • Specify a name for the schedule (you can change the macro to default to your or your boss's name, and not a Disney character).
  • Specify the date.

The macro creates a one-page schedule, with half-hourly appointments on the left side, and three "thumbnail" calendars on the right. The calendars show the current month (with the current day highlight), as well as next and previous months.


Strip HTML Tags - striphtm.wcm
Strips HTML tags from a document. The macro deletes the tags -- like <i> and <font> -- but does not take out the non-markup text in-between. example:

This is <i>some</i> HTML.

is stripped to give:

This is some HTML.


Show System Codes - syscode.wcm
Displays important system variables.


While-You-Were-Out Notepad - whileout.wcm
Allows you to create and store "while you were out" notes. The macro also demonstrates getting time/date from system variables, and the use of multi-line edit boxes.

The notes are stored in text format, in a file named whileout.txt. The macro places the file in your document paths directory (see Tools->Settings, Files).


Set X Days Forward/Back - xdays.wcm
Add X days to the current day, and display the date in the desired format. Use a positive number to get a day in the future; use a negative number to get a date in the paste. Select Skip weekends to not count weekend days. (Sorry, the macro doesn't compensate for legal holidays.)


Set X Months Forward/Back - xmonths.wcm
Like xdays.wcm, above, but displays the date for a given month in the future or past.

Copyright (c) 1996-2007, Gordon McComb. All Rights Reserved.