
Search all folders for mail item
You would have to use the Folders collection and search in that until
there were no more to search in.
Each MAPIFolder in the Folders collection has its own Folders
collection for subfolders. If there are no subfolders then that
Folders collection would have a .Count property equal to 0. If .Count
Quote:
> 0 then you can get the count of subfolders and search in them. Of
course each subfolder can have its own subfolders so you'd have to
search those collections also.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
Quote:
> How would I search through all the folders for a message when the
folders
> could be several layers deep?
> Thanks,
> Pete