Programmatically assigning categories

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Guys,

Outlook 2003, VBA Code:
I'm programmatically assigning categories to email messages (e.g.
objMail.Categories = "My Category"). All very well, but when I have my
emails arranged by Category, the location of the email in the Explorer does
not always match up its Category. Is there a way to refresh the sort when a
category changes. This area of functionality seems a little "flakey".

Your help is greatly appreciated.

Rob Levy
--
Software Support Engineer
i2 Ltd.
.



Relevant Pages

  • Re: inserting attachments into mailmerge emails
    ... 'To create the email messages in ... Dim Source As Document, Maillist As Document, TempDoc As Document ... ' Check if Outlook is running. ... > formatting problems on my internal test run and the scope for further ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Outlook VBA brings up addin error
    ... It's not customary to refer to VBA code as a script. ... If you are in fact running Outlook VBA code, ... > Dim myOlApp As Outlook.Application ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: "Run a script" rule triggers but script does not execute
    ... Sue Mosher, Outlook MVP ... Does other VBA code run? ... Set olNS = Application.GetNamespace ... Set olMail = Nothing ...
    (microsoft.public.outlook.program_vba)
  • Re: How did a NOTE get in my Inbox?
    ... >> Resolve the problem by declaring your object as Object not MailItem. ... Sue Mosher, Outlook MVP ... > have recently run into a situation that causes my VBA code to fail. ... > message to a TXT file, and then deletes the mail item from the Inbox. ...
    (microsoft.public.outlook.program_vba)
  • Re: How did a NOTE get in my Inbox?
    ... Sue Mosher, Outlook MVP ... >> have recently run into a situation that causes my VBA code to fail. ... >> message to a TXT file, and then deletes the mail item from the Inbox. ...
    (microsoft.public.outlook.program_vba)