اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

الردود الموصى بها

قام بنشر

الاخ ابوحنين

الاخ عباد

بارك الله فيكم

وكنى اريد عند الكتابه فى التيكست بوكس لارقام غير موجوده فى النطاق

تظهر الرساله

ثم لا يتم الخروج من التيكست وتظل هى النشطه

قام بنشر (معدل)

السلام عليكم

تفضل


Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)

If WorksheetFunction.CountIf([A1:A20], TextBox1) = 0 Then

	    MsgBox "القيمة المدخلة غير موجودة في النطاق", vbExclamation, "تنبية !"

	    TextBox1.SelStart = 0

	    TextBox1.SelLength = Len(TextBox1.Text)

	    TextBox1 = ""

	    Cancel = True

    Else

    Exit Sub

End If

End Sub

تم تعديل بواسطه عباد

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • اضف...

Important Information