T
Tim Golobic
I have columns of labels in a UserForm that I would like to update
using a loop, but have been unable to get the syntax correct with the
loop variable.
There are 24 labels, each labeled Gross_1, Gross_2 .... Gross_24.
A simple statement like
Gross_1 = "1"
updates the caption just fine
But if I try
For MyLoop = 1 to 24
"Gross_" & MyLoop = "1"
Next MyLoop
I receive a syntax error.
I'm trying to avoid assigning the captions with individual statements
since I have 6 more columns exactly like the one above.
Thanks for the help,
Tim
using a loop, but have been unable to get the syntax correct with the
loop variable.
There are 24 labels, each labeled Gross_1, Gross_2 .... Gross_24.
A simple statement like
Gross_1 = "1"
updates the caption just fine
But if I try
For MyLoop = 1 to 24
"Gross_" & MyLoop = "1"
Next MyLoop
I receive a syntax error.
I'm trying to avoid assigning the captions with individual statements
since I have 6 more columns exactly like the one above.
Thanks for the help,
Tim