calculate in userbox fopr checkbox

hhh

New Member
Joined
Mar 15, 2011
Messages
12
Hi,

I believe many experts here can help me. I think of how to do it for many days but do not know answer.

I creating userform in Excel and can key in many people for survey. In the userform, user will click in checkbox on their preferences. They will click one of checkbox whether Good, average or Bad.
I need something to count number of checkbox column in each
Example:

Good Average Bad
Cake Checkbox 1 checkbox2 Checkbox 3

Pizza Checkbox 4 checkbox5 Checkbox 6

Currypuff Checkbox 7 checkbox8 Checkbox 9


Result count how many click Good AND AVERGAE AND BAD IN EACH COLUMN.THANKS

Please see attached.

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Something like
Code:
Dim GoodCount as Long, AvgCount as Long, BadCount As Long

With UserForm1
    GoodCount = -(.CheckBox1.Value + .CheckBox4.Value + .CheckBox7.Value)
    AvgCount = -(.CheckBox2.Value + .CheckBox5.Value + .CheckBox8.Value)
    BadCount = -(.CheckBox3.Value + .CheckBox6.Value + .CheckBox9.Value)
End With
 
Upvote 0
Hi,

I need to display this 3 result of Good, Average and Bad in real time in userform.

Anybody can help
 
Upvote 0
If you need to do it as they mark it, the code should be triggered by the CheckBox change events.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top