lundi 11 mai 2015

Create Outlook message with Signture in Visual Basic

With the code below I can open an open message in outlook and add a subject line and some text in the body.

The problem I have it doesn't keep or use the users signature.

Any thoughts on how to keep or use the signature?

        Dim Outlook As Object
        Outlook = CreateObject("Outlook.Application")

        If Outlook IsNot Nothing Then
            Dim omsg As Object
            omsg = Outlook.CreateItem(0)
            omsg.subject = "Your Case Reference is" &
            omsg.body = "Hi" & vbNewLine & vbNewLine & _

            omsg.Display(False) 
        End If

Aucun commentaire:

Enregistrer un commentaire