Bonjour,
J'extrais 2 date grace à une macro, mais je suis incapable de calculer la différence (le nombre de jour) entre ces deux date.
pouvez vous m'aide ?
voici ma macro
Sub lkjhlkjhljkh()
Dim date1 As String, inbox1 As String
date1 = "01/01/2012"
inbox1 = "05/01/2012"
If date1 - inbox1 < 4 Then
type1 = "0 A 3"
If date1 - inbox1 < 7 Then
type1 = "4 A 7"
If date1 - inbox1 > 7 Then
type1 = "7 ET PLUS"
End If
End If
End If
End Sub
Merci d'avance
J'extrais 2 date grace à une macro, mais je suis incapable de calculer la différence (le nombre de jour) entre ces deux date.
pouvez vous m'aide ?
voici ma macro
Sub lkjhlkjhljkh()
Dim date1 As String, inbox1 As String
date1 = "01/01/2012"
inbox1 = "05/01/2012"
If date1 - inbox1 < 4 Then
type1 = "0 A 3"
If date1 - inbox1 < 7 Then
type1 = "4 A 7"
If date1 - inbox1 > 7 Then
type1 = "7 ET PLUS"
End If
End If
End If
End Sub
Merci d'avance