title: ActiveX Radio Buttons Excel VBA
body: <p>On my main excel page I have two ActiveX control radio buttons called OptionButton1 and OptionButton2 I would like to use for a Yes/No option.</p>
  
  <p>In my code I have the following:</p>
  
  <pre><code>If OptionButton1.Value = True Then
      MsgBox "Yes."
  ElseIf OptionButton2.Value = True Then
      MsgBox "No."
  End If
  </code></pre>
  
  <p>When I try to run my macro I get this error:</p>
  
  <pre><code>Runtime error '424':
  Object Required
  </code></pre>
  
  <p>How do I fix this?</p>