title: UserForm - adding stop button
body: <p>I've written a macro which is time consuming (it works for a few hours); that's why I want to add two things to my <code>UserForm</code>, to manually stopping the macro.</p>
  
  <p>First button starts the macro. Let's assume that that code of this macro looks like:</p>
  
  <pre><code>For i = 1 to 10000
      DoEvents 
      If isCancelled Then Exit Sub
  Next i
  </code></pre>
  
  <p>I was thinking about adding an additional "Stop" button, which changes <code>isCancelled</code> from <code>False</code> to <code>True</code>, but the button is locked and can't be clicked during macro execution. Is there any way to enable this button? Or maybe there is a better way to manually stop the macro?</p>