newinspector is mailitem?

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
 
M

Michael Bauer

Hi Peter,

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

or:
if inspector.currentitem.class=olMail then
...
endif
 
Top