We really just want to check if the send_mail sub is being called, right? You claim that the send_mail sub is not being called. To check this, we write the simplest code. If there is data in column J, it means that the send_mail sub is being called.
I will provide the file again, but you must ensure:
1. The file contains only 1 sheet Schedule and my code, without your sheets and codes. Because we will only check my code, right? We do not know what your code does, and whether it does not affect my code. And we only want to check my code.
2. You cannot change, add, delete anything.
3. Download the attached file --> run the file --> leave it for a few hours --> see if there is data in column J entered by sub send_mail.
code in ThisWorkbook
code in Module1
I added in function readTime
In the previous readTime the code reaches the last hour and turns off the clock. With the above line the code reaches the last hour then takes the first hour of the next day.
Bookmarks