title: How to check the text inside a textbox on a random slide in VBA (PowerPoint)?
body: <p>For a presentation I am making, I want to check if the text inside a textbox (the name of that textbox is <em>TextBox2</em> and is an ActiveX-control) is the same as the text in another textbox (the name of this textbox is <em>naam</em> but is not an ActiveX-control). This is the code I have now:</p>
  
  <pre><code>Dim osld As Slide
  Set osld = ActivePresentation.SlideShowWindow.View.Slide
  
  Dim vragen As Byte
  Dim juist As Byte
  Dim fout As Byte
  
  If osld.Shapes("TextBox2").TextFrame.TextRange = osld.Shapes("naam").TextFrame.TextRange Then
  osld.Shapes("TextBox2") = ""
  </code></pre>
  
  <p>When I want to run this code, I get an error (Method or data member not found).</p>
  
  <p>How can I make this code working?</p>