Glad we could help - don't feel bad about spending much time - that was a very tricky piece of code, even for us old-timers.