Belirli bir şarta göre textbox’dan çıkılamamasını sağlayan kod;
Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean) If Len(Me.TextBox2.Text) < 3 Then MsgBox "Firma Kodu 3 haneli olmak zorunda!" Cancel = True End If End Sub
Kolay gele…
Belirli bir şarta göre textbox’dan çıkılamamasını sağlayan kod;
Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean) If Len(Me.TextBox2.Text) < 3 Then MsgBox "Firma Kodu 3 haneli olmak zorunda!" Cancel = True End If End Sub
Kolay gele…
İlk Yorumu Siz Yapın