Thanks, Bill. Your solution to my scanning problem with the fifth line was extremely elegant. As you've probably guessed I wrestled with this problem for some time without finding a solution - once again, thanks. It's nice to know that somebody not only reads what one writes, but also gives the content some thought. Cheers Bob