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

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

وعليكم السلام

Private Sub ComboBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
    Dim myDate As Date
    myDate = CDate(ComboBox1.Value)
    
    TextBox1.Value = Format(Day(myDate), "ddd")
    TextBox2.Value = MonthName(Month(myDate))
    TextBox3.Value = Year(myDate)
End Sub

 

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

منذ ساعه, ياسر خليل أبو البراء said:

وعليكم السلام


Private Sub ComboBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
    Dim myDate As Date
    myDate = CDate(ComboBox1.Value)
    
    TextBox1.Value = Format(Day(myDate), "ddd")
    TextBox2.Value = MonthName(Month(myDate))
    TextBox3.Value = Year(myDate)
End Sub

 

شكرا ليك  اخى واستاذي الغالي زادك الله علما مما تنفع به الناس وجزاك الله كل خير

لو ممكن 

تصحيح هذا  السطر علما انه ملوش علاقه في هذا  الكود عباره عن رسالة تحزير بتتظهر في كود تانى داخل الكود ملونه باللون الاحمر  وبيدينى خطا عند تطبيق الكود

msg = "هل انت متأكد انك ادخلت المعلومات الصحيحه علما انه لا يمكن تعديلها لاحقا؟", 16, "تحذير"
 

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

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