Thank you Ken I have this working I am out putting a lot of data to excel it's working well Thanks for your help Liam IRELAND liamlambert at mac.com