You’re right, of course. There must have been some other variable amiss when I originally tested. All is well now. Thank you again for your help.
Thanks for chiming in. Are you saying that I shouldn’t use it at all in this scenario? Because it doesn’t seem to work without it.
If I move reset_rows() just inside the second loop, it appears to work.