开发者

How do I reset MS Word toolbar button state on new document

I have a request from a开发者_如何学Go 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?


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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜