P
Perry Diels
Hello,
In an Excel (2003) Sheet I have installed some check boxes. The only thing
they do is show a status (checked/unchecked) Now I want a handy reset button
that resets all checkboxes on the sheet to unchecked. I have installed a
button via the "Control Toolbox" with this code:
Private Sub CommandButton1_Click()
Dim ckBx As CheckBox
For Each ckBx In ActiveSheet.CheckBoxes
ckBx.Value = xlOff
Next ckBx
End Sub
Unfortunately nothing at all happens when clicking on it. Any idea why. Or
is there another (better) method to achieve the same result.
Thanks in advance for you help.
Perry
In an Excel (2003) Sheet I have installed some check boxes. The only thing
they do is show a status (checked/unchecked) Now I want a handy reset button
that resets all checkboxes on the sheet to unchecked. I have installed a
button via the "Control Toolbox" with this code:
Private Sub CommandButton1_Click()
Dim ckBx As CheckBox
For Each ckBx In ActiveSheet.CheckBoxes
ckBx.Value = xlOff
Next ckBx
End Sub
Unfortunately nothing at all happens when clicking on it. Any idea why. Or
is there another (better) method to achieve the same result.
Thanks in advance for you help.
Perry