Dim C As Integer
For C = 1 To 2
LabelC.Enabled = True
Next [B][SIZE=2][COLOR=#b22222]C[/COLOR][/SIZE][/B]
1) Where is the label located at... on a worksheet or in a UseForm?HELLO,
THIS COD IS NOT WORK! WHAT?
I HAVE 2 LABEL THAT HAVE THIS PROPERTIES: (Enabled = False)Code:Dim C As Integer For C = 1 To 2 LabelC.Enabled = True Next
AND I WANT TO CHANGE THIS PROPERTIES TO "TRUE" WITH THIS COD, BUT THIS COD NOT WORK!
LABEL IS IN A FORM AND I WIRTE THIS COD IN "CommandButton1_Click"1) Where is the label located at... on a worksheet or in a UseForm?
2) If on a worksheet, then what kind of label is it... a Forms label or an ActiveX label?
LABEL IS IN A FORM AND I WIRTE THIS COD IN "CommandButton1_Click"
Dim C As Integer
For C = 1 To 2
Me.Controls("Label" & C).Enabled = True
Next
THANKSTry your code this way...
Code:Dim C As Integer For C = 1 To 2 Me.Controls("Label" & C).Enabled = True Next