Also, sorry md for not getting back to you on your suggestion. I came across an early version of this code this morning and have been messing with it ever since. Thanks though for the help.