Thread: Checkbox Help
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] pkruti@hotmail.com is offline
external usenet poster
 
Posts: 3
Default Checkbox Help

Is there a way in code to check a checkbox on an excel spreadsheet when
a command button is clicked? i tried the following but it didnt seem to
work: it gave an error saying "Object required"??

Sub SendAll_Click ()

If CheckBox1.Value = 0 then
CheckBox1.Value = 1
End if

End Sub

Any ideas on what i am may be doing wrong???