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

عدد ايام الجمع بين تاريخين


hossam7

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

هذه دالة صغيرة في حجمها كبيرة في أدائها :

Function CountWkDay(ByVal Date1 As Long, _
                    ByVal Date2 As Long, _
                          WkDay As Byte) As Variant
  If Date1 <= Date2 Then
    Date1 = Date1 - 1
  Else
    Date2 = Date2 - 1
  End If
  
  Date1 = Fix((Date1 + (7 - WkDay)) / 7)
  Date2 = Fix((Date2 + (7 - WkDay)) / 7)
  CountWkDay = Abs(Date2 - Date1)
End Function

رابط المشاركة :

http://www.officena.net/ib/index.php?s=&am...dpost&p=656

WeekdayCount.rar

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

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