📜  excel vba自动计算——VBA代码示例

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

代码示例1
Sub CalculationMode()
    ' To manual
    Application.Calculation = xlManual
    ' One shot Recalculation (one worksheet), keeps Calculation mode to manual
    ThisWorkbook.Worksheets(1).Calculate
    ' To automatic
    Application.Calculation = xlAutomatic
End Sub