Bonjour
Un truc simple
Sub test()
Dim LaDate As Date
LaDate = CDate("27/02/2013")
If Month(LaDate + 1) <> Month(LaDate) Then
MsgBox "C'est la fin du mois"
End If
End Sub
Avec une fonction
Function FinDuMois(LaDate As Date) As Boolean
Application.Volatile
If Month(LaDate + 1) <> Month(LaDate) Then
FinDuMois = True
End If
End Function
Utilisation de la fonction
=SI(findumois(A1);"Oui";"Non")