Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Outlook Macro Loses First Message Category

Avatar of highcontrast
highcontrastFlag for United States of America asked on
2 Comments1 Solution1252 ViewsLast Modified:
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
Avatar of EE_AutoDeleter

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers