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
 
Back
Top