A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You can also use a simple function to build your own collection.
Andreas.
Sub Test()
Dim CB As MSForms.CheckBox
For Each CB In OLECheckBoxes
If MsgBox(CB.Name & ": " & CB.Caption, vbOKCancel) = vbCancel Then Exit Sub
Next
End Sub
Function OLECheckBoxes(Optional ByVal Sh As Object) As Collection
Dim OO As OLEObject
Set OLECheckBoxes = New Collection
If Sh Is Nothing Then Set Sh = ActiveSheet
If Sh Is Nothing Then Exit Function
For Each OO In Sh.OLEObjects
If OO.OLEType = xlOLEControl Then
If StrComp(OO.progID, "Forms.CheckBox.1", vbTextCompare) = 0 Then
OLECheckBoxes.Add OO.Object
End If
End If
Next
End Function