在使用模板创建的文档中运行VBA宏 [英] Running VBA macros in documents created using template

查看:45
本文介绍了在使用模板创建的文档中运行VBA宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有启用了宏的模板(.dotm),其中有许多宏通常与使用模板中存储的自定义构造块添加和删除文档的某些部分有关.

I have macro-enabled templete (.dotm) wich has number of macros generally connected with adding and deleting parts of document using custom building blocks stored in the template.

当我在实际的模板文件上执行宏时,一切都会顺利进行.

When I execute macros at the actual template file everything works smooth.

但是,当我尝试在使用此模板创建的文档中执行它们时,宏会在运行特定功能(附加到复选框)后停止工作.

But when I try to execute them in documents created using this template macros stop working after one run of the particular function (attached to checkbox).

在某些情况下,将文档另存为.docx文件时,复选框也会变成图片.

Additionally in some cases checkboxes turn into pictures when saving documents as .docx files.

此文档可能有什么问题?

What could be wrong with this document?

推荐答案

该问题已通过重新创建问题复选框来解决.

The problem was solved by recreating problem checkbox.

这篇关于在使用模板创建的文档中运行VBA宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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