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

خطأ في اظهار بيانات الشيت في الليست بوكس


إذهب إلى أفضل إجابة Solved by Adnan2022,

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

السلام عليكم اهل الخبرة 

الملف المرفق هو بيانات للطلبة هي عند استدعاء البيانات الى الفورم في الليست بوكس لا تظهر وظهر رسالة خطاء في السطر Sheets(x).Activate

بيانات طلاب.xlsm

رابط هذا التعليق
شارك

In the code you have this line

x = ComboBox1.Value

So if you don't select any option from the ComboBox1, you will get the `x` variable equals to empty and this will cause an error

You can exit sub by adding this line

If x = "" Then MsgBox "Select Option First":Exit Sub

 

  • Like 3
رابط هذا التعليق
شارك

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.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information