Switch template with account

Status
Not open for further replies.

Bart

New Member
Outlook version
Outlook 2010 32 bit
Email Account
IMAP
Hi all, I'm new on this forum, hope to find answer to the following:

I know that I can set a default signature for each account I'm using. Even different for new mail and replies/forwards.

A signature is always at the bottom of each mail right? It's like there's a section built in, in which the sig is placed. When I'm creating a new email message, switching the From field, even changes the signature (well, not always, don't know why).

So what if I want to use an entirely different layout if I switch the account I'm sending this new mail from, or reply to.

I program quite a lot in Excel and Access VBA, but I'm not familiar with the Outlook object model.
Is there some sort of ChangeSenderAccount event that triggers when I click the From button?
Then, is there a way to manipulate the layout (like top logo, background color, font, signature), in VBA?

Any help, or pointers would be greatly appreciated.

Thanks for your time
Bart
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Changing that address triggers the PropertyChange event twice, once for SendUsingAccount, once for SentOnBehalfOfName.

As to the layout, good luck. Look at the messages's HTMLBody property.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
You can set the sender account using vba - it needs to be called before you open the new message tho.

You also can use a macro to set the signature as it opens - look for _MailAutoSig bookmark, delete it then pass the signature to HTMLBody.
 

Bart

New Member
Outlook version
Outlook 2010 32 bit
Email Account
IMAP
Thank you both, I'll give it a try!
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
O How to recover rules after switch from POP3 to IMAP Using Outlook 2
E Accessing shared outlook folder doesn't work since switch to new outlook/excel Outlook VBA and Custom Forms 11
D Outlook 2016: /altvba startup switch does not work Using Outlook 2
J VBA to switch Outlook online/offline Outlook VBA and Custom Forms 4
George Simpson "Switch to HTML" in Outlook 2016 notes field Using Outlook 1
P How to switch back from Outlook 2010 to Outlook 2007? Using Outlook 3
B Outlook 2010: using /altvba switch Using Outlook 1
T How to determine when I switch from mail to calendar etc. Using Outlook 9
E Should I switch to IMAP? Using Outlook 0
wisedave Switch from POP3 over to IMAP Using Outlook 3
K Can Outlook be launched with the /cleanreminders switch multiple times? Using Outlook 2
W How to switch my list view back to normal view Using Outlook 1
H The default e-mail account keeps switching to another account. I have to manually switch it back everytime I open Outlook. Using Outlook 2
B Outlook 2007 is very slow to switch between mail, contacts, and calendar. Using Outlook 2
M It takes a long time to switch between mailbox, tasks, contacts. Using Outlook 4
L Outlook 2007 slow to switch view from one folder to another Using Outlook 8
J Outlook 2010 Microsoft exchange server to pop account type switch? Using Outlook 2
B Re: Export/Import/Switch from WLM to Outlook Using Outlook 1
T Auto Switch Back? Using Outlook 3
J How to switch users using Outlook 2003 Using Outlook 5
J How to switch between two email addresses when sending emails? Using Outlook 3
P Re: Outlook 2007 hang / stop responding when switch language from English to Thai Using Outlook 2
E Should I switch to redemption Outlook VBA and Custom Forms 11
E Should I switch to redemption Outlook VBA and Custom Forms 11
M Switch Mail format Outlook VBA and Custom Forms 6
U Using /a switch to send multiple files? Outlook VBA and Custom Forms 1
J Automatically forward email and apply template Outlook VBA and Custom Forms 0
D Reply with a template loose the sender's embedded image Outlook VBA and Custom Forms 0
J Add an Attachment Using an Array and Match first 17 Letters to Matching Template .oft to Send eMail Outlook VBA and Custom Forms 2
K Outlook template Using Outlook 1
Randy Redekopp How To Merge Contact Info to Email Custom Form Template Using Outlook 2
M Reply Inline With a Outlook Template Outlook VBA and Custom Forms 6
J Add Fillable Fields to Existing Template Outlook VBA and Custom Forms 1
D Macro sending outlook template from Excel list Outlook VBA and Custom Forms 6
D send email from Excel using outlook template Outlook VBA and Custom Forms 3
Diane Poremsky Using the Outlook Calendar Template New Slipstick.com Articles 0
LarryS change day template as cpao does not see .catx files Outlook VBA and Custom Forms 4
A VBA to create meeting from template from a time slot selected in someone's calendar Outlook VBA and Custom Forms 5
Q Editing an outlook. Template file (Otk) Using Outlook 1
A How can I load a HTML template into the WordEditor? Outlook VBA and Custom Forms 3
JorgeDario Template oft that contains VBScript Is not running Using Outlook 1
P Calendar template Using Outlook 2
M Update field codes when opening Outlook Template Outlook VBA and Custom Forms 2
J Outlook template with environ varaibles Outlook VBA and Custom Forms 0
N Creating or changing the main new mail message template in Outlook 2010 Using Outlook 2
M Calendar Printing Assistant Hangs only on specific Template Using Outlook 2
G Message template / custom forms and VBA Help needed - inserting info into table Outlook VBA and Custom Forms 3
T My Outlook Calendar Template Using Outlook 1
S Ask user to input email template through VBA Outlook VBA and Custom Forms 1
J VBS Script (macro) for word to open Outlook template. Outlook VBA and Custom Forms 2

Similar threads

Top