Sorry, ignore the last part of my previous message, didn't read the original post very well. Everybody knows about the If then else end stuff, sorry if I insulted anyone's intelligence. PK