0

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
Kenster
  • 3
  • 3

1 Answers1

0

Call Display first - that is when the signature is added to the body.

You will the need to merge the HTMLBody property with the signature with your own text. Keep in mind that you cannot simply concatenate 2 HTML strings.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
  • Thanks Dmitry, i added: omsg.display() Above omsg.body = "Hi" & vbNewLine & vbNewLine & _ Worked a treat, thanks again. – Kenster May 15 '15 at 19:53