将按钮插入Word文档
是否可以在Word文档中插入一个按钮,并在单击该按钮时作为宏调用。 如果您有任何类似的想法以及实现过程,请告诉我。
Is it possible to insert a button into a word document and call as macro on click of this button. Please let me know if you have any similar ideas and also the procedure to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要使用 VBA 来完成此操作,但它非常简单。
有一篇MS 知识库文章准确描述了您想要执行的操作。
You'll need to use VBA to do this, but it's pretty straight-forward.
There's an MS knowledge base article that describes exactly what you want to do.
可以在 Word 文档中插入命令按钮(以及一些其他控件,如单选按钮等)。
单击工具栏并启用 Visual basic。 您将获得所有控制框,选择命令按钮。 您可以将代码写入 VBA 脚本中。 这将在单击命令按钮时执行。
It is possible to insert a Command button (as well as some other contorl like radio button etc) in Word Document.
Click on the Toolbar and enable Visual basic. You will get all control boxes, Select the Command Button. You can wirte the code into in the VBA script. This will get executed on click of the Command Button.