Dim cel As Range, fm As Date, dt As Date, chemin$, nom$, temp$
Sub Cree_Feuilles()
Application.ScreenUpdating = False
With Sheets("1")
Set cel = .Range("b1")
fm = Format(DateSerial(Year(cel), Month(cel) + 1, 0), "dd")
temp = Format(cel, "mmmm")
End With
For i = 2 To fm
cel = cel + 1
Sheets.Add after:=Sheets(Sheets.Count)
ActiveSheet.Name = Format(cel, "d")
Next i
Call Saved
End Sub
Sub Saved()
Application.ScreenUpdating = False
With ActiveWorkbook.Sheets("1")
Set cel = .Range("b1")
End With
temp = Format(cel, "mmmm")
chemin = ThisWorkbook.Path & "\Classeurs 2018\" 'À ADAPTER
nom = WorksheetFunction.Proper(temp)
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=chemin & nom & ".xlsx", FileFormat:=xlOpenXMLWorkbook
End Sub