Thanks for the reply the code you posted worked great

JO