On 08/23/2008 09:58:25 PM, Bertram Felgenhauer wrote: [snip much useful advice] Many thanks, Bertram. I think I understand how it works now and I've got something that seems to do the trick. The repeating diagonally bit is particularly unexpected and could probably do with some explanation in the reference manual. Thanks again, Ali.