Sub Ajouter_Feuilles()
Dim i As Long, Ws As Worksheet
Application.ScreenUpdating = False
Set Ws = Sheets("Modèle")
With Ws
For i = 7 To Ws.Cells(.Rows.Count, "m").End(xlUp).Row
If Not FeuilleExiste(.Range("m" & i).Value) Then
.Copy After:=Sheets(Sheets.Count)
With ActiveSheet
.Name = .Range("M" & i)
.Range("C1") = Ws.Cells(i, "m") ' Met le nom dans la cellule C1
.Range("C2") = Ws.Cells(i, "n") ' Met le prénom dans la cellule C2
.Range("C3") = Ws.Cells(5, "L") ' Met la section dans la cellule C3
End With
End If
Sheets(.Range("m" & i).Value).Move After:=Sheets(Sheets.Count)
Next i
.Select
End With
End Sub