ExcelNewbie2020
Active Member
- Joined
- Dec 3, 2020
- Messages
- 350
- Office Version
- 365
- Platform
- Windows
Sir,
Would like to ask for vba code that will auto run my subroutine in a specific time, let say at 5PM.
my subroutine "sendemail" works properly when i hit button (auto send email thru msoutlook) now, instead of a button, i would like to auto run the subroutine everyday at 5PM.
tried to add this line "Application.OnTime TimeValue("17:00:00"), "SendEmail" but did not work...
Note: my excel workbook and msoutlook is running though my pc is locked..
Would like to ask for vba code that will auto run my subroutine in a specific time, let say at 5PM.
my subroutine "sendemail" works properly when i hit button (auto send email thru msoutlook) now, instead of a button, i would like to auto run the subroutine everyday at 5PM.
tried to add this line "Application.OnTime TimeValue("17:00:00"), "SendEmail" but did not work...
Note: my excel workbook and msoutlook is running though my pc is locked..