Yes, the variable should be a Long. Row numbers extend beyond the range of Integer.