Thanks to those who replied with essentially the same answer that, indeed, was more elegant and accomplished the task in two lines of code rather than the five my solution used. Barry