title: how to link a checkbox on Excel to a VBA code
body: <p>I have created a checkbox on my Excel Work sheet, using design mode I have leftclicked it and named it ChkV, and I wrote a VBA code but when I run it I get an message telling that the variable is not defined. </p>
  
  <pre><code>    If ChkV.Value = True Then
          ' my code
      End If
  </code></pre>
  
  <p>Did I not label the check box correctly, what am I doing wrong ? How should I fix the mistake?</p>