Thanks. It worked but it returns a value of 0 in the dos box. Can I get rid of that? Thanks for your help. I'm new at this.