Outlook 2010 Default Signature

rwheeler23
rwheeler23 used Ask the Experts™
on
I just upgraded to Outlook 2010 64 bit and was immediately dismayed by having trouble settng up default accounts with which to create and reply to messages. I did find some macros that I have added. The problem now is the signatures. Even though it has the right account the signatures it is using are wrong. If I choose account A I want the signature associated with account A and so on and so on. What it is doing is giving me the signature that is associated with the pst file. I have included the code I used for accounts. Is there a way to add to it the ability to grab the correct signature?
Public Sub New_Mail()
Dim oAccount As Outlook.Account
Dim oMail As Outlook.MailItem
For Each oAccount In Application.Session.Accounts
If oAccount = "myemail@myemailserver.com" Then
Set oMail = Application.CreateItem(olMailItem)
oMail.SendUsingAccount = oAccount
oMail.Display
End If
Next
End Sub

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010
Commented:
Hi, rwheeler23.

When you create a message via a macro it always starts off using the default account which of course applies that account's signature.  Switching to another account in code does not switch the signature.  In fact there aren't any objects or commands in Outlook's programming model for applying or manipulating signatures.  If you normally send in HTML format, then you can read a signature file from disk and insert it's contents at the end of a new message.  However, this won't be a true signature.  By "true" I mean that Outlook will not treat it as a signature.  It will treat it as part of the message body.
rwheeler23President

Author

Commented:
I only have two accounts and one is the most dominant. I simply changed both accunts to use the same signature.The way this works in Outlook 2010 seems to be a step backwards. Do you see any advantage to using 64 bit Office over 32 bit office? I have a few add-ons that work only with 32 bit and I am thinking of downgrading back to 32 bit.
Top Expert 2010

Commented:
That is the simplest solution.

No, I don't see any benefit.  In fact on my 64-bit computer I use 32-bit Office.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial