Link to home
Start Free TrialLog in
Avatar of highcontrast
highcontrastFlag for United States of America

asked on

Outlook Macro Loses First Message Category

Outlook 2007 categories are behaving very strangely. In particular, the first category of a set message is getting removed. Why is this happening?

To reproduce do the following:

Create a new email message (put yourself as the recipient)
Run the attached macro on it.
Save the message.
Look in Drafts to see that the message has all three categories.
Send the message.
Look in both sent items and inbox to verify that the c\Veracode category has been removed.
Sub Test()
    Dim msg As Outlook.MailItem
    Debug.Print "In Test"
    Set msg = Application.ActiveInspector.CurrentItem
    msg.Categories = "c\Veracode,c\SiCortex,c\8Ring"
    Set msg = Nothing
End Sub

Open in new window

Avatar of highcontrast
highcontrast
Flag of United States of America image

ASKER

The cause of the problem was an add-in.
See http://simeons.wordpress.com/2008/01/19/mini-app-software-quality/
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial