Rebellion34
Technical User
Hi,
Can anyone assist me with an issue I am having am trying to automate an email of a spreadsheet from Excel. I have the code pretty much figured out and can get the email to generate as predicted, but then I get the pop up window asking if I wish to send the mail. Is there a way to turn this feature of for a specific Macro command if so can you explain how this is done. Also I need to set a parameter that only sends the email on specific days i.e. not weekends is there a code for this? here is what I have so far.
Sub Email()
Application.OnTime TimeValue("16:00:00"), "Email"
ActiveWorkbook.SendMail "user@email.com", "Monthly receiving log"
End Sub
thanks in advance for any help
Rob
Can anyone assist me with an issue I am having am trying to automate an email of a spreadsheet from Excel. I have the code pretty much figured out and can get the email to generate as predicted, but then I get the pop up window asking if I wish to send the mail. Is there a way to turn this feature of for a specific Macro command if so can you explain how this is done. Also I need to set a parameter that only sends the email on specific days i.e. not weekends is there a code for this? here is what I have so far.
Sub Email()
Application.OnTime TimeValue("16:00:00"), "Email"
ActiveWorkbook.SendMail "user@email.com", "Monthly receiving log"
End Sub
thanks in advance for any help
Rob