beepbeep27
New Member
- Joined
- May 7, 2012
- Messages
- 21
Im trying to use this macro which allows me to send an email with highlighted text in the body. The problem is I have to change emails and add/take out on each one. I was hoping to modify this macro so it will open the email with the highlighted text, etc but not send until i manually do so. Any help welcomed!
Sub
Send_Selection_Or_ActiveSheet_with_MailEnvelope()
'Working in Excel 2002-2016
Dim Sendrng As Range
On Error GoTo StopMacro
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
'Note: if the selection is one cell it will
send the whole worksheet
Set Sendrng = Selection
'Create the mail and send it
With Sendrng
ActiveWorkbook.EnvelopeVisible = True
With .Parent.MailEnvelope
' Set the optional introduction field
thats adds
' some header text to the email body.
.Introduction = "Text in the body"
With .Item
.To = "email@email.com"
.CC = ""
.BCC = ""
.Subject = "Follow-up"
.Send
End With
End With
End With
StopMacro:
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
ActiveWorkbook.EnvelopeVisible = False
End Sub
Sub
Send_Selection_Or_ActiveSheet_with_MailEnvelope()
'Working in Excel 2002-2016
Dim Sendrng As Range
On Error GoTo StopMacro
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
'Note: if the selection is one cell it will
send the whole worksheet
Set Sendrng = Selection
'Create the mail and send it
With Sendrng
ActiveWorkbook.EnvelopeVisible = True
With .Parent.MailEnvelope
' Set the optional introduction field
thats adds
' some header text to the email body.
.Introduction = "Text in the body"
With .Item
.To = "email@email.com"
.CC = ""
.BCC = ""
.Subject = "Follow-up"
.Send
End With
End With
End With
StopMacro:
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
ActiveWorkbook.EnvelopeVisible = False
End Sub