Sub creationonglet()
Dim i As Integer
Dim onglet As Worksheet
For i = 1 To Range("A65536").End(xlUp).Row
'1er partie
If Not IsEmpty(Cells(i, 1)) Then
If Not exist_f(Cells(i, 1)) Then
Set onglet = Sheets.Add(After:=Sheets(Sheets.Count))
onglet.Name = Cells(i, 1).Value
Sheets("Input").Activate
ActiveSheet.Hyperlinks.Add Anchor:=Cells(i, 1), Address:="", SubAddress:= _
Cells(i, 1).Value & "!A1", TextToDisplay:=Cells(i, 1).Value
'2eme partie
Sheets("Source").Select
Cells.Select
Selection.Copy
Sheets(Cells(i, 1).Value).Select
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("A1").Select
End If
End If
Next
End Sub
Function exist_f(feuille)
For Each sh In Sheets
If sh.Name = feuille Then
exist_f = True
Exit Function
End If
Next
exist_f = False
End Function