I have a form for data input with more than 200 textboxes, almost all of them are numeric
i usually use the following code to allow only for numbers input in a textbox
is it possible to apply this code for all of the textboxes so that i dont have to do it 200 timesCode:Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii < Asc("0") Or KeyAscii > Asc("9") Then KeyAscii = 0 End If End Sub