Thanks all for your help on this - sorry for the delay in posting an update. The code that didn't work was cut and paste from the earlier message in the thread so I don't see any reason to repost it here. Still glad to see everything was straightened around and really appreciate the help. It saved a LOT of manual work.

Regards.