mcarter973
Board Regular
- Joined
- Mar 24, 2002
- Messages
- 83
I have 8 check boxes - I would like to add a "select all" check box that would check all 8 boxes. Any help w/ code to get me started would be appreciated.
Private Sub CheckBox3_Click()
Dim ctl As OLEObject
For Each ctl In ActiveSheet.OLEObjects
If TypeName(ctl) = "CheckBox" Then ctl.Object.Value = CheckBox3.Value
Next ctl
End Sub
Private Sub CheckBox3_Change()
Dim tb As OLEObject
With ActiveSheet
For Each tb In .OLEObjects
If tb.OLEType = 2 Then
.OLEObjects(tb.Name).Object.Value = .OLEObjects("Checkbox3").Object.Value
End If
Next
End With
End Sub