View Single Post
 
Old 10-18-2014, 09:42 PM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

I am not sure about the graphic. Have you tried creating the signature as a signature and apply that signature to the account you want to use? The following macro version will use the named account (shown here as "account name"

Code:
Sub PersonalMessage()
Dim oItem As Outlook.MailItem
Dim oAccount As Outlook.Account
Const strAcc As String = "account name"
Const strFolder As String = "D:\Word 2010 Templates\"
Const strFilename As String = "Example.oft"
    For Each oAccount In Application.Session.Accounts
        If oAccount.DisplayName = strAcc Then
            Set oItem = Application.CreateItemFromTemplate(strFolder & strFilename)
            oItem.BodyFormat = olFormatHTML
            oItem.SendUsingAccount = oAccount
            oItem.Display
        End If
    Next oAccount
    Set oItem = Nothing
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote