Additional Examples

Just for fun, I have included a couple of other interesting examples of Outlook VBA. In fact, I simply took this code from my current VBProject file. Enjoy!

Makeshift List Server

This first example isn't really useful in the real world, however the provided code should demonstrate what you can do with messages as they arrive in your inbox. The code shown in Example 7.6 makes Outlook perform somewhat like a list server. Basically, Outlook will react to every message that this recipient receives. Mail that is received by this recipient is processed in one of three ways. If the incoming mail message's Subject field reads "subscribe," the email address of the message's sender is added to a special distribution list that is located ...

Get Exchange & Outlook®: Constructing Collaborative Solutions 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.