-
I need to change the font of labels while my program runs. My problem is that I don't know the name until an action happens. What I have tried ......
"lbl_" & txt_name.text & ".ForeColor=&H80&"
example of what this should then read is (lbl_MODEL_DESC.FORECOLOR=&H80)
...but I get syntax errors.
Help needed urgently .
Thanks
Bob
-
Two ways:
Form1.Controls("Label1").ForeColor = &H80&
or you could have your labels in an array...
Label1(Index)").ForeColor = &H80&
td.
-
Thanks ThumblingDown, that Controls option is spot on.
That was A1 Sharon !!!!!