A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Prompt for email account



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 5th 10, 05:22 PM posted to microsoft.public.outlook.program_vba
Tom
external usenet poster
 
Posts: 181
Default Prompt for email account


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  
Old April 6th 10, 08:11 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Prompt for email account



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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 11:04 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-2025 Outlook Banter.
The comments are property of their posters.