ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Counting checkbox values (https://www.excelbanter.com/excel-programming/346361-counting-checkbox-values.html)

VB Newbie[_2_]

Counting checkbox values
 
Hi-

Can anyone assist me with a quick script on checkbox values? I have
userform1 with 7 checkboxes. I want to set a control for the following:

if more than one checkbox.value for checkboxes 1-7 = true then
msgbox("Please select one and only one checkbox.")
exit sub.
end if

I thank you kindly!!!

Norman Jones

Counting checkbox values
 
Hi VB Newbie,

Why not use Option buttons, which have this functionality?

---
Regards,
Norman



"VB Newbie" wrote in message
...
Hi-

Can anyone assist me with a quick script on checkbox values? I have
userform1 with 7 checkboxes. I want to set a control for the following:

if more than one checkbox.value for checkboxes 1-7 = true then
msgbox("Please select one and only one checkbox.")
exit sub.
end if

I thank you kindly!!!




VB Newbie[_2_]

Counting checkbox values
 
I think I will do that. I thank you, sir!

"Norman Jones" wrote:

Hi VB Newbie,

Why not use Option buttons, which have this functionality?

---
Regards,
Norman



"VB Newbie" wrote in message
...
Hi-

Can anyone assist me with a quick script on checkbox values? I have
userform1 with 7 checkboxes. I want to set a control for the following:

if more than one checkbox.value for checkboxes 1-7 = true then
msgbox("Please select one and only one checkbox.")
exit sub.
end if

I thank you kindly!!!






All times are GMT +1. The time now is 09:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com