G
Guest
Hi Team,
When one of my users clicks a button on my Outlook toolbar, I want to
perform an action with all the emails that are in the same category as the
currently selected email.
I am currently doing this using this psuedocode:
for each Item in objCurrentFolder.FolderItems
If item has the correct category
Add the item to a collection
End if
next Item
This strikes me as fairly clumsy though. If there are any large number of
items in the folder, it takes a long time just to check the type of each item
and see if they belong in my collection or not.
Can anyone think of any better way of doing this?
Much appreciated,
Rob
When one of my users clicks a button on my Outlook toolbar, I want to
perform an action with all the emails that are in the same category as the
currently selected email.
I am currently doing this using this psuedocode:
for each Item in objCurrentFolder.FolderItems
If item has the correct category
Add the item to a collection
End if
next Item
This strikes me as fairly clumsy though. If there are any large number of
items in the folder, it takes a long time just to check the type of each item
and see if they belong in my collection or not.
Can anyone think of any better way of doing this?
Much appreciated,
Rob