Hi
Am i missing something
The label names are comp1label, comp2label, etc
The msgbox gives the correct name but applying the caption does not?
thanks for you help
Private Sub refreshbutton1_Click()
Dim i As Integer
Dim qL As String
For i = 1 To 9
qL = "comp" & (i) & "label"
MsgBox qL
With qL
.Caption = "hope for success"
End With
Next i
end sub
Am i missing something
The label names are comp1label, comp2label, etc
The msgbox gives the correct name but applying the caption does not?
thanks for you help
Private Sub refreshbutton1_Click()
Dim i As Integer
Dim qL As String
For i = 1 To 9
qL = "comp" & (i) & "label"
MsgBox qL
With qL
.Caption = "hope for success"
End With
Next i
end sub