Hello to all forum participants...
I created an userform (UserForm1) and inside this, I placed 20 checkboxes named from 1 to 20.
My intention is that whenever I check one random CB (setting it to true) the VBA sets all the remaining 19 CBs to False and to enabled = false, so to leave the checked one as the only one "alive".
And if I was wrong with my first choice, I can uncheck the alive checkbox back to false, with the additonal result of having the other 19 to be set back to enabled=true (and of course false).
Now, I can write down 20*19 = 380 code lines to specify each possible combination one by one, but I'm totally sure there is a much clevere and short way of doing the same task in much instructions....
Any good suggestion abut this?
Thanks a lot in advance.
Oversteer
I created an userform (UserForm1) and inside this, I placed 20 checkboxes named from 1 to 20.
My intention is that whenever I check one random CB (setting it to true) the VBA sets all the remaining 19 CBs to False and to enabled = false, so to leave the checked one as the only one "alive".
And if I was wrong with my first choice, I can uncheck the alive checkbox back to false, with the additonal result of having the other 19 to be set back to enabled=true (and of course false).
Now, I can write down 20*19 = 380 code lines to specify each possible combination one by one, but I'm totally sure there is a much clevere and short way of doing the same task in much instructions....
Any good suggestion abut this?
Thanks a lot in advance.
Oversteer