Customizing the Ribbon
July 15, 2021 - by Bill Jelen
Problem: I want to customize the ribbon.
Strategy: Ribbon customizations in Excel are weak compared with the customization capabilities in Excel 2003. You might feel like the Pivot Table command belongs on the Data tab rather than on the Insert tab. You can add a new group to the Data tab to hold the pivot table icons. First, look at the ribbon and decide where you want the new group to appear. Perhaps a good location would be between the Sort & Filter group and the Data Tools group.
Right-click anywhere on the ribbon and choose Customize the Ribbon.
The Customize dialog contains two large list boxes. You will first be working with the list box on the right side of the screen. Expand the plus sign next to the Data entry to see the groups on the Data tab. If you want a new group to appear after the Sort & Filter group, click Sort & Filter, and then click the New Group button below the list box.
Excel adds a new group with the name of New Group (Custom). Click the Rename button below the list box.
Type a new name in the Rename dialog. Also, choose an icon. This icon will appear only when the Excel window gets small enough to force the group into a dropdown, as shown later in Figure 18.
Note: The 180 icons available are a far cry from the 4096 icons available in Excel 2003. As I pointed out at the beginning of this chapter, toolbar customization took a giant step backward after Excel 2003.
After renaming the new group in the list box on the right side, it is time to turn your attention to the list box on the left side. It starts out showing Popular Commands. Use the dropdown above the left list box to change from Popular Commands to All Commands.
Scroll down to the commands starting with Pivot. You will see a confusing array of commands. Click the first PivotTable icon, and click the Add button in the center of the screen. Click the second PivotChart icon, and then click the Add button. Click PivotTable and PivotChart Wizard, and then click the Add button.
It is sometimes difficult to figure out which icons you want. There are two icons that say PivotTable. The first icon is simply an icon. The second icon is an icon with a rightward-facing triangle on the right side of the list box. That triangle indicates that the second icon is actually a dropdown that leads to more choices. That second PivotTable dropdown icon is the icon at the bottom half of the Insert tab’s Pivot Table group. It opens to enable you to choose between PivotTable and PivotChart. You might prefer to use that icon instead.
Two PivotChart icons are available. Hover over each icon to see that the first one is the PivotChart icon available on the PivotTable Tools Options tab. You will also see that the second icon is the one on the Insert tab. The first PivotChart icon will be grayed out unless you are in a pivot table. The second PivotChart icon is the one that is used to create a new pivot chart from a data set.
This figure shows the resulting group on the Data tab.
If you are wondering why you had to choose an icon back in Figure 14, it is for people who have the Excel window resized to a narrower width. If you make your Excel window narrower, the custom group will eventually get squished down to a single dropdown. Your icon will appear on that dropdown, as shown here.
Note back in Figure 10 that the Sort icon appears as a large icon with a caption and that the AZ and ZA icons appear as small icons without a caption. How can you specify that the pivot table icon should be large and the pivot chart and wizard icons should be small? You can’t. At least not with the Excel interface.
If you want to start writing some XML and VBA, you can gain control over the size and images used in the ribbon. For an excellent book on this daunting task, look for RibbonX: Customizing the Office 2007 Ribbon by Robert Martin, Ken Puls and Teresa Hennig. Or, check out the Ribbon Commander utility described at http://mrx.cl/2dbS4Js.
I find that I spend most of my time on either the Home or the Data tab. If I could combine the left side of the Home tab with the right side of the Data tab, plus pivot tables, I would probably be able to spend all my time on one tab.
This figure shows a new MrExcel tab that reuses groups from other ribbon tabs to build a new tab.
The general steps for creating a new ribbon tab are as follows:
1. Right-click the Ribbon and choose Customize the Ribbon.
2. Click New Tab at the bottom right of the dialog.
3. Click Rename and give the tab a name.
4. Use the Up and Down buttons at the right side of the dialog to move the new tab into the proper location.
5. From the left dropdown, choose Main Tabs.
6. In the left dropdown, expand an existing tab and find an existing group that you want to add to your new tab. Click that group and click Add.
7. Repeat step 6 to add additional groups.
8. You can reuse a custom group that you created previously. In the left dropdown, choose Custom Tabs and Groups. You can move the Pivot Table (Custom) tab created earlier in this chapter onto your new ribbon tab.
9. Click OK to finish customizing the ribbon tab.
Problem: Why is the Search box so large? I never use this.
Strategy: Starting in the spring of 2019, you can collapse it to a small icon. Use File, Options, General
This article is an excerpt from Power Excel With MrExcel
Title photo by Jess Bailey on Unsplash