P
PPL
Excel 2003:
Worksheet contains a series of Option Buttons named
OptionButton1A to OptionButton1E
I'm trying to cycle through the sets of buttons to establish their status
with the following
Sub CheckStatus()
Dim X As Integer
For X = 65 To 69 '(i.e. when used with Chr will yield character A to E which
will be appended to the OptionButton1 name in the next command)
If OptionButton1 & Chr(X).Value = True Then '<--- Problem here gives Run
time error 424: Object Required
MsgBox "Do Stuff"
End If
Next X
End Sub
I'm doing something quite wrong here but no clue as to what
Can anyone help please?
TIA
Phil
Worksheet contains a series of Option Buttons named
OptionButton1A to OptionButton1E
I'm trying to cycle through the sets of buttons to establish their status
with the following
Sub CheckStatus()
Dim X As Integer
For X = 65 To 69 '(i.e. when used with Chr will yield character A to E which
will be appended to the OptionButton1 name in the next command)
If OptionButton1 & Chr(X).Value = True Then '<--- Problem here gives Run
time error 424: Object Required
MsgBox "Do Stuff"
End If
Next X
End Sub
I'm doing something quite wrong here but no clue as to what
Can anyone help please?
TIA
Phil