Hi Dirk. Thanks for your time and trouble. I agree there are simpler ways to achieve this functionality, but if I don't get around this, I won't be able to produce the thing I'm really after. > Why is retMat on the right-hand side if you try to fill it? Makes no real sense.