1 2 3 4 5 6 7 8
| '---------------Resize the TM1 table to fit the new amount of data---------------------------------------------------------------------------------------
Dim Bottom As Long, Deb_Tab_TM1 As String, Col_Fin_TM1 as String
With Worksheets("dataTM1")
Deb_Tab_TM1 = Split(.ListObjects("tbTM1").Range.Address, ":$")(0) 'Adresse de la 1ère cellule du tableau
Col_Fin_TM1 = Split(.ListObjects("tbTM1").Range.Address, "$")(3) ' récupère la lettre de la dernière colonne
Bottom = .Range("A" & Rows.Count).End(xlUp).Row 'dernière ligne
.ListObjects("tbTM1").Resize Range(Deb_Tab_TM1 & ":" & Col_Fin_TM1 & Bottom) 'on redimensione
End with |