PC Review


Reply
Thread Tools Rate Thread

How do I total a series of checked boxes?

 
 
=?Utf-8?B?ZGF5b3VuZ2Jsb29k?=
Guest
Posts: n/a
 
      16th Jul 2006
I have a line of activex checkmark control boxes. How do I total the number
of boxes that are checked?
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Jul 2006
Hi dayoungblood

Try this

Sub test2()
Dim i As Long
i = 0
For Each obj In ActiveSheet.OLEObjects
If TypeOf obj.Object Is MSForms.CheckBox Then
If obj.Object.Value = True Then i = i + 1
End If
Next
MsgBox i
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"dayoungblood" <(E-Mail Removed)> wrote in message news:80E86A3C-4EAB-46B6-89A2-(E-Mail Removed)...
>I have a line of activex checkmark control boxes. How do I total the number
> of boxes that are checked?



 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Jul 2006
Oops you posted in functions

Or use a linked cell in the properties of each checkbox
And count the Tru's

=COUNTIF(A40:Z40,"True")



--
Regards Ron de Bruin
http://www.rondebruin.nl



"dayoungblood" <(E-Mail Removed)> wrote in message news:80E86A3C-4EAB-46B6-89A2-(E-Mail Removed)...
>I have a line of activex checkmark control boxes. How do I total the number
> of boxes that are checked?



 
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
total checked boxes on a form veggiedi@gmail.com Microsoft Access Forms 2 18th Aug 2008 10:02 PM
Query Help - How to total checked boxes? Mel Microsoft Access Queries 2 12th Nov 2007 07:01 PM
Counting Total of Checked Boxes - just once, please!! =?Utf-8?B?amFuYWtp?= Microsoft Access Reports 1 28th Sep 2005 10:58 PM
Re: checked boxes Charles Kenyon Microsoft Word Document Management 0 22nd Apr 2004 08:29 PM
un-checked boxes icestationzbra Microsoft Excel Misc 12 1st Feb 2004 03:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 PM.