LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,117
Default I want to create a check list with a count of entries at botto

btw, if you want, here's that counting checkboxes code. sounds like
you don't need it, but i'm throwing it in anyway just in case (& for
future searchers who might run across this post).
:)
======================
Option Explicit

Private Sub CommandButton1_Click()

Dim wks As Worksheet
Dim oleobj As OLEObject
Dim mynumber As Integer

Set wks = ActiveSheet
mynumber = 0

For Each oleobj In wks.OLEObject
If TypeOf oleobj.Object Is msforms.CheckBox Then
If oleobj.Object.Value = True Then
mynumber = mynumber + 1
End If
End If
Next oleobj

MsgBox "the number of checked boxes is " & mynumber

End Sub
=========================
susan


On Dec 24, 4:48*pm, Bupkus wrote:
mama, you hit it on the nail head.
Thanks



"Teethless mama" wrote:
select your data range (eg. A1:A10)


Data Validation Allow: select Custom Formula: =A1="x" * OK out


"Bupkus" wrote:


Correction: Validation against anything except "x" is what I meant.


"Bupkus" wrote:


That's great, thanks.
However, how can I restrict the user from accidently entering a space char
or any other char while I'm asking. I would like a Verification warning
atleast.
BTW, no row totals in right most column is needed.
Thanks again.


"Susan" wrote:


just put an "x" in each activity column/row.
at the bottom of each column (or at the end of each row, if you'd
rather) have a counta formula:


=counta(a2:a25)


that will give you the # of x's in each row.
OH WAIT, that won't work. *because it will also count the wording
you've got there for either name or activity........


try this instead:


=countif(a2:d2,"x") * this is for rows
=countif(a2:a25,"x") * this is for columns


now it will only count the x's.
hope it helps (or at least gets you started!)
:)
susan


On Dec 24, 3:52 pm, Bupkus wrote:
I have a table of 25 columns and a variable number of rows. Each row
represents a person and each column represents an activity. If person has
requested an activity then user mouse clicks in cell to mark person to that
activity. Bottom row has totals for each activity.
I would like a checkbox matrix where cells with checked box are counted in
the Totals row.
I'm over my head here and time doesn't allow for me any more research.
Thanks.- Hide quoted text -


- Show quoted text -


 
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
Create list of unique entries for use in validation raphiel2063 Excel Worksheet Functions 5 September 6th 07 04:49 AM
Check for duplicate entries in pull-down list bbarkman Excel Discussion (Misc queries) 1 May 12th 07 06:07 PM
In Excel, how to count a list of check boxes some are checked? M. Zak Excel Worksheet Functions 6 September 11th 06 12:32 PM
check a list of numbers for duplicate entries in Excel Space Excel Discussion (Misc queries) 3 August 15th 06 05:51 PM
I just want to create a check list for my snow pushing business c. Susan New Users to Excel 2 February 7th 05 11:21 PM


All times are GMT +1. The time now is 08:27 AM.

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"