Belirli Bir Şarta Göre Kullanıcıyı Textbox’dan Çıkarmamak

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

Paylaşmayı unutmayın!
0 0 votes
Article Rating
Subscribe
Bildir
guest
0 Yorum
Inline Feedbacks
View all comments