Skip to content

Instantly share code, notes, and snippets.

@jakelosh
Last active December 18, 2015 21:59
Show Gist options
  • Save jakelosh/5851443 to your computer and use it in GitHub Desktop.
Save jakelosh/5851443 to your computer and use it in GitHub Desktop.
Another good macro for one's personal macro workbook. This one toggles between Manual and Automatic calculations. Hopefully your spreadsheets aren't so large that you need to use this often, but it prevents annoying autocalcs. I like to assign it to the keyboard shortcut CTRL + ALT + M.
Public Sub ToggleManualCalcs()
If Application.Calculation = xlCalculationAutomatic Then
Application.Calculation = xlCalculationManual
Else
Application.Calculation = xlCalculationAutomatic
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment