I'm stumped with a small block of code which writes an array to a worksheet range. The array contains 172 rows of 2 columns consisting of dates and values. The resized range contains 172 rows of 2 columns.
The result of execution is that row 1 of the worksheet is empty, column A of the worksheet is empty, column B of the range worksheet contains the array dates, the array values column is lost, and the 172nd row in the array is lost. It looks like the output is being offset by 1 row and 1 column which puzzles me.
This is a summary of the code and the results displayed in the Intermediate window. I've been kicking on this for two days and need another set of eyes. Thank you.
Earl Adamy
1) displays Worksheet name
2) varrDivHistoryWithFuture - displays size and first last contents
3) rQSDivHistory (worksheet range) - displays size and first last contents
4) clears the worksheet
5) rQSDivHistory - resizes range to size of array
6) sets rQSDivHistory.value = varrDivHistoryWithFuture
7) rQSDivHistory - displays size and first last contents
Please Login or Register to view this content.
Bookmarks