Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Display (not set) default mail account (http://www.outlookbanter.com/outlook-vba/16380-display-not-set-default-mail.html)

Mark Tangard May 31st 06 09:30 AM

Display (not set) default mail account
 
After much Googling I've learned you can't change the default email account
using VBA. Is there, however, a way to make VBA *display* the name of the
default email account -- in a MsgBox, on a status bar, a button caption, etc?

Grateful for any clues.

------------
Mark Tangard


Dmitry Streblechenko May 31st 06 07:55 PM

Display (not set) default mail account
 
In Extended MAPI (C++/Delphi) - use IOlkAccountManager (see
http://msdn.microsoft.com/library/de...asp?frame=true)

plugIf you are using VBA, you migth want to look at the
RDOSession.Accounts collection in Redemption - see
http://www.dimastr.com/redemption/rdo/ /plug

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Mark Tangard" wrote in message
...
After much Googling I've learned you can't change the default email
account using VBA. Is there, however, a way to make VBA *display* the
name of the default email account -- in a MsgBox, on a status bar, a
button caption, etc?

Grateful for any clues.

------------
Mark Tangard




Mark Tangard June 4th 06 09:48 AM

Display (not set) default mail account
 
Thanks, Dmitry. This look like it'll actually lead somewhere.

MT

Dmitry Streblechenko wrote:
In Extended MAPI (C++/Delphi) - use IOlkAccountManager (see
http://msdn.microsoft.com/library/de...asp?frame=true)

plugIf you are using VBA, you migth want to look at the
RDOSession.Accounts collection in Redemption - see
http://www.dimastr.com/redemption/rdo/ /plug

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Mark Tangard" wrote in message
...

After much Googling I've learned you can't change the default email
account using VBA. Is there, however, a way to make VBA *display* the
name of the default email account -- in a MsgBox, on a status bar, a
button caption, etc?

Grateful for any clues.

------------
Mark Tangard







All times are GMT +1. The time now is 08:56 PM.

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