Hi,
I need some assistance. I want to automate an Excel macro using VBA that will send an email with attachment daily to recipients based on weekday and at specific times. For example, if today is a day between Monday - Friday then email will go out at 2:15 PM and 9:15 PM. And similarly for other days, i.e, Sat has other time intervals and Sunday has other time range.
I ran the code and it's working fine. But issue is, if I will run the macro today then it will send the email at above time only today and it will not work for next day, i.e, next day I've to restart the macro again. I am not able to understand as why do I have to restart the macro everyday and why not that same previous day's macro will continue for other days.
Would someone please help me with this? I am attaching a sample file with macros.
Please advise.
Thanks,
VG
I need some assistance. I want to automate an Excel macro using VBA that will send an email with attachment daily to recipients based on weekday and at specific times. For example, if today is a day between Monday - Friday then email will go out at 2:15 PM and 9:15 PM. And similarly for other days, i.e, Sat has other time intervals and Sunday has other time range.
I ran the code and it's working fine. But issue is, if I will run the macro today then it will send the email at above time only today and it will not work for next day, i.e, next day I've to restart the macro again. I am not able to understand as why do I have to restart the macro everyday and why not that same previous day's macro will continue for other days.
Would someone please help me with this? I am attaching a sample file with macros.
Please advise.
Thanks,
VG