Errors when using Inspectors

  • Thread starter Thread starter Yoav
  • Start date Start date
Y

Yoav

I am using the Application.Inspectors Object to get the Event "NewInspector"

With this Event I can add a Button to the Outlook Appointment-Form and
setting a Reference Object to the opened Appointment Form so I can get the
Information from this Form as Date/Time ...



It is working great, except one thing. Opening a Note (passing thru the same
NewInspector Event as well) causing an Error when closing Outlook

"Outlook cannot be closed, at least one parameter is invalid" after this
comes a new message that says "The Note will be closed without saving"

But there is no any open Note, why are the messages coming? What can I do
about it?



If I'm not using the Inspectors, the Problem not appears.


Thanks, Yoav
 
This really should be posted to one of the programming groups, such as
outlook.programming_forms or outlook.programming_vba.

Run as fast as you can from Note items (IPM.StickyNote). They are brain dead
and you never, never should ever handle their Inspectors except with oven
mitts.

In my NewInspector event handlers I always test for a Note item and just
exit the code if it is one. I never assign it to an Inspector object or add
it to my Inspectors wrapper collections.

Failure to do that will prevent Outlook from closing.
 
Back
Top