Hi All,
I am new to the VBA , I am working on a project to send mail.
Here is the my code:
So when I am refreshing my D:\VBA Testing\xyz.xlsm file some times date range is not changing as the data is not updated in data base.
So I have to stop sending the email if the data base is not updated.
I automated this by scheduling on task scheduler in windows by writing auto run option after opening work book.
I provided Start date in cell value A3 and end date is in A4 in sheet 1.
After refreshing if end date value in A4 doesn't change or end date value is not equal to current date - 1 then I have to exit from macro
Bookmarks