Thank you sjeevan I spent quite a while looking for this little code. It was very helpful