CokeOrCrack
Board Regular
- Joined
- Dec 13, 2015
- Messages
- 81
I want to display a label only when a specific textbox or combobox has focus.
When it loses focus, I want the label to no longer be visible.
This code I have does not work:
Is this possible?
Thanks
When it loses focus, I want the label to no longer be visible.
This code I have does not work:
Code:
Private Sub UserForm_Click()
If Me.ActiveControl = Me.cmbOnbIntResult Then
Label1.Visible = True
ElseIf Me.ActiveControl <> Me.cmbOnbIntResult Then
Label1.Visible = False
End If
End Sub
Is this possible?
Thanks