Set focus to the text box and select the text in the UserForm_Initialize event procedure of the userform:
Private Sub UserForm_Initialize()
With Me.TextBox2 ' Substitute the name of the text box
.SetFocus
.SelStart = 0
.SelLength = Len(.Value)
End With
End Sub
Regards, Hans Vogelaar (http://www.eileenslounge.com)