I have a userform with 70 textboxes and want make sure numerical data in entered by the user. I want the textbox_change sub to self refer to its name and sue the name in sub that porcessess the error with a message box. Is this doable?
Code: (# = a variable integer that is appended to end of "TextBox")
Private Sub Textbox#_change()
IF not isnumeric(Textbox#.value) then WrongDataType #
End Sub
Private Sub WrongDataType #
SendMsg("Please Enter Numerical Data", VBOKonly, "Error")
TextBox#.value = ""
end sub
A message that tells user to enter a number and then empty the text box.


Application.Caller.