Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   How to set Other Mail Account (http://www.outlookbanter.com/outlook-vba/33828-how-set-other-mail-account.html)

Vadhimoo November 26th 06 06:27 PM

How to set Other Mail Account
 
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.


Sue Mosher [MVP-Outlook] November 27th 06 12:04 AM

How to set Other Mail Account
 
Take a look at the Namespace.GetSharedDefaultFolder method.

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

"Vadhimoo" wrote in message ...
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.



All times are GMT +1. The time now is 09:26 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com