Whoops -- sorry, Tim. I tried to modify my code to match yours (instead of copy/paste), and ended up with an extra setvar statement.
At any rate, now I have two routines that work, and I learned a few things too. (Like pay attention when somebody tells you how to fix your code. )
It's all good Kate. I was just giving Alan a hard time (started from another post at AUGI). As long as you learn something, then it is all worth it.