I put the variables into the message-box and copied them to my code from there... So sorry, the variables are correct, got no idea why this doesn't work. But because there is nu user-interaction required to set these parameters, I just entered them in the code :-) Met vriendelijke groeten, Ton Kuypers