1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Sub Macro1()
Dim x As Integer, nf As Integer, nom As String
With Sheets("feuil1")
nf = Sheets("feuil1").Range("a65000").End(xlUp).Row
For x = 1 To nf
Sheets.Add After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).name = .Cells(x, 1).Value
nom = .Cells(x, 1).Value
.Hyperlinks.Add Anchor:=.Cells(x, 1), Address:="", SubAddress:= _
nom & "!A1", TextToDisplay:=nom
'admettons que tu mettes "retour" dans la cellule A1 de chaque feuille
Sheets(nom).Range("a1") = "RETOUR"
Sheets(nom).Hyperlinks.Add Anchor:=Sheets(nom).Range("a1"), Address:="", SubAddress:= _
"Feuil1!A1", TextToDisplay:="retour"
Next x
End With
End Sub |