Hi timc
Welcome to ozgrid.com
There a few ways this can be done. One is is like
The other, if the default of the Textboxes is nothing and other controls don't matter, isVB:Private Sub CommandButton1_Click() Dim cControl As Control For Each cControl In Me.Controls If cControl.Name Like "Text*" Then cControl = vbNullString Next End Sub
VB:Private Sub CommandButton1_Click() Unload Me UserForm1.Show End Sub


Reply With Quote
Bookmarks