How to Clear all TextBoxes on the form
Posted on January 4, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 'Controls - How to Clear all TextBoxes on the form Option Explicit Private Sub ClearTextBoxes() Dim ctl As Control ' Clear all the TextBoxes on the form. For Each ctl In Controls If TypeOf ctl Is TextBox Then ctl.Text = "" Next ctl End Sub Private Sub cmdClearText_Click() ClearTextBoxes End Sub |