using a variable for the label numbers
Posted by Blake Rubin on February 11, 2002 2:00 PM
i am using a userform to display a list of errors on an excel spreadsheet, i have 10 label on the form. I want to have the captions of the labels to list the errors in the order that they come up in the macro. I tried a bunch of different ways, but i cant get the syntax right, im not farmiliar with the set statement b/c i think thats what i need to use, like:
x=x+1
set labeler="userform1.label" & x
labeler.caption="error"
any help on how to do this is appreciated, thanks.