title: excel vba - check if radio button is selected?
body: <p><img src="https://i.stack.imgur.com/DuEjp.jpg" alt="bt"></p>
  
  <p>I'm trying to check the value of these simple radio button groups but my syntax is off, does anyone know what to change?
  Note: they are Excel Option Buttons not ActiveX ones and they are not on a userform.</p>
  
  <pre><code> If Worksheets("Input").Shapes("Option Button 3").Select.Value = xlOn Then
       MsgBox "fir"
   ElseIf Worksheets("Input").Shapes("Option Button 4").Select.Value = xlOn Then
       MsgBox "sec"
   Else
       MsgBox "none" 'in case they were deleted off the sheet
   End If
  </code></pre>