ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   group/frames (https://www.excelbanter.com/excel-programming/293771-group-frames.html)

libby

group/frames
 
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?

Chip Pearson

group/frames
 
Libby,

I don't believe this is possible.


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


"libby" wrote in message
...
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?




Chip Pearson

group/frames
 
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



"Chip Pearson" wrote in message
...
Libby,

I don't believe this is possible.


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


"libby" wrote in message
...
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?







All times are GMT +1. The time now is 02:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com