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

اضافه الشهور في الكومبوبوكس


إذهب إلى أفضل إجابة Solved by الرائد77,

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

  • أفضل إجابة

image.png.3aaa9b268264bf175ef4a7a93317e49e.pngتفضل

Private Sub UserForm_Initialize()
Dim rMonth As Long
 For rMonth = 1 To 12
 Me.ComboBox1.AddItem Format(DateSerial(2020, rMonth, 1), "MMMM")
 Next rMonth
End Sub

 

monnth.xlsm

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

بعد اذن صديقي الرائد هذا الماكرو

وزيادة في اثراء الموضوع (كود من سطر واحد)

Option Explicit
Private Sub UserForm_Initialize()
  Me.ComboBox1.List = _
  Application.Transpose _
  ([index(text(date(1,row(1:12),1),"[$-801]mmmm"),)])
End Sub

أو اذا كنت تريده على الشيت


Sub fill_combo()
  Sheets("sheet1").OLEObjects("My_Combo").Object.List = _
  [index(text(date(1,row(1:12),1),"[$-801]mmmm"),)]
End Sub

الملف مرفق

 

 

 

 

Month_series_For_Userform.xlsm

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

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