Hello,
I would like to do something like this:
I want it to replace btnCaller with the text lblStartTime (witch is a control on my form). but now it reads it as btnCaller.BackColor.
Can someone help me. THANK YOU!!!
I would like to do something like this:
Code:
'Called procedure
Public Sub SetBgLightBlue(buttenName As String)
Dim btnCaller As String
btnCaller = buttenName
Dim lngLightBlue As Long
lngLightBlue = RGB(223, 237, 254)
[B]btnCaller!BackColor = lngLightBlue[/B]
End Sub
'calling procedure
Private Sub starttime_GotFocus()
Me.SetBgLightBlue ("lblStartTime")
End Sub
I want it to replace btnCaller with the text lblStartTime (witch is a control on my form). but now it reads it as btnCaller.BackColor.
Can someone help me. THANK YOU!!!