
Originally Posted by
Coltara
Thank you for your help. I have been playing with it all day but I can only get it to send the email when I hit "run" after that I get a message saying the macro is disabled or nothing happens at all.
Test the new file
1. I added the line
in Function readTime
In the old code after the last send_mail of the day the code will turn off the Timer. The new code after the last send_mail of the day sets the timer to the first time of the next day.
2. in the ThisWorkbook module I add
The old code will not turn off the timer when the file is closed and the new code will turn off the timer.
3. Add content to the send_mail sub
4. I removed your sheets to test only the code.
5. I ran the file. For the test I set the time to 01:05 (Saturday), and when it is 01:05 the sub send_mail code is executed. If your send_mail does not start I do not know why.
Bookmarks