group/frames

  • Thread starter Thread starter libby
  • Start date Start date
L

libby

Hi

I have a frame that has a number of option buttons in it.
Is there any way I can set all these to false with one
line of code, by referencing the frame?
 
You can, however, use a loop structure to reset all the option
buttons to false.

Dim Ctrl As MSForms.Control
For Each Ctrl In Me.Frame1.Controls
If TypeOf Ctrl Is MSForms.OptionButton Then
Ctrl.Value = False
End If
Next Ctrl



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top