Macro - New e-mail message from non-default account

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using Outlook 2007 and would like to program macros that will allow me
create a new e-mail message from an account different from the default
account. I have several POP3 accounts and it would be much easier if all I
had to do was click an icon on a custom toolbar to accomplish this.

I already know how to create the icon on my custom toolbar. I am aware of
the MailItem.SendUsingAccount property. I have not been able to find an
example of how to program VBA to create a new message and set the account to
use.

Any help is appreciated.
 
item.SendUsingAccount = oNS.Accounts.Item(1) ' or whatever account you want.

Don't use Set, this is setting an object property, not an object that you're
instantiating.
 
Back
Top