When I run my code every thing works ok, but it got error when the row number went up to 257 at the second red line. The error message is Run-time error '1004' Application-defined or object-defined error. I have value in cell A257 just like any other A cells. Nothing really funcy.
rw(1) = 512
rw(2) = 408
Worksheets(wSheet(1)) = "template1'
Worksheets(wSheet(2)) = "template2"
Any one can help me on this?
Thanks a million.
John
Here is the code:
Please Login or Register to view this content.
Bookmarks