PC Review


Reply
Thread Tools Rate Thread

Clear check boxes?

 
 
Geoff
Guest
Posts: n/a
 
      1st Dec 2009
Excel 2007:

I have a sheet that has oodles of check boxes. Is there a simple way to
automate resetting the values of them to zero. The check boxes are not tied
to any cell value.
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      1st Dec 2009
Geoff,

How depends on which toolbox you used, here's both ways

Sub Test()
'from the Controls tolbar
Dim obj As OLEObject
For Each obj In ActiveSheet.OLEObjects
If obj.progID = "Forms.CheckBox.1" Then
obj.Object = False
End If
Next obj
End Sub

Sub Test2()
'from the Forms tolbar
Dim obj As CheckBox
For Each obj In ActiveSheet.CheckBoxes
obj.Value = False
Next obj

End Sub


Mike

"Geoff" wrote:

> Excel 2007:
>
> I have a sheet that has oodles of check boxes. Is there a simple way to
> automate resetting the values of them to zero. The check boxes are not tied
> to any cell value.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check and clear Multiple check boxes Dean Microsoft Excel Programming 4 1st Apr 2010 04:32 PM
Re: Clear check boxes? Dave Peterson Microsoft Excel Programming 0 1st Dec 2009 08:12 PM
RE: Clear check boxes? Geoff Microsoft Excel Programming 0 1st Dec 2009 08:09 PM
Clear All Check Boxes =?Utf-8?B?U3RldmUgQw==?= Microsoft Excel Programming 5 15th Mar 2007 09:38 PM
How do I clear all check boxes w/out manually unchecking boxes? =?Utf-8?B?VEo=?= Microsoft Access 12 25th Aug 2005 02:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:29 PM.