首页 > 解决方案 > EXCEL RIBBON Hide Individual Tabs

问题描述

Looking for code to Hide Individual Ribbon tabs. Not the entire ribbon. Seeking how to get to the Ribbon Tab collection using C# so I can process the object collection and hide certain tabs while leaving others visible.

标签: c#exceltabsribbonvisible

解决方案


You should have a Variable in Globals, there you can access your group and set the visibility. Try something like

Globals.Ribbons.Ribbon1.group1.Visible = false;

to make certain groups invisible for example.

But with a bit of research you could have found that by yourself ;)


推荐阅读