Restrict Method

  • Thread starter Thread starter Chris Koiak
  • Start date Start date
C

Chris Koiak

Is it possible to retreive a subset of the current selection of item (i.e.
explorer.Selection) that are of a particular type. I only wish to perform
any work on selected object of type Outlook.MailItem, but the only way I
seem to be able to do this is by accessing every item in the current
selection and checking its type.

Is it possible to restrict the selected items to items of type MailItem?

Thanks

Chris
 
You can't restrict a Selection collection, you can restrict an Items
collection. You can also check each item in a selection for MessageClass
(IPM.Note is the standard email form) and you can check each item for .Class
= olMail. You can also use MessageClass for a restriction but you can't use
Class there.
 
Back
Top