How to embed image placed inside the excel into the .htmlbody of vbascript

前端 未结 1 657
失恋的感觉
失恋的感觉 2020-12-22 04:36

This is my code of the .htmlbody

    .htmlBody=\"
1条回答
  •  天命终不由人
    2020-12-22 05:10

    Use the attachment property of the email to attach the picture to the email.

    Then reference the picture in your email with a preceding .\ like so:

     .htmlBody="
    " .Attachments.Add "C:\yourPath\logo-small.png"

    0 讨论(0)
提交回复
热议问题