View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dan R. Dan R. is offline
external usenet poster
 
Posts: 220
Default Select or Enter into a TextBox on a UserForm

If TextBox1.Text < "password" Then
MsgBox "Invalid Password", vbCritical
TextBox1.SetFocus
TextBox1 = ""
End If

--
Dan

On Jan 3, 1:57*pm, RyanH wrote:
I am designing a Login Userform. *If the user enters the wrong password I
want to delete the text they entered and then have the textbox selected so
they can begin typing automatically. *Any suggestions would be great!