Flags and Do Not Autoarchive

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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:
 
Back
Top