View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Anil Kumar N. Anil Kumar N. is offline
external usenet poster
 
Posts: 1
Default Clearing All check boxes using Macro

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