LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Clear check boxes?

Just a different take on Mike's suggestion...

I'd test the object this way:

Sub Test()
'from the Controls toolbar
Dim obj As OLEObject
For Each obj In ActiveSheet.OLEObjects
If typeof obj.object is msforms.checkbox Then
obj.Object = False
End If
Next obj
End Sub

For me, it's safer than making sure I type: "Forms.CheckBox.1"
correctly--spelled correctly and in the correct case.

And if the checkboxes are from the forms toolbar:

Sub Test2()
'from the Forms toolbar
ActiveSheet.CheckBoxes = xloff
End Sub

It may blow up if you have lots and lots (whatever that means) of checkboxes.

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.


--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
Clear check boxes? Geoff[_5_] Excel Programming 0 December 1st 09 08:09 PM
Clear All Check Boxes Steve C Excel Programming 5 March 15th 07 09:38 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
How do i create a value for check boxes or option boxes Tim wr Excel Discussion (Misc queries) 1 February 9th 06 10:29 PM


All times are GMT +1. The time now is 08:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"