I'm just starting to learn VBA arrays so please overlook any newbie mistakes.
I have read a workbook range into a non-static two-dimensional array (data type = variant).
After closing the original workbook, I am looping through this array to find contiguous "blocks" of data. (These blocks are determined by checking the first column. If the next row in the array has a different value to the previous, that is the end of that 'block'. I only mentioned this info as background - if it doesn't help, just ignore it. It is working).Please Login or Register to view this content.
I wish to create a new workbook and write values from the current 'block' of the array to the first sheet in the new workbook (starting from cell A7 in Sheet 1 and continuing to the end of the block). But I can't work out how to only write a specific section of the array to the worksheet. Anyone?
Extract of code below:
Please Login or Register to view this content.
Bookmarks