Thanks Björnke and Mark. It does work now. I shall perhaps reconsider my old school approach of several coding details like that one... In the old days, locking the screen did speed up scripts that needed lots of CPU times anyway... jbv