Where are you trying to get the CommandBars collection of the email, in
which event handler? It shouldn't be in NewInspector, it should be in the
first Inspector.Activate event handler.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"James Wang" wrote in message
...
All,
I have programmed addin for outlook 2003. The addin is used for encryption
and decryption of all mail message bodies. Commonly it does work well with
exception of using office word 2003 to edit email messages in tool
options.
I tried to debug and find the root cause. Finally I found the
inSpection-get_commandbars can not work well.
Meanwhile, I do the tests on lots of PC. There is no failures in one PC
though I use the word 2003 to edit email messages. But others have still
the
problem.
Please help me to resolve the problem.
Thanks and regards,
--
James