Using Macros

Macros are most useful for tasks that must be performed repeatedly without change. Even so, because a macro contains Visual Basic code, it can be flexible and can respond to variables or user input. With the power of scripting, a macro can accomplish a task in the most efficient way in response to specific conditions.

Caution!

Macros can be extremely powerful. This power can be a great asset for you, but it can also mean that any problems can become serious ones. Like many other things, macros can be dangerous when used improperly. Inexperienced programmers should take great care when writing and using macros in Outlook 2007.

Following are the three basic programming elements you can work with in an Outlook 2007 macro:

  • Object. An object ...

Get Microsoft® Office Outlook® 2007 Inside Out now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.