在同一台计算机上更新 Word 文档时运行 .exe 文件
我不知道这是否可行,但我需要执行以下操作。 当我在电脑上对 Word 文档进行更改(保存它并且日期每次都会更改)时,我希望在同一台计算机上运行 .exe 文件。有什么方法或第三方软件可以实现这一点吗?
i dont know if this is possible, but i need to do the following.
When i make changes to a word document on my pc (save it and the date changes everytime), I want a .exe file on the same computer to run. Is there any way or third party software, with which i can achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在大多数情况下,最简单的方法可能是将下面的代码放入 VBA 模块中,无论是在 Word 的 Normal.dot 模板、另一个专用的全局模板中还是在特定文档中:
Probably the easiest way which will work under most circumstances is to put the code below inside a VBA module, either in Word's Normal.dot template, another dedicated global templated or in a specific document: