Guys, all works totally fine when i activate the code with an on click event on a form rather than a code module. I'll stick with this method rather than getting hung up. It just seemed smarter to use a 'standard' module. But too difficult for me. Thanks to all.