title: Evaluating ToggleButton on specific worksheet
body: <p>How can I evaluate the status of a toggle button on a specific worksheet?</p>
  
  <p>If my code is stored with the specific worksheet, I can just refer to the name of the button:</p>
  
  <pre><code>Private Sub ToggleButton1_Click()
  If ToggleButton1.Value = True Then
      Debug.Print "true"
  Else
      Debug.Print "false"
  End If
  End Sub
  </code></pre>
  
  <p>However, if my code is stored in a module the above method does not worked. I have tried the following but it also does not work:</p>
  
  <pre><code>Public Sub Check_Button()
  If Sheets("sheet1").OLEObjects("ToggleButton1").Value = True Then
      Debug.Print "true"
  Else
      Debug.Print "false"
  End If
  End Sub
  </code></pre>