Hey everyone, I put the below together and am having a problem. First I am new with macros, and am learning more every day, so maybe it is a simple fix....
The below will copy a cell range, and paste into an email that is sent to select recipients.
When I change the ending to .display , the image shows up. When it is set to .send, it just sends a blank image.
I chose the image, because I have a lot of hidden columns with formulas and when I need for it to not send those.
Any help would be appreciated
The below will copy a cell range, and paste into an email that is sent to select recipients.
When I change the ending to .display , the image shows up. When it is set to .send, it just sends a blank image.
I chose the image, because I have a lot of hidden columns with formulas and when I need for it to not send those.
Any help would be appreciated
Code:
Sub Mail()
Dim r As Range
Set r = Worksheets("SAT").Range("A1:AD69")
r.Copy
Dim OutApp As Object
Dim outMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set outMail = OutApp.CreateItem(0)
On Error Resume Next
With outMail
.HTMLBody = activeMailMessage.HTMLBody
.To = ""
.CC = ""
.BCC = ""
.Subject = "Report Complete"
Dim wordDoc As Word.document
Set wordDoc = outMail.GetInspector.WordEditor
wordDoc.Range.PasteAndFormat wdChartPicture
outMail.send
End With
End Sub