newinspector is mailitem?

  • Thread starter Thread starter Peter Ramsebner
  • Start date Start date
P

Peter Ramsebner

Hi all,

how can i determine the type of in inspector object?
In a NewInspector eventhandler i only need MailItems.

Thanks for help

Peter
 
Hi Peter,

e.g.:
if typeof inspector.currentitem is outlook.mailitem then
...
endif

or:
if inspector.currentitem.class=olMail then
...
endif
 
Inspector.CurrentItem.Class. It will be 43 for the mail items.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top