Refresh entire Excel workbook (all data connections and calculations) every 15 minutes?

前端 未结 3 1730
感情败类
感情败类 2020-12-20 07:12

I have the following macro to refresh my workbook. This is the same as clicking on the refresh all button.

Is there a time element I can add to this code to refresh

3条回答
  •  醉梦人生
    2020-12-20 07:27

    You can use the Application.OnTime method to schedule a macro to be run in the future: https://msdn.microsoft.com/en-us/library/office/ff196165.aspx

    Yet, this is a one time event only. To make it recursive, you'll have to include in that macro (yet again) another Application.OnTime to ensure a calling "every 15 minutes".

提交回复
热议问题