![]() Willy's
|
| Windows 95...XP | ||||||||||||||||||||
Agenda
| Belgian postal codes
| Calculator
| Htmlpad
| Links2Tray
| Startup manager
| Excel 97...2007 | Alphabetical Disorder
| Customize the Ribbon
| Perpetual calendar
| DOS | Compaction manager
| GPS | MTB tracks
| Fietsroutetracks
| Fietsknooppunten
| Other | Download
| How this site is setup
| Index
| Home
| |
Introduction | Example 1 | Example 2 | Example 3 | A real | |
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.
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.