Application.Calculation 属性
Application.Calculation property
我遇到了一个问题。有时,当我打开工作簿(没有宏)时,我的计算方法会更改为“手动”。研究这个问题我发现了以下原因。
Testing has shown that the calculation setting is set to Automatic by
default. It will only be set to Manual if:
(1) you have changed the
default workbook to one that has the calculation mode set to Manual;
(2) if there is some sort of AutoOpen macro that sets the calculation
mode;
(3) if you have some automatically loading workbooks (XLSX or
XLTX, including the Personal workbook) that have calculation set to
Manual; or
(4) if you start Excel by double-clicking, in Windows, on a
workbook that has calculation set to Manual.
由于 Application.Calculation 是应用程序级别 属性,我不明白原因 (1)、(3)、(4) 的解释。谁能解释一下工作簿与应用程序的关系 属性?
Excel 从 Excel 会话中打开的第一个非插件、非模板工作簿设置其初始计算模式。那么第二个打开的工作簿不会改变计算模式,但是当然VBA或者用户可以改变它。
我遇到了一个问题。有时,当我打开工作簿(没有宏)时,我的计算方法会更改为“手动”。研究这个问题我发现了以下原因。
Testing has shown that the calculation setting is set to Automatic by default. It will only be set to Manual if:
(1) you have changed the default workbook to one that has the calculation mode set to Manual;
(2) if there is some sort of AutoOpen macro that sets the calculation mode;
(3) if you have some automatically loading workbooks (XLSX or XLTX, including the Personal workbook) that have calculation set to Manual; or
(4) if you start Excel by double-clicking, in Windows, on a workbook that has calculation set to Manual.
由于 Application.Calculation 是应用程序级别 属性,我不明白原因 (1)、(3)、(4) 的解释。谁能解释一下工作簿与应用程序的关系 属性?
Excel 从 Excel 会话中打开的第一个非插件、非模板工作簿设置其初始计算模式。那么第二个打开的工作簿不会改变计算模式,但是当然VBA或者用户可以改变它。