title: Powerpoint Toggle button Compile error: expression expected
body: <p>I'm trying to make a toggle button change its caption to true or false depending on whether it's true or false. I keep getting an error saying "Compile error: expression expected." Heres the code I'm using.</p>
  
  <pre><code>Private Sub ToggleButton1_Click() 
  If ToggleButton1.Value = True Then 
      ToggleButton1.Caption = "Pressed" 
  Else 
      ToggleButton1.Caption = "Not Pressed" 
  End If 
  End Sub
  </code></pre>
  
  <p>It takes me to Module 1 and highlights a &lt; symbol.</p>