NewInspector Event

  • Thread starter Thread starter Al Berg
  • Start date Start date
A

Al Berg

I've implemented the NewInspector event in an add-in I'm building. It has
the a single parameter which is the inspector that has just been created by
outlook. I need to be able to tell which inspector is being created so I can
be selective in adding a button to the inspectors toolbar. For this purpose
I thought I would use the Inspector.Class property. The problem is that this
value always returns 35 (olInspector). I was hoping for something more
specific than that like olMeetingRequest (which is the inspectior I'm
interested in).

Anyway, I need to be able to target my tool bar changes to a specific
inspector can someone offer me the "how to" on this?

Thanks
AB
 
Hi Al

The Inspector itself will always be of type olInspector. What you're really
looking for is the class of the item that the Inspector window is handling.
Use the Inspector's CurrentItem property to get a reference to the item.

So, if objInspector is the Inspector object in your event code, you can use
the expression below to return the info you need:
objInspector.CurrentItem.Class

Hope this helps,
Alain

You can get
 
Back
Top