I have a table that I copy its data to an array, then I want to add this array back to the last row of the table but to exclude the headers row of the table, everything works but the headers table is still being copied to the array.
Sub readingarray()
Dim table_list_object As ListObject
Dim table_object_row As ListRow
Dim arr As Variant
Dim tbl As Range
Set tbl = shdata.Range("j17").CurrentRegion
tbl.Offset(1, 0).Resize(tbl.Rows.Count - 1, tbl.Columns.Count).Select
arr = tbl
Set table_list_object = shdata.ListObjects("LeaveTracker8")
Set table_object_row = table_list_object.ListRows.Add
Dim rowcount As Long, columncount As Long
rowcount = UBound(arr, 1)
columncount = UBound(arr, 2)
table_object_row.Range(1, 1).Resize(rowcount, columncount).Value = arr
End Sub