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

طلب مساعدة طريقة عمل مفكرة مكتبية


abdellahgh

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

جرب هذا الماكرو

Option Explicit

Sub Calendar()
Dim I As Byte
Dim x As Double
Dim y As Byte
Dim m As Byte: m = 2
Application.ScreenUpdating = False
Range("my_rg").ClearContents
 For I = 1 To 12
  x = DateSerial([p2], I, 1)
  y = Day(Application.EoMonth(x, 0))
  Cells(7, m) = x: Cells(7, m).AutoFill Destination:=Range(Cells(7, m), Cells(y + 6, m)), Type:=xlFillDefault
  m = m + 3
 Next
 Application.ScreenUpdating = True
End Sub

الملف مرفق

My_Calendar.xlsm

  • Like 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