Manipulating a checkbox by name dynamically
I have a bunch of checkboxes (not an array) that have
names like: rep1_cb, rep2_cb, rep3_cb, etc. I need to
iterate through all of them and change their captions.
My code looks something like this:
Dim counter as integer
counter = 1
Do Until...
Sheet1.OLEObjects("rep" & counter & "_cb").Object.???
counter = counter + 1
Loop
I don't know the syntax here for this. Is "Sheet1" the
correct thing to use altogether?
Thanks!
Eliezer
|