![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]() I have three email accounts in Outlook 2007: an Excchange (ost) and 2 personal (pst.) When I create a new mail message, I'd like to click on a button that then prompts me for the account, and then creates a blank message (from the selected account) for me to fill in. I've done a fair amount of VBA Excel programming, but none in Outlook. But I don't have the time to learn the Outlook object model for this personal project. Could someone provide me with the handful of lines necessary to accomplish this? Thanks!! Tom |
#2
|
|||
|
|||
![]() You don't want to get prompted automatically when creating a new message, right? Why don't you then just hit the dropdown button for selecting an account? That would be one click less. if you want to code it yourself anyway, see the Accounts collection of the Application.Session object. Display all the accounts in an appropriate control on an MSForm, and write the selection into the MailItem.SendUsingAccount property. If you're looking for a ready-to-use solution, see the link in my signature please. The SAM Add-in for Outlook can ask you for the sending account to use. -- Best regards Michael Bauer - MVP Outlook Category Manager - Manage and share your categories: SAM - The Sending Account Manager: http://www.vboffice.net/product.html?lang=en Am Mon, 5 Apr 2010 09:22:23 -0700 schrieb Tom: I have three email accounts in Outlook 2007: an Excchange (ost) and 2 personal (pst.) When I create a new mail message, I'd like to click on a button that then prompts me for the account, and then creates a blank message (from the selected account) for me to fill in. I've done a fair amount of VBA Excel programming, but none in Outlook. But I don't have the time to learn the Outlook object model for this personal project. Could someone provide me with the handful of lines necessary to accomplish this? Thanks!! Tom |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to prompt for email account to be used? | Robert Judge | Outlook - Installation | 1 | February 19th 09 03:39 PM |
Prompt email subject line when creating a new email outlook 2003 | macster | Outlook and VBA | 1 | January 5th 09 02:04 PM |
suppressing privacy options prompt and updates prompt after instal | Matt Emry | Outlook - Installation | 1 | April 17th 08 03:25 PM |
Multiple email account to send email from: chosen account is ignor | cheerful | Outlook - Installation | 1 | August 31st 07 07:59 PM |
email id Prompt | Chandramouly | Outlook - Using Contacts | 1 | August 31st 06 09:11 PM |