Add message when sending page as body of an email

Fersta

New Member
Joined
Apr 6, 2017
Messages
5
Hello All. I apologize in advance if this question gets a little long. I have a spreadsheet that contains a macro that will send the desired cells from the sheet as the body of an email.

Sub Email()


ActiveSheet.Unprotect
ActiveWorkbook.EnvelopeVisible = False
ActiveSheet.Range("Print_Area").Select
With ActiveSheet.MailEnvelope
.Item.to = "email@email.com"
.Item.Subject = "Production update_" & Worksheets("Sheet3").Range("A1").Value
.Item.Send
End With


ActiveSheet.Range("A30").Select
ActiveSheet.Protect
'Workbook must be saved in order to send another sheet using macro
ActiveWorkbook.Save

This works well, but does not allow the sender a chance to add a comment without sending a separate email. Is there any way that I could add something to the above macro that would open up a comment window where the sender could type a message that would be added to the email?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Change .item.send to .item.display

This will allow user to see email and edit before sending.
 
Last edited:
Upvote 0
Thanks. I tried that and it did not bring up an email. Screen flashed and sheet went to ("A30"), protected and saved. I do need it to still be able to protect and save since most who use it have never used excel anywhere else. I think if they had to hit the send button on the email, that would probably be where the macro would need to end. How it is now, the email sends automatically and all they have to do is close the spreadsheet when they are done.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,171
Members
453,021
Latest member
Justyna P

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