Shared Email Templates
The complete list of macros for your templates
In this article
The Shared Email Templates macros will help you avoid repetitive actions in your routine Outlook correspondence. For example, instead of repeatedly entering the same email address in the Cc or Bcc field, adding the same text to the subject line, or attaching the same file, you can insert a macro into a template and let it do all the work for you.
| Your purpose | Macros you need |
|---|---|
| To change fields and body of email messages, appointments, and meetings | Add Adds the specified text to the specified field. Fill Fills the specified field with the specified text. Insert Inserts the contents of the specified field into the macro position in the body of an email message, an appointment, or a meeting. |
| To attach files and insert pictures | Attach Attaches the specified file(s) to the current email message, appointment, or meeting. InsertPicture Inserts the specified picture into the macro position in the body of an email message, an appointment, or a meeting. |
| To return values from datasets | Insert Inserts the text of the specified dataset column by the specified key value. |
| To create custom input fields | WhatToEnter Adds custom input fields to your templates. WhatToAttach Asks the user to attach a local file when the user is inserting the current template. |
| To use regular expressions | RegexMatch Inserts the specified text if the specified field contains a string that matches the specified regular expression. RegexExtract Extracts text from the specified field by the specified regular expression. |
| To add merge fields | MergeField Inserts the contents of the specified column of the mail merge distribution list. |
| Miscellaneous | DisableIf Stops the current template from being inserted if the specified field contains the specified text. Note Adds comments to your templates. Clear Clears the specified field of the current email message, appointment, or meeting before the current template is inserted. |