ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Check Boxes (https://www.excelbanter.com/excel-discussion-misc-queries/229143-check-boxes.html)

Felix

Check Boxes
 
In Excel 2oo7, is there a makro that uncheck all check boxes in a worksheet?
(empty them?)
--
Felix

Dave Peterson

Check Boxes
 
'If they're from the forms toolbar:
ActiveSheet.CheckBoxes.Value = False

'If they're from the control toolbox toolbar:
Dim myCBX As OLEObject
For Each myCBX In ActiveSheet.OLEObjects
If TypeOf myCBX.Object Is MSForms.CheckBox Then
myCBX.Object.Value = False
End If
Next myCBX

Felix wrote:

In Excel 2oo7, is there a makro that uncheck all check boxes in a worksheet?
(empty them?)
--
Felix


--

Dave Peterson


All times are GMT +1. The time now is 12:24 AM.

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