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

C

Chris Malley

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

Ken Slovak - [MVP - Outlook]

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.
 

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