VBA to paste into email not working - need help please!!!

Michael0107

New Member
Joined
Feb 3, 2016
Messages
15
I am building a Macro to create and send emails with a range that changes for each email address. The body creation and addressing work fine, however, when I use SENDKEYS to paste from the clipboard, the command is ignored. I know that the image is on the clipboard as I can manually paste it into the body, just can't get the macro to complete that step. Here is my code, any assistance is greatly appreciated.

For Each Email In T271
Range("Chart" & x).Select
Selection.copy
If Email.Value Like "?*@?*.?*" Then
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = Email.Value
.CC = "jamil_bechara@uhc.com" & ";" & "jonathan_h_allerheiligen@uhc.com"
.Subject = "Weekly Productivity Report"
.Body = "Here is your most recent Productivity Report. " _
& "Any questions please see your supervisor." & vbNewLine
.Display
'SendKeys "^V", True
'.Send
End With
On Error GoTo 0
Set OutMail = Nothing
End If
x = x + 1
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,875
Messages
6,122,046
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top