Adding a default signature to outlook email VBA

邮差的信 提交于 2019-12-02 12:23:21

So I figured out how to do this... There is no need to create the oApp variable as this is being called from inside a running Outlook instance.

I also needed to set the BodyFormat to olFormatHTML

Set oMail = CreateItem(0)
With oMail
    .BodyFormat = olFormatHTML
    .Display
End With
signature = oMail.HTMLBody
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!