Oh, yeah, if you can post the screenshot, I can probably cobble something up

.
EDIT: Another approach might also be to just scan the next N rows at the first hint of the two buttons, and then stopping if everything's okay, instead of finishing the complete loop and making a wild guesstimate at the end ^^.