Hi Andrew,
(Hope the hedge feels better for it)
Just to clarify and a question
Are you always wanting to copy blocks of 10 rows where the rows are contiguous (i.e. eventually all the rows are copied), or do you start with rows which are already coloured green, say row 2, 5, 7, and you want to copy the 10 rows 1,3,4,6,8,9,10,11,12,14.
I suppose the question I'm asking is do you start with all rows uncoloured on sheet1?
If so it's considerably simpler just to select whole blocks of 10 without testing each individual row.
That being the case why do you want to copy first to sheet3, then to the form on sheet2? I'm assuming you want to print each batch of 10 rows or something like that. In which case why bother with sheet2 at all, why not print from sheet3 directly.
I'm assuming the ultimate requirement simply stated is to print blocks of 10 rows from sheet1, colouring them amber when that's been done. In which case the following simplified macro should do it. I've assumed that rows 1:10 on sheet 3 are preformatted green, hence there's no need for a VBA instruction to do this, which only slows things down.
Even easier of course would be to print directly from sheet1 without bothering withe either sheets 2 or 3
Incidentally your error message is because you are not altering the mycount2 variable within the loop, and you end up at A65536 with a .Offset row of 1 which XL can;t deal with.
If the rows you're wanting to deal with are not blocks of contiguous rows - see my earlier Q. then post back since the macro will need modifying.
Regards
Bookmarks