Always Define a Row Number variable as LONG instead of INTEGER, since there are 65536 rows in an Excel sheet which exceeds the size of an INTEGER variable.
Skip, [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering... "Is there really a DOG?"
Just as a sidebar, if you are ever setting a variable for the absolute location of a point in a Word document, always declare it as Long, not Integer - for the same reason Skip mentions. The position number jumps to larger than an integer WAAAAY faster than one would think.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.