首先我想你的本意应该是:
If Text1.Text = "" Then
MsgBox "姓名不能为空!", vbOKOnly + vbExclamation, ""
Text1.SetFocus
Text1 = ""
'ADD
 exit sub
End If