IntroductionIn earlier versions of Excel and Word it was relatively easy to add or remove items in the menu or toolbars or even make custom toolbars. Since the menu and toolbars have been replaced by the Ribbon in Excel 2007, those customizations made in an earlier version are grouped in the Add-Ins tab of the new Ribbon. Most probably you will not agree with the way Excel has done this conversion but the problem is that you cannot edit this tab. You can only delete it. But then you have to start from scratch using a totally new technique.
Since the Ribbon is so different from earlier menus and toolbars it is probably even a good idea to rethink your customizations. Some commands you created earlier will even not be necessary anymore since they can perhaps be executed more conveniently from the standard Ribbon. Commands you use very often can be put in the Quick Access Toolbar.
Custom commands can be grouped in an extra tab. I'll explain here three examples you can use as a basis to develop your own solution.
To try these examples, you don't need any special tools. Just plain Notepad will do. It is assumed though you are familiar with HTML/XML and Excel/Word Visual Basic.
Example1: creation of an Extra tab in Excel with a group with two buttons and a menu. The technique is similar in Word.
Example 2: creation of an additional group in the Excel Extra tab which is only visible when a particular sheet is active.
Example 3: creation of an Extra tab in Word with a group that is visible in all documents and another group which is only visible in a document based on a particular template. The technique is similar in Excel.
A real-life example: I developed some universal clever macros and use them for quite a while now finding them to be very useful. They are stored in an add-in (download) that adds an Extra tab to the ribbon so that they are available in all workbooks.
The BasicsFirst of all you probably already know that Excel/Word 2007 now save files in the new Office Open XML File Format which is in fact a ZIP file with another extension (.xlsx, .xlsm respectively .docx, docm etc) containing several XML files.
To add a tab to the Ribbon, you have to pack (add) another XML file to your workbook/document zip containing the necessary XML elements representing the Ribbon controls. How you name this file and where you put it is of no importance as long as you tell Excel where to find it. This is done by adding a reference to it in the .rels file that resides in the _rels folder of the zip file.
Some useful links