Enabling/Disabling multiple option buttons
Dim OLEObj As OLEObject
Dim iCtr As Long
For iCtr = 10 To 20
Worksheets("Sheet1").OLEObjects("OptionButton" & iCtr).Enabled = False
Next iCtr
Will wrote:
Thanks for your help Rick.
All my OptionButtons come from the ActiveX Controls toolbox.
Another question:
If I don't want to disable ALL Optionbuttons, but only a subset.
-- for example OptionButton10 to OptionButton20.
Is this possible?
Is there a For ... Next routine I can use?
Thanks,
Will
--
Dave Peterson
|