Well, when Outlook is started your addin is being started. It's hard to say
what object hasn't been instantiated in that case, perhaps you have some
code that refers to ActiveExplorer?
That wouldn't be a valid object in this case since when Outlook is started
in "headless" mode it has no Explorers (Explorers.Count == 0).
In "headless" mode there is at least one Inspector, but no Explorers.
--
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
"Dan" wrote in message
...
Hello Experts,
I have developed an Outlook Add-in that man can save mails as .MSG-File in
local disk. But when I just open up the saved mail(MSG) and Outlook is not
opened, there appeared always an error "the Object variable or With block
variable is not set." When I disable this Add-in in Outlook, there is no
such
error.
What ist that error maybe?
best regards,
Dan