将按钮插入Word文档

发布于 2024-07-12 13:28:20 字数 65 浏览 5 评论 0原文

是否可以在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 技术交流群。

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

发布评论

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

评论(2

夜唯美灬不弃 2024-07-19 13:28:20

您需要使用 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.

小梨窩很甜 2024-07-19 13:28:20

可以在 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.

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