I have to do a calculation on a 100.00 lines, I have to do a loop and declare the variables. But it is impossible to turn the formula to the end, only the first line is filled.
'variable declaration
Dim ls As Worksheet
Set ls = ThisWorkbook.Worksheets("BASE2")
Dim Lrow As Long
Lrow = ls.Cells(ls.Rows.Count, "A").End(xlUp).Row
'calculation
ls.Range("I2:I" & Lrow).FormulaR1C1 = "=TRIM(LEFT(RC[-6],10))"
Range("I1").Select
ActiveCell.FormulaR1C1 = "Article sans désignation"
Columns("I:I").ColumnWidth = 20.71
I would like to turn this formula down to the bottom of the 95,000 lines (which will be variable from one time to the next, that's why I made a loop)