简体   繁体   中英

How to paste Excel data into Outlook as an image using VBA?

I have an Excel sheet with data in a1:q38 that I need to paste into the BODY of an outlook email. Any idea how to do this while not saving the image as a jpg or png?

The Outlook object model provides three main ways for working with item bodies:

  1. Body .
  2. HTMLBody .
  3. The Word editor. The WordEditor property of the Inspector class returns an instance of the Word Document which represents the message body. So, you can use the Word object model do whatever you need with the message body .

For example, you can use the Copy method of the Range class from the Excel object model and then use the Paste method of the Range class from the Word object model to paste the copied data in Excel.

See Chapter 17: Working with Item Bodies for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM