I'm trying to extend the existing range of all my tables by a 100 rows, when a button is pushed.
I came up with some simple code, but it's really slow and for some reason the isn't filling one of the rows with the formula the way it should.
I'm new at coding, so i'll be gratefull for any advice. Edit: I've added a picture of the formula after i run the code.
Sub ExtendRows()
Dim i As Long, j As Long, ws As Worksheet, oListRow As ListRow
Set ws = ActiveWorkbook.Worksheets("Holdbarhed")
Application.ScreenUpdating = False
For i = 1 To 100
For j = 1 To 10
Set oListRow = ws.ListObjects(j).ListRows.Add
Next j
Next i
Application.ScreenUpdating = True
End Sub


Application.Calculation = xlManual..... Your code .....Application.Calculation = xlAutomaticN100toN201that means the formulas are not the same as in the row above. If they were the same they should go fromN100toN101. Because they are actually not the same Excel cannot autofill them.