Perfect, I hadn't defined the userform.

All working now, thanks again Norie