Sub ListeOnglets()
Dim C As Range
For Each C In Columns(1).SpecialCells(xlCellTypeConstants, 23)
If Not FeuilleExiste(C.Text) Then
Sheets.Add(after:=Sheets(Sheets.Count)).Name = C
Else
Application.DisplayAlerts = False
Sheets(C.Text).Delete
Application.DisplayAlerts = True
End If
Next
End Sub
Public Function FeuilleExiste(sNomFeuille As String) As Boolean
On Error GoTo Err_FeuilleExiste
FeuilleExiste = False
FeuilleExiste = Not ActiveWorkbook.Worksheets(sNomFeuille) Is Nothing
Err_FeuilleExiste:
End Function