A
Anil Kumar N.
Hi,
I'm trying to uncheck all the check boxes using a macro.
Private Sub Clearall()
Dim ws As Worksheet
Dim chkbx As OLEObject
For Each chkbx In ws.OLEObjects
chkbx.Object.Value = False
Next chkbx
End Sub
and I'm getting an error Run time error-"91":
Object variable or With block variable not set.
Please Help
I'm trying to uncheck all the check boxes using a macro.
Private Sub Clearall()
Dim ws As Worksheet
Dim chkbx As OLEObject
For Each chkbx In ws.OLEObjects
chkbx.Object.Value = False
Next chkbx
End Sub
and I'm getting an error Run time error-"91":
Object variable or With block variable not set.
Please Help