如何重置新文档上的 MS Word 工具栏按钮状态

发布于 2024-09-25 09:35:24 字数 354 浏览 1 评论 0原文

我收到一个用户组的请求,要求实现以下内容:

  1. 引入一组模板, 页面上有一些隐藏文本 说明
  2. 显示隐藏 第一次查看文档时显示文本 使用模板创建
  3. 引入自定义按钮进行切换 隐藏文本显示

1) 模板现已创建。手动切换隐藏文本有效。
2) 应该使用 Auto_New 设置隐藏文本的状态来处理

3) 令我悲伤。当我在模板中时,我有切换隐藏文本和自定义按钮状态的代码,当我在 1) 中涵盖的模板中时,自动新建代码很好,但是按钮的状态也需要是当我在其他模板中时重置。

我需要的是在创建任何文档时根据隐藏文本设置来设置按钮的状态。

有什么想法吗?

I have a request from a User Group to implement the following:

  1. Introduce a set of templates that
    have some Hidden Text on the page as
    instructions
  2. Display the Hidden
    Text the first time a document is
    created using the templates
  3. Introduce a custom button to toggle
    the Hidden Text display

1) The templates are now created. Manual toggle of Hidden Text works.
2) should be dealt with using Auto_New to set the state of Hidden Text

3) is causing me grief. I have the code that toggles the Hidden Text and the State of the custom button when I am in the templates and the Auto New code is fine when I am in the templates covered in 1), however the state of the button also needs to be reset when I am in other templates.

What I need is something to set the status of the button depending on the Hidden Text setting whenever any document is created.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

待天淡蓝洁白时 2024-10-02 09:35:24

我在 Normal 下创建了一个宏,根据 HiddenText 的状态设置按钮。

不完全是我想要的,因为更改窗口视图时按钮可能位于错误的位置,但它已经足够好了......

I've created a macro under Normal that sets the button according to the status of HiddenText.

Not exactly what I want, in that the button may be in the wrong position when changing window views, but it's good enough...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文