Ryan H ARENA
New Member
- Joined
- Jun 16, 2018
- Messages
- 5
I'm attempting to create a command button that will send the current sheet to someone as an email, but when I click the button nothing happens. Here is the code, and I'm not sure if I assigned it properly. Excel 2010. Thanks for the help.
Sub Send_Range()
ActiveSheet.Range("A1:P1000").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = "Daily Production Goal spreadsheet"
.Item.To = "aaa.bbb@ccc"
.Item.Subject = "Today's Production Goal"
.Item.Send
End With
End Sub
Sub Send_Range()
ActiveSheet.Range("A1:P1000").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = "Daily Production Goal spreadsheet"
.Item.To = "aaa.bbb@ccc"
.Item.Subject = "Today's Production Goal"
.Item.Send
End With
End Sub
Last edited by a moderator: