I’ve been working with an installation of Win 10/Office 2016 for several months, modifying add-in templates’ VBA projects. A couple days ago, when I click save (both in the VBA editor and the document) the SaveAs dialog box displays. This happens maybe 1 out of 3 Saves. Sometimes if type xxx in the document, and click the Save icon again (on QAT), the document saves without the SaveAs dialog box. Even when the SaveAs dialog box appears and I click Cancel, the template saves with the changes. I thought this might be template-specific (I found a post on line that mentioned the SaveAs loop relating to a corrupt document), but it happens with all template in the installation. Sometimes when I click the Save icon in VBE, a message tells me that Word cannot save because of a file permission issue. I have the Startup folder specified in FileLocations, and the folder has been added as a Trusted Location in Word. Again, for several months I have not had this problem…. nor do I have it in other Win 10/Office 2016 installations.
Can anyone shed any light on what might be the cause of this? I don’t know what else to check.
I was using DocumentsCustom Office Templates for my add-in templates, then I switched to c:program files (x86)Microsoft OfficeOffice 16Startup, in both cases trusting the location and specifying the folder as the Startup folder in FileOptionsAdvancedFile Locations. This issue doesn’t occur with every save. After make a minor modification (“xxx” in the document) I click Cancel on the SaveAs dialog box, I run the simple code:
Msgbox ActiveDocument.Saved
and the result is False. But if I close the template (without saving) and re-open the “xxx” is in the document. This is one of 4 Office 2016 installations that I’ve worked with, and I have not had this experience with any of the others.
Many thanks.