Hello. My code below to fill a table (ChartTable1) with the contents of an array works flawlessly so long as there is more than one row of data being moved into the table. However, if the array only contains one row of data, then I receive a subscript out of range error when attempting to fill the table with the array contents.
The last line of code results in the error only when the array tries to fill the table with one row of data. Specifically, hovering over the error reveals UBound(v, 2) = subscript out of range.
As the array may contain both single or multiple rows of data, I need to revise the last line of code to handle both conditions without error. Any help is much appreciated!
Thanks!
Please Login or Register to view this content.
Bookmarks