-
Apr 25th, 2012, 12:45 PM
#1
New Member
Variable as button name
Hello,
I am using macros in excel, and I want to use a variable to define the name of a button to change its backcolor. What Ive done is as follows:
lote = Label2.Caption
If OptionButton1.Value = True Then lote.BackColor = vbYellow
However it does not recognize lote as a button name to change the backcolor. Can anyone help me please?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules