How to Add New Buttons to MS Office Ribbon – Guide
A ribbon is a graphical control element in the form of a series of toolbars arranged on various tabs in the computer interface design. A large, tabbed toolbars loaded with graphics buttons and other graphical control components, organized by utility, are typical of the structure of a ribbon. Using tabs to reveal separate sets of controls on such strips eliminates the need for multiple parallel toolbars. Tabs that are displayed only when the user requires them are known as contextual tabs. When a user chooses an image from a document in a word processor, for example, a tab related to the image can be opened, allowing the user to interact with that image.
When designing a VSTO (Visual Studio Tools for Office) add-in, you may want to add a new button to an existing ribbon tab for Office documents. The ways to do this are described in this article.
Change the Ribbon Control’s Office ID to the name of the existing Tab Control to add a button to an existing tab of an Office program. This page contains the entire list of standard Office control names.
How to add new Buttons for MS Office ribbon
In the New Project dialog, enter a name for your project and click OK. In the Add-Ins folder, select the VSTO Add-In project you created in step 2. Click on the OK button to close the Add-Ins folder and open your project. In the Project Settings dialog, select the following: Target Platform: Windows Target Version: 10.0.14393.0 (x64) Click on OK to close the Project Settings dialog and open your VSTO Add-In project in Visual Studio 2015.
The Office/SharePoint VSTO Add-ins for Visual C# provide a way to add features and functionality to your Office and SharePoint applications.
The project name is “Mystery Project.”
In the New Item dialog, enter a new project name. Click the OK button to create the new project.
Ribbon (Visual Designer)
When the ribbon menu designer is open, expand the “ControId” property.
To place a button on a tab, enter the ControlName of the tab. The complete list of standard Office control names can be found at the link. ..
In Word 2016, the control name for the Home tab in the ribbon is “TabHome.”
Add a button to the Ribbon and give it a label. The tab name has changed from TabAddIns to TabHome when the ControlId is set in the previous step to “TabHome”.
Deploy the solution and find the new button inside the Home Office application tab.
Final note
This guide will show you how to add new buttons to the MS Office Ribbon. If you have any query about this article, please ask us. Additionally, please share your love by sharing this article with your friends.