Worked like a charm...Many thanks Mike. Quite a long code....took a long time to understand... appreciate your hard work behind this.