I created this macro which is working.
The problem is that I am stuck trying to see and adjust the size of the tables before sending.
When I use .send the email goes.
When I use .display it creates the email within the excel and I select the range, but don't end up seeing the email before it goes.
Any suggestions?
Private Sub CommandButton1_Click()
' Some operations of copy paste
'Then I copy the sheet to a new one where I clean extra rows for the final report. Te final report sheet is to be deleted in the end so that every month I start with the main sheet.
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = ""
.Item.To = "mail"
.Item.Subject = "name"
.Item.SEND
End With
Application.DisplayAlerts = False
Sheets("final report sheet").Delete
Application.DisplayAlerts = True
End Sub
Any suggestions??
The problem is that I am stuck trying to see and adjust the size of the tables before sending.
When I use .send the email goes.
When I use .display it creates the email within the excel and I select the range, but don't end up seeing the email before it goes.
Any suggestions?
Private Sub CommandButton1_Click()
' Some operations of copy paste
'Then I copy the sheet to a new one where I clean extra rows for the final report. Te final report sheet is to be deleted in the end so that every month I start with the main sheet.
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = ""
.Item.To = "mail"
.Item.Subject = "name"
.Item.SEND
End With
Application.DisplayAlerts = False
Sheets("final report sheet").Delete
Application.DisplayAlerts = True
End Sub
Any suggestions??