Thank you! That is a very useful function, just what I need. Thanks for all your help.