Sub Creer_jours()
Dim w As Worksheet, i&, lig&
Application.ScreenUpdating = False
Application.DisplayAlerts = False
With Sheets("Sheet1")
For Each w In Worksheets
If w.Name <> .Name Then w.Delete
Next w
For i = 1 To .Cells.SpecialCells(xlCellTypeLastCell).Row
If .Cells(i, 2).Text Like "##/##/####" Then
Set w = Sheets.Add(After:=Sheets(Sheets.Count))
ActiveWindow.DisplayGridlines = False 'masque le quadrillage
w.Name = Format(CDate(.Cells(i, 2)), "dd-mm-yy")
.Columns("B:AG").Copy w.Cells(1): w.Cells.Clear 'copie les largeurs des colonnes
.Range("B12:AG12").Copy w.Cells(1)
lig = 2
ElseIf .Cells(i, 2).Text Like "##:##" Then
.Range("B" & i & ":AG" & i).Copy w.Cells(lig, 1)
lig = lig + 1
End If
Next i
.Activate
End With
End Sub