How to set Other Mail Account

V

Vadhimoo

Hi All,

When I read new mail from my INBOX, I use the below code:

Set InputFolder =
Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
If InputFolder.Items(intCount).UnRead = True Then

I want to read INBOX mails from my other Mail Accounts like
"MailBox-RateCountry" & "MailBox-Finance Accounts" . In this case how can i
set InputFolder like above code....

Thanks in advance for your reply.
 
S

Sue Mosher [MVP-Outlook]

Take a look at the Namespace.GetSharedDefaultFolder method.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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