简体   繁体   English

Application.ontime无法正常工作?

[英]Application.ontime not working?

I am using this line of Application.Ontime: 我正在使用Application.Ontime的这一行:

Application.OnTime Now + TimeValue("00:00:05"), "'RefreshWorkbook'"

to re-call my sub declared using: 调用我的子声明使用:

Public Sub RefreshWorkbook()

5 seconds later, but it does not work. 5秒后,但它不起作用。 Is there something I am doing wrong? 我做错什么了吗? The subroutine is in the "thisworkbook" module? 该子例程在“ thisworkbook”模块中吗?

Use Now + TimeValue(time) to schedule something to be run when a specific amount of time (counting from now) has elapsed. 使用Now + TimeValue(time)安排在经过特定时间(从现在开始计数)后要运行的内容。 Use TimeValue(time) to schedule something to be run a specific time. 使用TimeValue(time)安排要在特定时间运行的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM