Word VBA“项目不可见"; [英] Word VBA "Project is unviewable"

查看:319
本文介绍了Word VBA“项目不可见";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Word 2007中显示模板吗?我创建了一个模板Experiments.dotm,并使用外接程序添加了该模板,但是当我尝试在其中创建模块时,收到错误消息:项目不可见"

Does anyone know how to make a template viewable in Word 2007? I created a template, Experiments.dotm, added it using Add-Ins, but when I try to create a module within it, get an error message: "Project is unviewable"

推荐答案

有关项目不可见"问题的解释,请参见

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.

总而言之,如果将VBA作为加载项加载,则无论何时要对其进行编辑,都必须先在Word中打开.dotm(文件...打开),然后才能尝试在VBA中对其进行访问编辑.

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.

这篇关于Word VBA“项目不可见";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆