Copy Excel chart to Outlook mail message

后端 未结 1 1705
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 01:09

I have email addresses in column A, and a chart object in the same sheet.

For each email address, I want to create a new mail in Outlook and paste the Excel chart into

相关标签:
1条回答
  • 2021-01-25 01:58

    I think the problem with this line

    wEditor.Application.Selection.Paste
    

    is that nothing is selected, i.e. .Selection returns Nothing, as long as the message is not visible. To solve this, make it visible before pasting:

    m.Display
    

    That worked for me.

    Also, you should always declare all your variables using Dim, including wEditor:

    Dim wEditor As Word.Document
    
    0 讨论(0)
提交回复
热议问题