Refer checkbox by name in a loop

  • Thread starter Thread starter Xtender
  • Start date Start date
X

Xtender

Hello! I'm using a loop with counter, wich increases by one each time
The idea is to go through many checkboxes, check their value an
perform certain actions if it's "TRUE". However, I fail to refer t
checkboxes:

Code
-------------------
MyObject = Trim("CheckBox") & Trim(Str(Counter))
MyValue = MyObject.Value(
-------------------

As MyObject is a String, exel says : Runtime error '424' Objec
required.
How can I go through these checkboxes in a loop?
Many thanks
 
There is rarely a need to post in multiple places, we either visit others,
or someone will give you an answer.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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.

Ask a Question

Back
Top