Sub Creation()
Dim NbJ As Long, i As Long, Mois, annee, LaDate
Efface
Mois = InputBox("Saisir numéro du mois (1 à 12)")
annee = InputBox("Saisir une année")
On Error Resume Next
LaDate = CDate("1/" & Mois & "/" & annee)
Err.Clear
If Not IsDate(LaDate) Then
MsgBox "Mois et/ou année incorrect => ECHEC"
Exit Sub
End If
NbJ = Day(WorksheetFunction.EoMonth(LaDate, 0))
Application.ScreenUpdating = 0
For i = 1 To NbJ
Sheets("Modèle").Copy After:=Sheets(i)
ActiveSheet.Name = Format(DateValue(i & "/" & Format(LaDate, "mm/yy")), "dd_mm_yyyy")
ActiveSheet.Range("A1") = Format(DateValue(i & "/" & Format(LaDate, "mm/yy")), "dddd dd mmmm yyyy")
ActiveSheet.Shapes("Logo_Code").Delete
Next i
Sheets("Modèle").Activate
End Sub