Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have many, many, many check boxes on a worksheet. Under certain conditions
when the sheet is activated, I need to uncheck ALL the checkboxes. Without naming each checkbox individually How can I do this in a loop? thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Dim CB As OLEObject For Each CB In ActiveSheet.OLEObjects If TypeName(CB) = "CheckBox" Then CB.Object.Value = False End If Next CB -- Regards Juan Pablo González "Sheldon" wrote in message ... I have many, many, many check boxes on a worksheet. Under certain conditions when the sheet is activated, I need to uncheck ALL the checkboxes. Without naming each checkbox individually How can I do this in a loop? thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dave Peterson posted this
And if you used checkboxes from the Forms toolbar (on a worksheet): ActiveSheet.CheckBoxes.Value = xlOn 'xlOff -- Regards Ron de Bruin http://www.rondebruin.nl "Juan Pablo González" wrote in message ... Try this Dim CB As OLEObject For Each CB In ActiveSheet.OLEObjects If TypeName(CB) = "CheckBox" Then CB.Object.Value = False End If Next CB -- Regards Juan Pablo González "Sheldon" wrote in message ... I have many, many, many check boxes on a worksheet. Under certain conditions when the sheet is activated, I need to uncheck ALL the checkboxes. Without naming each checkbox individually How can I do this in a loop? thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Both solutions offers did not work!
"Sheldon" wrote: I have many, many, many check boxes on a worksheet. Under certain conditions when the sheet is activated, I need to uncheck ALL the checkboxes. Without naming each checkbox individually How can I do this in a loop? thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox Question | Excel Discussion (Misc queries) | |||
Checkbox Question | Excel Discussion (Misc queries) | |||
Checkbox question | Excel Discussion (Misc queries) | |||
quick question on a checkbox | Excel Programming | |||
CheckBox (unclicking) Question | Excel Programming |