The easy way is:
if checkbox1=true then
if checkbox2=true then
if checkbox3=true then
if checkbox4=true then
combobox1.Enabled=False
end if
end if
end if
end if
That is an easy way to do it! Do you know of a cleaner way to do it, like a
Loop? Such as count the true check boxes and if it = 4 then disable combobox.
I assume I have to put this code under the Click_Event of each checkbox so
if it is shorter to write a loop I would prefer that. Not to be picky or
anything, lol.
Take the product of their values and if not equal to zero then all are checked.
--
Jim Cone
San Francisco, USA http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)
"RyanH"
wrote in message
I want to disable a ComboBox if all 4 CheckBox Values in a UserForm Frame are
True. How do I do this?
Ryan
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.