Look at the Namespace.Folders collection:
Set objNS = objOL.Session
Call ProcessFolder(objNS.Folders("Mailbox - Joe bloggs"))
mstrList = mstrList & vbCrLf
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
wrote in message ups.com...
Hi Sue,
Yesterday I was pulling my hair out with this problem. (You know how it
is sometimes when no matter what you try, nothing seems to work!) What
was really frustrating was not being able to find an example anywhere
after many, many hours searching the net.
Only if you have the time, is it possible you could post a copy that
includes the option of which mailbox to search? For example "Mailbox -
Joe bloggs\Inbox" etc
Thank you Sue for all your kind help, merry Christmas!
Warren.