Sub Inserer()
If WorksheetFunction.CountA([C2:C16]) = 0 Then
Nom = [B20] & " " & [C20]
If FeuilleExiste(Nom) Then
MsgBox "Ce nom de feuille exite déjà."
Else
Sheets.Add(after:=Sheets(Sheets.Count)).Name = Nom
[A1:A16] = Sheets("Feuil1").[A1:A16].Value
[A1:A16].Borders.LineStyle = xlThin
Columns.AutoFit
End If
Else
MsgBox "Plage non vide."
End If
End Sub
Function FeuilleExiste(Nom) As Boolean
On Error Resume Next
FeuilleExiste = Sheets(Nom).Name <> ""
On Error GoTo 0
End Function