TextBox Length or Size limit Example


If Len(txtQuarterF.Value) <> 1 Or Len(txtQuarterT.Value) <> 1 Or Len(txtYearF.Value) <> 4 Or Len(txtYearT.Value) <> 4 Then
    MsgBox "Please enter 1 digit for Quarter and 4 digits or Years"
End If