Thanks so much, that's working great. I didn't know about On Error.