Looking for VBA to open multiple mail folders

  • Thread starter Thread starter Ivan
  • Start date Start date
I

Ivan

I use several mail folders, including “Personal Foldersâ€, “imapmailAâ€,
“imapmailBâ€, etc. When I start Outook (2003), Personal Folders is open, but
the others are closed. What I would like to do is open the “imapmailBâ€
folder in addition to Personal Folders so that I can see if new mail has
arrived in each folder.

I am an Excel VBA programmer, but unfamiliar with the Outlook object model,
and unsure if I need to be working with the NameSpace object or the
MapiFolder object (or perhaps another object altogether). Any suggestions?
 
See this example, which opens every folder:
http://www.vboffice.net/sample.html?pub=6&lang=en&mnu=2&smp=57&cmd=showitem

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Sat, 17 Jan 2009 05:07:01 -0800 schrieb Ivan:
I use several mail folders, including “Personal Foldersâ€, “imapmailAâ€,
“imapmailBâ€, etc. When I start Outook (2003), Personal Folders is open, but
the others are closed. What I would like to do is open the “imapmailBâ€
folder in addition to Personal Folders so that I can see if new mail has
arrived in each folder.

I am an Excel VBA programmer, but unfamiliar with the Outlook object model,
and unsure if I need to be working with the NameSpace object or the
MapiFolder object (or perhaps another object altogether). Any
suggestions?
 
Back
Top