你唯一需要做的是,将WORD的宏安全性设为低(工具/宏/宏安全性:),确定后重新退出并启动WORD。 以下代码供参考: '* +++++++++++++++++++++++++++++ '* Created By I Love You_Word!@ExcelHome 2005-3-1 14:01:54 '仅测试于System: Windows NT Word: 10.0 Language: 2052 '^The Code CopyIn [ThisDocument-ThisDocument]^' '* -----------------------------Sub Example() ActiveDocument.ActiveWindow.View.ShowHiddenText = _ Not ActiveDocument.ActiveWindow.View.ShowHiddenText End Sub '---------------------- Private Sub Document_Open() Options.ButtonFieldClicks = 1 ActiveWindow.View.ShowHiddenText = False ActiveWindow.View.ShowAll = False End Sub '----------------------这是文档中MACROBUTTON 域代码: 变形域代码为: { MACROBUTTON Example 团队建设 } 以下为附件:
vbyBOUxW.zip
(9.09 KB, 下载次数: 150)
[此贴子已经被konggs于2006-12-31 7:51:12编辑过] |