Okay, maybe I spoke a little too soon... The loop does exactly what's required, it just crashes the program right after. Could it be that it isn't stopping when it hits the blank cells?