اذهب الي المحتوي
أوفيسنا

استفسار وطلب تعديل على كود " فاصل زمنى بين الاومر"


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

السلام عليكم ورحمه الله وبركاته

الكود ده بيعمل فاصل زمنى بين الاوامر لكن فيه مشكلة ان لو اتضاف كزر مش بيتنفذ ... بيتنفذ بس اول امر وبعد كده كل الاوامر مرة واحدة

Label2.Visible = True
Application.Wait (Now + TimeValue("0:00:02"))
Label3.Visible = True

يعنى لو اتضاف بالطريقة دى يشتغل تمام

Private Sub UserForm_Click()
CommandButton1.Enabled = False
Label2.Visible = True
Application.Wait (Now + TimeValue("0:00:02"))
Label3.Visible = True
End sub

لكن لو اتضاف كزر مش بيتنفذ بطريقة صحيحة

Private Sub CommandButton1_Click()
CommandButton1.Enabled = False
Label2.Visible = True
Application.Wait (Now + TimeValue("0:00:02"))
Label3.Visible = True
End Sub

 

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

2 ساعات مضت, shreif mohamed said:

  الكود يعمل  بصورة طبيعية هل يمكن اضافة الملف الخاص بك  حتي يتثني لنا المساعدة 

 

الكود بيعمل لكن فى حالة عمله كـ " زر Button "  لا يعمل

Private Sub CommandButton1_Click()
CommandButton1.Enabled = False
Label2.Visible = True
Application.Wait (Now + TimeValue("0:00:02"))
Label3.Visible = True
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.

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

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

Important Information