Thank you for your help Steve. 2 little spaces, it doesn't take much to mess up a script. I am learning though. I am still getting error messages in XWD preview when I try to close the locked popups. Could it be because my computer has an older version of Internet Explorer? version 6. I usually use Chrome and sometimes Firefox so Explorer is rarely opened.