title: Run VBA macro when condition is met
body: <p>I'm creating a spreadsheet to train my numerical skills. </p>
  
  <p>Now, I use VBA macros to generate a new problem once the current one has been correctly solved. To do so, I still have to press a button in the worksheet, which costs time and is annoying. </p>
  
  <p>Is there a way that I can execute a macro when a certain condition is met?</p>
  
  <p>for instance:</p>
  
  <pre><code>if A1 = "correct!"
  then &lt;run macro&gt;
  else &lt;do nothing&gt;
  </code></pre>
  
  <p>Also, let me know if you're interested in the spreadsheet, I'd be happy to share it with you guys. </p>
  
  <p>best,
  Pieter</p>