View Single Post
 
Old 03-01-2017, 03:37 PM
mamies mamies is offline Windows 10 Office 2013
Novice
 
Join Date: Jun 2014
Posts: 13
mamies is on a distinguished road
Default

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
Reply With Quote