Why does this while loop give me an error?

Glad you got the custom macro working but now you should delete the delays you have outside the macro… they are unnecessary :slight_smile: