E
ExcelMonkey
I am trying to loop through all the checkbox controls in a spreadsheet and
make sure they are all checked. Why is this not workin:
Sub FindCheckboxes()
Dim obj As OLEObject
For Each obj In OLEObjects
If TypeOf obj.Object Is msforms.CheckBox Then
obj.Object.Value = True
End If
Next obj
End Sub
Thanks
EM
make sure they are all checked. Why is this not workin:
Sub FindCheckboxes()
Dim obj As OLEObject
For Each obj In OLEObjects
If TypeOf obj.Object Is msforms.CheckBox Then
obj.Object.Value = True
End If
Next obj
End Sub
Thanks
EM