بله چک کردم کد من ناقص بود
این کد اصلاح شده خدمت شما
کد:Private Sub TextBox5_Exit(ByVal Cancel As MSForms.ReturnBoolean) a = Split(TextBox5.Text, "/") If UBound(a) = 2 Then If Len(a(0)) <> 4 Or Len(a(1)) <> 2 Or Len(a(2)) <> 2 Then MsgBox "error" If IsNumeric(a(0)) = False Or IsNumeric(a(1)) = False Or IsNumeric(a(2)) = False Then MsgBox "error" Else MsgBox "error" End If End Sub
علاقه مندی ها (Bookmarks)