Sorry, there isn't. Application.CommandBars was deprecated over 15 years ago, and the Add-ins tab is a workaround for backward compatibility. You should be using RibbonUI to modify the ribbon with a Custom tab and adding your commands to that. https://learn.microsoft.com/en-us/visualstudio/vsto/walkthrough-creating-a-custom-tab-by-using-ribbon-xml?view=vs-2022&tabs=csharp
How to modiy an Add-In location to CustomTab (Word)
rcisest
20
Reputation points
When creating an Add-in with C# .NET with the followin code:
commandBar = Application.CommandBars["Standard"];
newButton = (Office.CommandBarButton)commandBar.Controls.Add(Office.MsoControlType.msoControlButton, missing, missing, missing, true);
The button added shows in the Add-In section from the ribbon.
I would like to know if there is any chance to change the position of the button from Add-ins to CustomName tab or any other of my choice?
In this case CustomName has been added with the default feature of creating new tabs that can be found in File -> Options -> Customize Ribbon
Any help provided would be extremely helpful, thanks!
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Microsoft 365 and Office | Word | For business | Windows
Microsoft 365 and Office | Word | For business | Windows
A family of Microsoft word processing software products for creating web, email, and print documents.
Developer technologies | .NET | Other
Developer technologies | .NET | Other
Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
Answer accepted by question author
-
John Korchok 224.5K Reputation points Volunteer Moderator2023-06-24T15:47:14.67+00:00