Thanks again for your help, I think I will try it on a macro first. Deserves a try don't you think. Failing that a plc.
spent the last 4 or 5 nights trying to get my head round the macros, safe to say my head is fried.
cheers