Examples of Shortcuts

At their simplest, macros are recorded sets of keystrokes and mouse-clicks which you typically perform, such as entering the current date, typing some frequently-used text or saving a file to a specific folder.  More powerful than AutoText, macros can present situation-specific options to the user and carry out different instructions depending on the user's selections.

Basic Macros

A basic macro can:

Advanced Macros

A more advanced macro can present a dialog box of text and other options to the user.  (This requires knowledge of Visual Basic.) When the dialog box is completed, the macro assembles the document per the selections made by the user.  For example, macros can:

Example: Delivery Instructions

This dialog box displays the ways in which a particular business sends its letters.  The use of checkboxes for the options indicates that all, some or none of them can be selected.  When the user clicks OK, the macro inserts the selected items with the proper formatting, punctuation and the insertion of "and" if needed.  

With macro access to a database, the fax number or e-mail address of the recipient can be entered into the instructions automatically.

Delivery Instructions

Example: Letter Signature

The dialog box below shows three kinds of data entry items for a letter signature block.  The radio (round) buttons indicate that only one signer can be selected.  The checkboxes indicate options to be included; multiple can be selected.  The text box at the top is for the user's initials; the initials are remembered for the next signature(s) until they are changed.

Letter Signature

The signer list can come from a list in the macro or from a database.  With additional text boxes, frequent, but not permanent, signers can be entered on the fly.  Each time the dialog box is displayed, the selections can be left blank, defaulted or populated from the previous running of the macro.

In the case of the CCs and BCs, without integration with a database, the macro can insert placeholders after "cc:" with prompts indicating who is needed to be copied, i.e., *Opposing Counsel*.  The user presses a key combination to jump from one placeholder to another.

Integration with a database enables the macro to reach into the data to find the opposing counsel name(s) and insert them automatically after the "cc:".

Example: Multiple Text Choices, Document-Specific

In this example, a unique dialog box for the "Letter to the Clerk of the Court" template displays potential items to be sent.  For each item checked, the corresponding text can be inserted with paragraph numbers, bullets or in paragraph format.

Letter to the Clerk

Example: Save a File

In this dialog box, information that has been previously entered by the user or the macro itself can be used again.  The case number has been repeated from the last macro that used a case number.  The type of document has been set via the template that was used and is not included in the dialog box.  With these two pieces of information, the macro figures out which subfolder of the client/case folder is the destination for this particular document.

Save a Letter dialog box

Today's date was automatically entered and parsed into month, day and year for ease of editing.  The user usually just enters the recipient and the subject.

Regardless of the order in which the data is displayed, filenames can be formed in the order that works best for the client.  In this example, when this dialog box is completed, the letter will be saved in the Correspondence folder under case number 6543 with the name Anderson, Joy 2022-10-19 Welcome.docx.

Macros and Templates Integrated with a Database

Here's one way an integrated system of macros, templates and a database can work.  A law office example might behave as follows.

The user selects a pleading template.  The macro displays a dialog box for the user to select the case.  

Select a Case

Click the dropdown arrow at the right end of the text box to display the cases available.

Select a Case

From that information, the macro can: