Bonjour,
Et bonnes fêtes de fin d'année
Quelques codes :
Sub premier_et_dernier_lundis_de_l_annee()
Dim Annee
'Premier Lundi de l'année en cours
MsgBox Format(Evaluate("DATE(" & Year(Date) & ",1,8)-WEEKDAY(DATE(" & Year(Date) & ",1,6))"), "dddd dd mmmm yyyy")
'Dernier Lundi de l'année en cours
MsgBox Format(Evaluate("DATE(" & Year(Date) + 1 & ",1,1)-WEEKDAY(DATE(" & Year(Date) & ",12,31)-1)"), "dddd dd mmmm yyyy")
Do
Do
Annee = InputBox("Choisir l'Année")
Loop Until IsNumeric(Annee) Or Annee = ""
If Annee = "" Then Exit Sub
Loop Until Annee >= 1900
'Premier Lundi d'une année choisie
MsgBox Format(Evaluate("DATE(" & Annee & ",1,8)-WEEKDAY(DATE(" & Annee & ",1,6))"), "dddd dd mmmm yyyy")
'Dernier Lundi d'une année choisie
MsgBox Format(Evaluate("DATE(" & Annee + 1 & ",1,1)-WEEKDAY(DATE(" & Annee & ",12,31)-1)"), "dddd dd mmmm yyyy")
End Sub
Meilleurs vœux