Use the default signature from outlook

Does anyone know how to add the signature from outlook to this code?  I have a default signature that I use for outlook.  In addition, my recipients for this code is a group contact, so I want to make sure that the code that I have is not a problem.  

Imports Excel = Microsoft.Office.Interop.Excel
Imports Olook = Microsoft.Office.Interop.Outlook

Public Class Form1
    Dim xlApp As New Excel.Application
    Dim xlWorkBook As Excel.Workbook
    Dim xlWorkSheet As Excel.Worksheet
    Dim xlRange As Excel.Range
    
    Private Sub btnSendEmail_Click(sender As Object, e As EventArgs) Handles btnSendBeginningEmail.Click
        Dim Outlook As New Microsoft.Office.Interop.Outlook.Application
        Dim MailItem As Microsoft.Office.Interop.Outlook.MailItem
        Dim signature As String
        MailItem = Outlook.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)
        signature = MailItem.Body
        With MailItem
            .Body = signature
            .Subject = "Beginning ISIR Downloads"
            .Recipients.Add("ISIR Downloads")
            .Display() 'opens the email for checking prior to sending or use .Send()
        End With
    End Sub
End Class

Open in new window

cmedTechnical AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
There's a hack where you can go through Word to set the Default Signature (assuming you're using Word as the "Email Editor", of course).

Set objWord = CreateObject("Word.Application")
objWord.Visible = True

Set objEmailOptions = objWord.EmailOptions
Set objSignatureObject = _ 
    objEmailOptions.EmailSignature

objSignatureObject.NewMessageSignature = _ 
    "Scripted Entry"
objSignatureObject.ReplyMessageSignature = _ 
    "Scripted Entry"

Open in new window


From here: https://technet.microsoft.com/en-us/magazine/2006.10.heyscriptingguy.aspx

You can also use 3rd party utils to do it. I use vbMAPI to manage these things (http://www.everythingaccess.com/vbMAPI.asp). It works in .NET as well as VBA, so don't be put off by the name or website. Very easy to deploy and use.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cmedTechnical AnalystAuthor Commented:
This helps thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.