📜  excel vba 强制重新计算 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:55.047000             🧑  作者: Mango

代码示例1
'VBA routine to force the workbook to recalculate:

Sub ForceCalc(Optional Full As Boolean)
    With Application
        .Calculation = xlCalculationManual
        .Calculation = xlCalculationAutomatic
        If Full Then .CalculateFull
    End With
End Sub