Are these known limitations.bugs of the Outlook AutoFormatRules object model?

53 Views Asked by At

This is a sequel to Why does Outlook VBA AutoFormatRules.Add not add an AutoFormatRule?.

Autoformat rules in Outlook can't be exported/imported/otherwise transferred to a different Outlook profile. I'm trying to work around that limitation by programmatically reading the rules, writing them to XML, and reading the XML in a different Outlook profile.

I'm hitting two limitations, and I wonder if these are known/by design. If so, I can give up on this project altogether.

  1. I'm working with autoformat rules that apply a color to appointments based on words in their subject line. When I create an AutoFormatRule programmatically, I only have access to the Font object of the rule. Nothing related to appointment color seems to be available in the AutoFormatRules object model. Is that right?

  2. When I recreate the AutoFormatRule through VBA, and set the Filter property to the saved filter from the XML, the rule shows up in the UI, but the filter doesn't. I'm taking the filter exactly as I read it from the existing rule, escaping quotes as needed.

So are both of these known limitations, did Microsoft not bother to implement?

1

There are 1 best solutions below

2
On

If by "appointment color" you mean the appointment category, you can access it through AppointmentItem.Categories.