Hello,
Is it possible to force an Excel Table to automatically expand based on the number of rows being added from an array?
Right now when I output the array, it's overwriting the data in the Totals Row, as well as the data that resides below the table.
The following code is what I was using to test the output into an empty sheet. However, when I modified it to add the new row and then output the array to that new row in column "A", it doesn't expand the table.
I realize now that this is the expected behavior, considering that if I use the drag method (lower right corner) it behaves the same way.
Perhaps someone has experience with outputting array data to Tables that need to be expanded… WITH data just below the Table?
Thank you and best regards,
Is it possible to force an Excel Table to automatically expand based on the number of rows being added from an array?
Right now when I output the array, it's overwriting the data in the Totals Row, as well as the data that resides below the table.
The following code is what I was using to test the output into an empty sheet. However, when I modified it to add the new row and then output the array to that new row in column "A", it doesn't expand the table.
VBA Code:
Sub WIP_Filter_New_Books()
' Declarations
Dim arrNewBooks, Student As String: Student = "Student007"
' Store 'New' Books into Array
arrNewBooks = Evaluate("SORT(CHOOSECOLS(FILTER(t_Books,t_Books[" & Student & "]=""n"",""""),1,2,4,5,6,7,9,10,11,12),2)")
' Output Array
Sheets("Sheet1").Range("A2").Resize(UBound(arrNewBooks), UBound(arrNewBooks, 2)) = arrNewBooks
End Sub
I realize now that this is the expected behavior, considering that if I use the drag method (lower right corner) it behaves the same way.
Perhaps someone has experience with outputting array data to Tables that need to be expanded… WITH data just below the Table?
Thank you and best regards,