Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Counting Checkboxes

I am looking for a way to count the number of checkboxes with a check in them. Can anyone help

Thanks for your time..
Steven
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Counting Checkboxes

Hi
you already receivend an answer to this 1 hour ago in your previous
thread

--
Regards
Frank Kabel
Frankfurt, Germany


Steven wrote:
I am looking for a way to count the number of checkboxes with a check
in them. Can anyone help?

Thanks for your time...
Steven


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Counting Checkboxes

If they are in a userform then try this

Dim ctl As Control
Dim A As Long
A = 0
For Each ctl In UserForm1.Controls
If TypeOf ctl Is MSForms.CheckBox Then
If ctl.Value = True Then A = A + 1
End If
Next
MsgBox A


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


"Steven" wrote in message ...
I am looking for a way to count the number of checkboxes with a check in them. Can anyone help?

Thanks for your time...
Steven



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Counting Checkboxes

I know. I apologize. When I refreshed to check and see if i recieved any responses i didn't see it posted. I was in a bit of a hurry when I psted it, I thought maybe i forgot to submit.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Counting Checkboxes

1, 2, 3, 4 . . .

--
Regards,
Tom Ogilvy


"Steven" wrote in message
...
I am looking for a way to count the number of checkboxes with a check in

them. Can anyone help?

Thanks for your time...
Steven





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Counting Checkboxes

lol
...5, 6, 7 <vbg


--
Regards
Frank Kabel
Frankfurt, Germany


Tom Ogilvy wrote:
1, 2, 3, 4 . . .


"Steven" wrote in message
...
I am looking for a way to count the number of checkboxes with a
check in them. Can anyone help?

Thanks for your time...
Steven

Reply
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
Checkboxes stretch Excel Worksheet Functions 4 September 14th 07 12:36 PM
Checkboxes Randy L Excel Discussion (Misc queries) 3 February 22nd 06 08:09 PM
Counting the number of checkboxes on a spreadsheet Candice H. Excel Worksheet Functions 6 May 20th 05 05:27 PM
Counting checkboxes with a true value Antje Crawford Excel Programming 2 November 7th 03 06:48 PM
Counting checkboxes Shamsul Excel Programming 1 August 11th 03 03:26 PM


All times are GMT +1. The time now is 09:28 AM.

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

About Us

"It's about Microsoft Excel"