title: How do I set application calculation back as to defined by user in Excel VBA?
body: <p>I have a rather large workbook, and some users prefer to have automatic calculation on, while others prefer having it off.</p>
  
  <p>Some macros that interact with the sheets are attatched to the workbook. To speed up my VBA code, I set</p>
  
  <pre><code>Application.Calculation = xlManual
  </code></pre>
  
  <p>In the beginning of each workbook.</p>
  
  <p>My question is, how do I revert it back to the way it was in the end of macro?</p>
  
  <p>Right now i'm using</p>
  
  <pre><code>Application.Calculation = xlAutomatic
  </code></pre>
  
  <p>but that overrides the users choice. It's pretty annoying having to change it back to manual every time the macro has run. (Or the other way around, if leaving it at manual.)</p>