To be fair, I did not create that topic, all credits should go to the original author.
Having said that, I ran the script as well and it is working as expected. Once you run the script, on the “Congratulations!” screen, what is the success rate?
Also, to make sure that the “QueryResult” variable is not empty, you could - instead of displaying a message, which will slow down the execution of the script - include the “Console.Write Message:” action. For example, use the following message at the end of each iteration to see if there any values for the first cell of each row :