Salut Laloute,
Salut LouReed,
petit délire VBA... car, moi, les formules, hein?
Un double-clic en [A1] = année +1
Un clic-droit en [A1] = année -1
For x = LBound(tSplit) To UBound(tSplit)
If tSplit(x) = rCel.Value Then
iFlag = Choose(x + 1, 31, IIf([A1] Mod 4 = 0, 29, 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
For y = iFlag To 1 Step -1
Cells(6 + y, 1) = Format(DateSerial([A1], x + 1, y), "[$-40c]dddd")
Rows(6 + y).RowHeight = 22
Cells(6 + y, 2) = y
If Weekday(DateSerial([A1], x + 1, y), vbMonday) = 1 And y > 1 Then _
Cells(6 + y, 1).EntireRow.Insert shift:=xlDown: _
Rows(6 + y).RowHeight = 10
Next
iFlag = 7
For y = 7 To Range("A" & Rows.Count).End(xlUp).Row + 1
If Cells(y, 1) = "" Then _
Range("A" & iFlag & ":L" & y - 1).Borders.LineStyle = xlContinuous: _
Union(Range("F" & iFlag & ":F" & y - 1), Range("J" & iFlag & ":J" & y - 1)).Interior.Color = RGB(0, 0, 0): _
iFlag = y + 1
Next
Exit For
End If
Next
A+