I have several labels which I use in a dialog box, I want to for loop through these labels and change them.
for i = 1 to 100
UserForm1.label(i).Caption = vc(i)
next i
ie change the label caption to the value in my array vc().
Does anyone know how I can do this, there are 100 values in vc() and do not want to have to write out
userform1.label1.caption = vc(1)
userform1.label2.caption = vc(2)
and also on.....
TIA
Cage
for i = 1 to 100
UserForm1.label(i).Caption = vc(i)
next i
ie change the label caption to the value in my array vc().
Does anyone know how I can do this, there are 100 values in vc() and do not want to have to write out
userform1.label1.caption = vc(1)
userform1.label2.caption = vc(2)
and also on.....
TIA
Cage