Private Sub Textbox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Select Case KeyAscii
Case 97 To 122, 65 To 90, 32, 45, 39, 46
Else Case
KeyAscii = 0
With TextBox1
.BackColor = &HFF&
.SetFocus
.SelStart = 0
.SelLength = Len(Textbox1)
End With
End Select
End Sub