MS Outlook 2016 - 添加自定义功能区,它有 1 个按钮,单击时执行任务

MS Outlook 2016 - Add custom ribbon, that has 1 button and when clicked it executes a task

过去几天我一直在尝试各种教程,试图完成标题中的 objective。在我的一生中,我一直在碰壁。 return 的所有搜索结果都是 excel 个插件,或 outlook.com 个插件。

有人可以推荐概述整个过程的教程(网站、视频,(step-by-step 首选)吗?

我曾经使用宏,但可怕的 GPO 禁用了它,所以插件看起来是下一个最佳选择。

我只想在我的功能区上出现一个按钮,这样我就可以 select 一个 e-mail,单击该按钮,让奇迹发生。如果您有至少可以让自定义按钮显示在功能区上的示例代码,我很确定我可以弄清楚其余部分。

感谢任何帮助。感谢您阅读。 (如果你做到了这一点。)

由此link

In Outlook 2010 and Outlook 2013, things have been made a lot easier as it allows you to manually customize the Ribbon as well.

  1. Open the item window where you’d like to add the macro button to.

  2. Select the tab where you’d like to add the macro button to.

  3. Click the File button next to the Home tab and choose Options. Here, select the section “Customize Ribbon”.
    or
    Right click any tab and choose “Customize the Ribbon”. You’ll find the current tab already highlighted and selected.

  4. Create a New Group or even a New Tab to place your custom button in. You cannot add your button to an existing group. You can use the Rename… button to give your group and/or tab a nice name.

  5. From the dropdown list “Choose commands from:” select: Macros. The list below will now show you all your macros.
  6. Select the macro that you wish to create a button for and press the Add >> button.
  7. To modify the name and icon press the Modify… button.
  8. Close the Editor Options dialog to return to your item window and use your button.

VBA 宏不能用于自定义 Outlook 中的功能区。您需要为此开发一个 COM 插件。例如,它可以是基于 VSTO 的加载项。参见 Walkthrough: Creating Your First VSTO Add-In for Outlook

VSTO 提供了两种自定义功能区的主要方式 UI(又名 Fluent UI):

如你所见,VSTO 提供了一个设计器来更快地创建自定义 UI。您可以在以下系列文章中阅读有关 Fluent UI 的更多信息: