Sub test_2()
Dim li As Integer
Dim col As Integer
Sheets.Add After:=Sheets(Sheets.Count)
Range("A1").Value = "catégorie"
Range("B1").Value = "référence PFT"
Range("C1").Value = "ref. article"
Range("D1").Value = "désignation 1"
Range("E1").Value = "designation 2"
Range("F1").Value = "désignation 3"
Range("G1").Value = "famille technique"
Range("H1").Value = "clé de recherche"
Range("I1").Value = "statistique 0"
Range("J1").Value = "statistique 1"
Range("K1").Value = "longueur"
Range("L1").Value = "largeur"
Range("M1").Value = "hauteur"
Range("N1").Value = "rangement"
Range("O1").Value = "nb pose"
li = 2
With Sheets("Feuil1")
For col = 2 To Sheets("Feuil1").Cells(4, Application.Columns.Count).End(xlToLeft).Column
Cells(li, 2).Formula = "=Feuil1!" & Left(Cells(1, col).Address, Len(Cells(1, col).Address) - 1) & "1"
Cells(li, 3).Formula = "=Feuil1!" & Left(Cells(1, col).Address, Len(Cells(1, col).Address) - 1) & "11"
Cells(li, 4).Formula = "=Feuil1!A11"
Cells(li, 8).Formula = "=Feuil1!" & Left(Cells(1, col).Address, Len(Cells(1, col).Address) - 1) & "3"
Cells(li, 11).Formula = "=Feuil1!" & Left(Cells(1, col).Address, Len(Cells(1, col).Address) - 1) & "4"
Cells(li, 12).Formula = "=Feuil1!" & Left(Cells(1, col).Address, Len(Cells(1, col).Address) - 1) & "5"
Cells(li, 13).Formula = "=Feuil1!" & Left(Cells(1, col).Address, Len(Cells(1, col).Address) - 1) & "6"
Cells(li, 14).Formula = "=Feuil1!" & Left(Cells(1, col).Address, Len(Cells(1, col).Address) - 1) & "7"
li = li + 15
Next col
ActiveSheet.Range("O2").Select
End With
End Sub