Dear Robert I've finally caught up with your TYP posts and the routine now works perfectly here too. Thanks Paul