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