Excel VBA runtime error 1004 when reading Range addresses of multiple files -
Excel VBA runtime error 1004 when reading Range addresses of multiple files -
i have read several other posts related error, still can't figure out what's wrong macro.
my macro loops through 1000 files in 1 folder, finding keywords , extracting columns below.
it until, after checking aroun 250 files, 1 of counter variables hits number 66,593.
lastcell= cells(i + rowscopied - 1, 1).address(xla1)
lastcell id string type, lastly value $a$66592 long type, lastly value 66,593 rowscopied long type, lastly value 22.
i tried changing varianle types double, , variant, problem persists. suggestions? in advance.
excel vba excel-vba
Comments
Post a Comment