For each loop stops after 5 iterations

Hi,
I'm trying to create a list cell references. My BuildCellsList procedure stops after five iterations - the Notifier just shows the numbers 2 to 6.

I've got the Spreadsheets API working properly with the correct credentials.

Any help would be much appreciated.

Try this:

image