I have a script that goes through all of the controls in my form and if it matches some criteria it will add the name of the form to an array.
At the end I have an array with all of the names of the controls that I would like to do more things with.
I would like to know, how can I have VBA interact with the controls based on the names that have been put in the aray.
Here is an example of what I am trying to express. The code in the bracket is what I need to know how to express correctly.
I am trying clear the the contentes of the control whose name has been stored in MyArray(2):
Thanks,
Ilya
At the end I have an array with all of the names of the controls that I would like to do more things with.
I would like to know, how can I have VBA interact with the controls based on the names that have been put in the aray.
Here is an example of what I am trying to express. The code in the bracket is what I need to know how to express correctly.
I am trying clear the the contentes of the control whose name has been stored in MyArray(2):
Code:
frmMyForm.[MyArray(2)].Clear
Thanks,
Ilya