Flags and Do Not Autoarchive

G

Guest

In outlook 2007, is it possible to trap a flag being set on a mail message
using VBA and automatically set the do not autoarchive flag, then reset the
do not autoarchive when the flag is cleared or completed. I am a VB6
developer but haven't really done much with outlook and vba.
 
M

Michael Bauer [MVP - Outlook]

Yes, it's possible. You need to trap the NewInspector event and use your own
object (class module) for each opened MailItem object to get its events. For
each MailItem trap the PropertyChange event and look for changed Flag*
properties.

The autoarchive setting is available via the NoAging property.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)


Am Fri, 9 Feb 2007 17:21:00 -0800 schrieb vbtrek:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top