Items Item Type(Mail,Calendar,Etc)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I may be going about this the wrong way but...

How do I determine what type of Outlook item I have in a general items
collection? I need to process only mailitems as processing other types
throws an error.

Thanks!
Ed
 
Nevermind... found it finally:
If TypeName(Item) = "MailItem"

Thanks!
Ed
 
Or, better yet, use the Class property (exposed by all Outlook objects).

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