Function MoisComplets(ByVal D1 As Date, ByVal D2 As Date) As Long
If Day(D1) = 1 Then D1 = D1 - 1
If Day(D2 + 1) = 1 Then D2 = D2 + 1
MoisComplets = 12 * Year(D2) + Month(D2) - 12 * Year(D1) - Month(D1) - 1
If MoisComplets < 0 Then MoisComplets = 0
End Function