Shg, thanks so much for catching that error!
I'd only tested it on a blank sheet with values in those two cells.
Didn't even notice the code referenced the entire range.