I have about 20 Check Boxes laid out in a rectangle. How do I know what order my code loops through them with a For Each loop?
I've already confirmed it is not in the order of CheckBox1, CheckBox2, CheckBox3 etc.
I have about 20 Check Boxes laid out in a rectangle. How do I know what order my code loops through them with a For Each loop?
I've already confirmed it is not in the order of CheckBox1, CheckBox2, CheckBox3 etc.
For ActiveX checkbox controls laid out on the worksheet, the <right-click>, Order command sets the order they are retrieved in a For ... Each loop. The caveat is that the commands seem to be backwards.
The VBA for this is in the Shape.ZOrder method.
Use the Shape.ZOrderPosition property to determine the current position.