![]() |
#3
|
|||
|
|||
![]()
Thanks for the reply Logit.
I have pasted the Macro code below. This is weird as it works on all of the other computers in the company but this one. Thanks Code:
Sub Send() ' Select the range of cells on the active worksheet. ActiveSheet.Range("A1:B34").Select ' Show the envelope on the ActiveWorkbook. ActiveWorkbook.EnvelopeVisible = True ' Set the optional introduction field thats adds ' some header text to the email body. It also sets ' the To and Subject lines. Finally the message ' is sent. With ActiveSheet.MailEnvelope .Introduction = "Please Review Leave/Overtime Form" .Item.To = "email@email.com" .Item.Subject = "Leave/Overtime Form" .Item.Send End With ActiveWorkbook.Close SaveChanges:=False End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run Time Error '1004' | galkej | Excel | 0 | 02-03-2014 06:39 AM |
paste fails error 1004 in VBA Excel 2010 | mikec | Excel Programming | 17 | 05-08-2013 03:11 PM |
![]() |
yonasan | Excel Programming | 3 | 06-12-2012 11:08 PM |
![]() |
gbaker | Excel Programming | 11 | 06-06-2012 05:23 AM |