Hi all
I hope you can help me, I have managed to make my workbook automatically send an email when the workbook is saved using the code below, however the only problem is that the selection on the email is massize and spreads across 2-3 pages, meaning that it can not be printed, can I add something somewhere that will reduce the size of the selection in the email?
Thanks
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Requisition").Range("A1:J32").Select '#
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = "Hello, Spares Requisition Updated! - the workbook was Updated by " & Environ("USERNAME") & " at " & Format(Now(), "ddd dd mmm yy hh:mm")
.Item.To = "xxx@xxx.com;
.Item.Subject = "Spares Request update Number "
.Item.display
'.Item.send
End With
End Sub
I hope you can help me, I have managed to make my workbook automatically send an email when the workbook is saved using the code below, however the only problem is that the selection on the email is massize and spreads across 2-3 pages, meaning that it can not be printed, can I add something somewhere that will reduce the size of the selection in the email?
Thanks
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Requisition").Range("A1:J32").Select '#
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = "Hello, Spares Requisition Updated! - the workbook was Updated by " & Environ("USERNAME") & " at " & Format(Now(), "ddd dd mmm yy hh:mm")
.Item.To = "xxx@xxx.com;
.Item.Subject = "Spares Request update Number "
.Item.display
'.Item.send
End With
End Sub