title: How to make a variable public for all the workbook
body: <p>I put this code into the module page</p>
  
  <pre><code>    Option Explicit
  Dim correct As Boolean
  
  Sub setCorrect()
  
      correct = True
  
  End Sub
  
  Sub checkCorrectTrue()
  
      If correct Then
  
          MsgBox "OK"
  
      Else
  
          MsgBox "NO"
  
      End If
  
  End Sub
  </code></pre>
  
  <p>Then when I call these 2 subs from a sheet my variable <em>correct</em> never switch to True</p>
  
  <pre><code>Private Sub CommandButton4_Click()
  
      Call setCorrect
  
      Call checkCorrectTrue
  
  End Sub
  </code></pre>