Word VBA “Project is unviewable”

回眸只為那壹抹淺笑 提交于 2019-12-05 03:24:24

The explanation for the "Project is unviewable" problem can be found here:

It is important to differentiate between opening an add-in file (for example, by clicking File and then clicking Open) and loading an add-in (for example, by using the Add-Ins button on the Developer tab). Open a file when you want to edit it and test it. Load the file as an add-in when you want to use it.

In summary, if you load VBA as an add-in, then any time you want to edit it, you have to open the .dotm in Word (File... Open) before you try to access it in the VBA editor.

Make sure you are adding the template using the "Document Template" button on the developer tab, and that you specify the template under "Document Template" (i.e. replace Normal.dot with your custom template). If you instead add the template tot he "Global templates and add-ins" section, you will receive the "Project is unviewable" error when trying to expand it in the VBA window.

This is often caused by locking the project in a newer version of excel than you are trying to unlock it.

See MS support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!