Thanks for replying CountZero. Far as I can tell they are the same but I might not be checking in the right place. I right-click on the Excel icon and check properties/security. As an experiment I set everyone to full control but no difference, same error message. I think Perl is running as the IUSR account but I could be wrong there too. Anywhere else I should check permissions?