Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Hello OU, thank you for the detailed information.
I did some research and found a thread that appears to show similar behavior to what you are experiencing: Application.OnTime Delays When There Is No User Interaction (Even if Excel Is Active)
Important: This link will take you to stackoverflow.com , which is outside Microsoft’s domain. Please note that Microsoft is not responsible for the accuracy, security, or advertising on external sites.
In that discussion, one suggestion was to avoid relying on Application.OnTime and instead use a timer mechanism based on a triggered event that fires every second. This approach got some vote up, so you may want to try it as well and see whether it reduces the delay in your scenario.
Additionally, as noted in that thread, Application.OnTime in Excel does not guarantee millisecond‑accurate execution. The scheduled execution time is approximate and can deviate by several seconds depending on factors such as Excel’s internal state, automation activity, and user interaction. Based on a number of reported cases, including yours, this observation seems to be valid.
Regarding the situation where the same Windows 11 environment works fine with Excel 2010 but shows delays in Microsoft 365 / Excel 2024, the thread above also shares some relevant test results. The user observed delays on multiple Windows 11 systems (23H2 and 24H2), while older or upgraded environments behaved differently.
From these reports, I personally tend to suspect that this behavior is related to changes in the internal architecture and automation or execution model of newer Excel versions. Unfortunately, Microsoft does not publicly document Excel’s internal implementation details, so I don’t have solid technical evidence to explain the exact root cause, this is only my own interpretation based on available reports.
In summary, I recommend taking a look at the suggested alternative approach mentioned in the thread and testing whether it improves the behavior in your case. I hope this information is helpful.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.