I've got a coworker that brought a problem to me.
And I haven't been able to come up with a solution.
He's got a userform with 15 Text boxes, and 15 Labels.
He's called them (unoriginally)
Userform1.Label1
Userform1.Label2, etc.
He has stored the values for the selections in an array.
He wants to be able to select the "Form Type" from a ComboBox,
and have the Labels updated dynamically based on the values in the
array.
What he'd LIKE to do is something like:
For I = 1 to 15
UserForm1.Label(I).Caption = NoteArray(I)
Next I
which, of course, is not "legal".
In other languages, I've used something like "Eval" to
basically "evaluate" the string and treat it as a command, but I
cannot find an similar statement in VBA.
Any ideas?