Application VisualBasic Script

Sub ToggleCalcMode()
    Select Case Application.Calculation
        Case xlManual
            Application.Calculation = xlCalculationAutomatic
            MsgBox "Automatic Calculation Mode"
        Case xlAutomatic
            Application.Calculation = xlCalculationManual
            MsgBox "Manual Calculation Mode"
    End Select
End Sub