Looking for VBA to open multiple mail folders

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?
 
M

Michael Bauer [MVP - Outlook]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top