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

前端 未结 1 652
失恋的感觉
失恋的感觉 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="<html><center><img src='.\logo-small.png'></center></html>"
     .Attachments.Add "C:\yourPath\logo-small.png"
    
    0 讨论(0)
提交回复
热议问题