Brilliant Andrei - many thanks for your help on this! I'm sure you have better things to do, so your time and trouble is much appreciated. It now works perfectly...