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
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