Hi,

I have created a command button that validates information on the userform. For example:

While textbox1.Text = ""
MsgBox "Please enter the reference of the document.", vbExclamation, "Document Reference"
userform1.Hide
userform1.Show
Wend

And i have another command button to unload the userform.

Private...