Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to create variables or use any basic programming logic in an Outlook mail template? An example scenario would be creating a template for a daily report and having today's date automatically filled in (properly formatted) by a date-time variable. Keep in mind that this example scenario is just that, an example, because the type of programming I wish to do is a lot more involved than simply pulling today's date.

So, does Outlook support any programming languages (VBA?) for building mail templates?

share|improve this question
up vote 2 down vote accepted

Outlook does allow VBA macros to be defined and run.

To allow VBA editing and other developer tools, follow these steps according to your version of Outlook:

To show the Developer tab for Outlook 2007

  • Start Outlook.
  • On the menu bar, choose Tools, Options.
  • In the Options dialog box, choose the Other tab, and then choose Advanced Options.
  • In the Advanced Options dialog box, select the Show Developer tab in the Ribbon check box, and then choose the OK button.
  • Choose the OK button to close the Options dialog box.

To show the Developer tab for Word 2010, Excel 2010, Outlook 2010, and PowerPoint 2010

  • Start the Office application (Word 2010, Excel 2010, Outlook 2010, or PowerPoint 2010).

  • Choose the File tab, and then choose Options.

  • In the categories pane, choose Customize Ribbon.

  • In the list of main tabs, choose Developer.

  • Choose the OK button to close the Options dialog box.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.