I have tried and looked everywhere. Cannot figure this out. I have a 1 row table with 7 columns and I am reading the values into an array.
Then I want to add a row at some point in my code to that array, while preserving the old values from the array. Here is the code:
Dim arr As Variant
arr = Worksheets(worksheet).ListObjects(table).DataBodyRange
This "arr" is now a 2d array, with 1 row and 7 columns and it loads the data fine.
Later on in my code I want to add a row to this array so I try this:
ReDim Preserve arr(1 To 2, 1 To 7) As Variant
Gives me a "subscript out of range" error.
How do add a row to this type of array while preserving the other values in it?
Thanks all. This is driving me crazy.