Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-01-2017, 03:37 PM
mamies mamies is offline Error 1004 on EnvelopeVisable Windows 10 Error 1004 on EnvelopeVisable Office 2013
Novice
Error 1004 on EnvelopeVisable
 
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
 



Similar Threads
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
Error 1004 on EnvelopeVisable Run time error 1004 yonasan Excel Programming 3 06-12-2012 11:08 PM
Error 1004 on EnvelopeVisable runtime error 1004 gbaker Excel Programming 11 06-06-2012 05:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft