Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying to select Home tab programmatically.

What I have tried:

private IRibbonUI ribbon;
Ribbon ribbon = new Ribbon();
ribbon.ribbon.ActivateTabMso("TabHome");
Posted
Updated 17-Jun-19 2:08am
Comments
[no name] 29-Apr-19 0:58am    
thank you
[EDIT: Spam links removed]
Maciej Los 29-Apr-19 3:26am    
Is this a question or solution?
dirtyshooter 29-Apr-19 4:32am    
question.

1 solution

As far as i remember, it should be something like this:
C#
this.ribbon.RibbonUI.ActivateTabMso("TabHome");


More:Office Activating Excel Ribbon Tab sample in C#, VB.NET for Visual Studio 2010[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900