S
Sophia
I *know* this is a dumb question, but ...
I have a form with 6 labels on it. The "Name" Property of the labels
is "lable1" through "label6"
I would like to create a loop that sets the Captions of the six
labels, using the contents of an array of strings named "Captions(1
to 6)".
Like: Label1.Caption = Captions(1)
I've tried assembling the variable names from strings, but VBA doesn't
like it ... so:
For LabelNumber 1 to 6
Somebody, please fill this in.
Next LabelNumber
TIA
I have a form with 6 labels on it. The "Name" Property of the labels
is "lable1" through "label6"
I would like to create a loop that sets the Captions of the six
labels, using the contents of an array of strings named "Captions(1
to 6)".
Like: Label1.Caption = Captions(1)
I've tried assembling the variable names from strings, but VBA doesn't
like it ... so:
For LabelNumber 1 to 6
Somebody, please fill this in.
Next LabelNumber
TIA