WelshTeckie
IS-IT--Management
Hi,
I was wondering is there a way to use a string as part of a command in VBA.
What i'm trying to do is, I have many labels with the same name like Label1, Label2, Label3, etc
and I want to use a for loop to go through each label and do the same thing to all of them, somthing ike this..
For X = 1 to 30
DoCmd = "Label" & X & ".color = red"
Next X
Is there such a thing to be had???
I was wondering is there a way to use a string as part of a command in VBA.
What i'm trying to do is, I have many labels with the same name like Label1, Label2, Label3, etc
and I want to use a for loop to go through each label and do the same thing to all of them, somthing ike this..
For X = 1 to 30
DoCmd = "Label" & X & ".color = red"
Next X
Is there such a thing to be had???