View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Will Will is offline
external usenet poster
 
Posts: 129
Default Enabling/Disabling multiple option buttons

I have an excel worksheet ("Sheet 1") with a number of Optionbuttons
all of which I want to disable
via macro which runs from another worksheet ("Sheet 2").

So I want to do something like this:

For i = 1 To 7
Sheets("Sheet 1").Controls("OptionButton" & i).Enable = False
Next i

Will this work?
Or am I missing something?