Sub Nouveau_Bon()
Dim x$, c As Range
x = Format(Date, "yyyymm")
If IsError([Nom]) Then
ThisWorkbook.Names.Add "Nom", x & "001" 'nom défini
Else
If x = Left([Nom], 6) Then
ThisWorkbook.Names.Add "Nom", x & Format(Right([Nom], 3) + 1, "000")
Else
ThisWorkbook.Names.Add "Nom", x & "001"
End If
End If
Application.ScreenUpdating = False
With Sheets("Base")
.[C8] = [Nom]
.Copy After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Name = [Nom] 'renomme la feuille
With [T_Num_Bc] 'tableau structuré
Set c = IIf(.Cells(1) = "", .Cells(1), .Cells(.Rows.Count + 1, 1))
End With
c = [Nom]
c(1, 2) = Application.Max(.[J:J]) 'TOTAL
End With
c.Parent.Hyperlinks.Add c, "", c & "!A1", TextToDisplay:=c.Text 'lien hypertexte
Sheets("Tableau de bord").Activate
End Sub