VBA Excel - Working with multiple textboxes with the same code
问题 So I'm new to this area. I just want to ask if how can I minimize the use of the code below since I do have 13 textboxes with the same code. Is there a short way to do this? Here's the UserForm that I'm using -> Here's the code Private Sub tb_mtb_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If Not IsNumeric(tb_mtb.Value) Then MsgBox "Only numbers allowed!", vbOKOnly + vbCritical, "Title" tb_mtb.Value = "" End If End Sub Private Sub tb_fil_KeyUp(ByVal KeyCode As