Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Counting checkboxes
How do you count the number of Checkboxes in a Userform?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Counting checkboxes
Dim ctrl as Control
Dim icnt as long icnt = 0 for each ctrl in Userform1.Controls if typeof ctrl is MSForms.CheckBox then icnt = icnt + 1 end if Next msgbox "there are " & icnt & " checkboxes" -- Regards, Tom Ogilvy "Shamsul" wrote in message ... How do you count the number of Checkboxes in a Userform? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Checkboxes | Excel Discussion (Misc queries) | |||
Checkboxes | Excel Discussion (Misc queries) | |||
Counting the number of checkboxes on a spreadsheet | Excel Worksheet Functions | |||
Checkboxes | Excel Discussion (Misc queries) | |||
Checkboxes | Excel Discussion (Misc queries) |