Wow! Thanks a lot! You just saved my weekend. I was about to post to let you know that I had fixed the position horizontally, but that it didn't work vertically.

But your code works in all direction!