est il possible de calculer en jours calendaires (c'est a dire ne pas prendre en compte les 31) ?
Merci d'avance
JB
Je ne suis pas certain d'avoir compris la question:
Private Sub CommandButton1_Click() début = CVDate(Me.TextBox1) fin = CVDate(Me.TextBox2) For d = début To fin If Day(d) = 31 Then n = n + 1 Next d Me.TextBox3 = fin - début - n End Sub
Je ne suis pas certain d'avoir compris la question:
Private Sub CommandButton1_Click()
début = CVDate(Me.TextBox1)
fin = CVDate(Me.TextBox2)
For d = début To fin
If Day(d) = 31 Then n = n + 1
Next d
Me.TextBox3 = fin - début - n
End Sub
Je ne suis pas certain d'avoir compris la question:
Private Sub CommandButton1_Click() début = CVDate(Me.TextBox1) fin = CVDate(Me.TextBox2) For d = début To fin If Day(d) = 31 Then n = n + 1 Next d Me.TextBox3 = fin - début - n End Sub