添加宏按钮以触发特定的宏
每当我在快速访问工具栏中添加自定义宏按钮时,它都是通用宏窗口调用按钮。我想要的是,如果我单击按钮,则应直接开始运行特定的宏。到目前为止,我要这样做了2-3个步骤。首先,我单击快速访问工具栏上的图标,另外一个小的下拉列表不必要地显示了此处所示(不确定为什么在此处出现添加ons,我从未添加)
再次在下拉列表中单击较大的宏图标,我获得了一个对话框,我必须从列表中选择宏。我不想经历所有这一切。一旦我单击该按钮,就应该启动一个特定的宏(我应该能够配置宏的名称)。我知道有一个可以触发特定宏的快捷方式,但我更喜欢按钮。
Whenever I add a custom Macro button to the Quick Access Toolbar , it is a generic Macro window invocation button. What I want is that if I click on the button, a specific Macro should directly start running. As of now there are 2-3 steps before I do that. First of all I click on the icon on the quick access toolbar , another small drop down shows up unnecessarily as shown here ( not sure why Add Ons is appearing here, I never added)
Secondly, if I click on the bigger Macros icon in the dropdown again , I get a dialog box where I have to choose macro from a list. I don't want to go through all this. As soon as I click on the button, a specific macro (I should be able to configure name of the macro) should start. I know there is a shortcut available for triggering a specific macro but I prefer a button.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不想手动配置QAT按钮,则可以考虑开发基于COM的加载项。参见演练:为Outlook创建第一个VSTO加载项以获取更多信息。
要自定义功能区UI,您可以使用VSTO提供的设计器,请参见演练:使用功能区设计师创建一个自定义标签。
If you don't want to configure QAT buttons manually you may consider developing a COM based add-in instead. See Walkthrough: Create your first VSTO Add-in for Outlook for more information.
To customize the ribbon UI you can use the designer provided by VSTO, see Walkthrough: Create a custom tab by using the Ribbon Designer.