Change OptionButton true/false status on all sheets
Are all the sheets in the workbook worksheets--no chart sheets, no macro sheets.
Do all the worksheets from 2 to the last have Optionbuttons by those names?
I'm guessing that the answer to the second question is no.
Fan924 wrote:
My code, something not quite right about it but I can't spot it.
[Excel97]
--------------------------------------------------------
Sub SelectSW3()
Dim s As Integer
For s = 2 To ActiveWorkbook.Sheets.Count
With Worksheets(s)
.OptionButton1.Value = False
.OptionButton2.Value = False
.OptionButton3.Value = True
End With
Next s
Beep
End Sub
--------------------------------------------------------
The error I am getting is
Run-time error '428':
object does't support this property or method
Debugger highlights this " .OptionButton1.Value = False "
--
Dave Peterson
|