Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,570
- Office Version
- 365
- 2016
- Platform
- Windows
I use this code below to manipulate the formatting of one of the textboxes in my userform.
I think it is doing what I want it to (sets default text and highlights it in preparation of being overwritten by the user). It appears to be working only when the user tabs to that textbox.
Is there a way to do this when the user click in that particular textbox?
I think it is doing what I want it to (sets default text and highlights it in preparation of being overwritten by the user). It appears to be working only when the user tabs to that textbox.
Is there a way to do this when the user click in that particular textbox?
Code:
Private Sub p_email_Enter()
'Stop
With s_email
.Text = "@email"
.ForeColor = RGB(227, 227, 227)
.Font.Italic = True
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End With
End Sub