Hi Gilles,
"Gilles" <Gilles@discussions.microsoft.com> wrote in message
news:3338C2F4-553B-4028-B65F-06F713693BFE@microsoft.com...
> Thx for your message SvenC. I find on Internet a message from you
> explaining
> how you create your own autoformatting rules. But when I try your code
> with
> my filter, it don't work. I can't see the filter in the GUI of Outlook
> 2007
> even so I rebuilt my rules every times I launch Outlook (in the
> ThisAddIn_Startup event method). Is there something to do with Session ?
> Anything else i missed ?
Strange. From your initial post it seemed to be exactly as my problem: the
formatting rules like font type/size/style are saved but the filter is not
persisted. So applying the autoformat rule once for the current view does
correctly work but as soon as I switch to another folder which uses the same
view the filter is applied again but as no filter was persisted every item
fits the rule and is formatted according to that rule.
Did you check if your rule does work in the current view of the current
folder?
Otherwise, please show your exact code.
--
SvenC