Bonjour Celtik, ThauThème, le forum,
Un essai....
Sub TEST()
Dim dercol As Integer
Dim JourFinMois As Date, maDate As Date
With Sheets("Feuil2")
.Range("D3") = Sheets("Feuil1").Range("A1"): .Range("D3").NumberFormat = "dd/mm/yyyy hh:mm"
.Range("D4") = .Range("D3") + 3 / 24: .Range("D4").NumberFormat = "dd/mm/yyyy hh:mm"
dercol = .Cells(3, Cells.Columns.Count).End(xlToLeft).Column
JourFinMois = DateSerial(Year(.Cells(3, 4)), Month(.Cells(3, 4)) + 1, 1) - 1
maDate = .Cells(3, dercol)
While maDate < JourFinMois
.Cells(3, dercol + 1) = .Cells(3, dercol) + 1: .Cells(3, dercol + 1).NumberFormat = "dd/mm/yyyy hh:mm"
.Cells(4, dercol + 1) = .Cells(4, dercol) + 1: .Cells(4, dercol + 1).NumberFormat = "dd/mm/yyyy hh:mm"
maDate = .Cells(3, dercol)
dercol = dercol + 1
Wend
End With
End Sub
CTRL + e pour exécuter la macro
Cordialement,