#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Excel Checkboxes

I have an excel spreadsheet that contains a number of check boxes in it, is
it possible to write some code which would allow you to determine if the
check box had been ticked or not.

The reason I am asking is that tthere are a large number of these checkboxes
and I would like to incorporate into a macro that could read it all off
instantly
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Excel Checkboxes

A response from Bob Phillips to an early posting today asking a similar
question. This will count check boxes ticked.


Dim chk As CheckBox
Dim c As Long

For Each chk In ActiveSheet.Checkboxes
If chk.Value = Then c = c + 1
Next chk

MsgBox c

Bob's alternative sggestion was:

Use checkboxes and link that to cells (D1,D2 etc.) and then just use

=COUNTIF(D1:D10,TRUE)

HTH

"nir020" wrote:

I have an excel spreadsheet that contains a number of check boxes in it, is
it possible to write some code which would allow you to determine if the
check box had been ticked or not.

The reason I am asking is that tthere are a large number of these checkboxes
and I would like to incorporate into a macro that could read it all off
instantly

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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Using Excel 2000 VBA Application on Excel 2003 Excel Worksheet Functions 0 August 8th 06 02:36 AM
Remove outdated checkboxes from Excel Pivot Table field pulldown? IrishPatNJ Excel Discussion (Misc queries) 1 August 4th 06 04:20 PM
excel viewer littlebird0770 Setting up and Configuration of Excel 6 July 6th 06 04:10 PM


All times are GMT +1. The time now is 08:57 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"