In MS Office 2010 you can customize the ribbon on your own, this feature was not present in the earlier version of MS Office.
Ribbon customization is an easy task in Office 2010, here we are going to see how you can add new features to your Office 2010 ribbon tags and use it in your Office-supported files. If you need more details on the new features provided by MS Office 2010 you can check out the official documentation.
In order to customize the ribbon in Office 2010, we need the following.
1. MS Office 2010
Installed on your system, of course.
2. Custom UI Editor
This is an editor for creating and editing XML documents. You can download the Custom UI Editor at this page.
3. Template File (.dotm)
This file contains the common features which need to be used by each and every document of that type, the extension for this file is .dotm where m stands for macro enabled document template. By default Normal.dotm is the template file which is used in MS Office 2010 and can be found on at C:\Program Files (x86)\Microsoft Office\Office14\STARTUP.
4. Knowledge about Macros
You also need to have some knowledge about macros (VBA codes) in MS Office. In order to locate macros in your document, use the Alt + F8 Keyboard shortcut.
Once you have all the above mentioned items you are now ready to go.
Steps for Customizing the Ribbon in MS Office 2010
Here I will walkthrough with the steps to customize the ribbon in MS Office 2010 using a Word document.
Step 1: Open MS Office Word 2010
Step 2: Go to the File tab and click on Options as shown below.
Step 3: The Word Options window will be opened, click on Add-Ins as shown below.
Step 4: Now select Template from the drop down placed next to Manager in the same window as shown below.
Step 5: After selecting Template click on Go, the Template and Add-ins window will appear. Your Normal template file will appear here in section named as “Checked Items are Currently loaded” as shown below.
If the you have some other template which you want to use in the current opened document then you can either Attach the template file or Keep the template file inside C:\Program Files (x86)\Microsoft Office\Office14\STARTUP.
By keeping the template file directly into the STARTUP folder it will automatically be picked by MS Office 2010 for use.
Step 6: Till now we have seen that where the template files are located and how it is used in our document. Now we are going to customize our ribbon. In order to do that, open the Custom UI Editor that you installed.
The interface will look like as shown below.
Step 7: Click on File and Open the Normal.dotm file inside Custom UI Editor as shown below.
Step 8: Your file will be listed in the Custom UI Editor as shown below.
Step 9: Now go to the Insert tab and add XML code the new Tab as shown below.
After completing Step 9 the custom UI Editor screen will look like as shown below:
It will create a customUI14.xml file in which you have to configure your write your code.
Step 10: As you can see that the code contains a Tab > Group > Button, you can change the name of in the code, these are default names provided by MS Office when customizing the UI.
Now add an icon to for your button, so right click on cuctomUI14 and select Insert Icons… as shown below.
Step 11: Choose an icon from your system, please remember that the icon size should be 32 x 32 (16 x 16 is okay too) and the file extension should be PNG since PNGs work best.
We have inserted an image as shown below.
Step 12: Now customize your code as per your need, the xml code after customization is as follows.
Here “Test” is the macro which will be called when this button is clicked, and the code for the macro is shown below.
Step 13: After completing the code changes in the XML file, validate it by clicking on the Validate as shown below.
If the XML file is correct, you will receive an correct message as shown below.
Step 14: Now Save your XML code.
Step 15: Open you Template and include the newly created custom button to your document. Right Click on the Home tab area and go to Customize Ribbon Tab as follows.
Step 16: Select All Commands as shown below.
Step 17: Search for your button which you have created in the XML code, the button created in the XML code in Step 11 is shown below.
Click on Add, to a specific tab where you want to shown thisa button, I have created a new tab name as Testing and add this button to the new tab as shown below.
The button is visible in my new tab called Testing.
Step 18: Now when you click on this button the macro code will be called and the ouput is shown below.
And that is how you customize Ribbons in MS Word 2010 and add new controls in your MS Office supported files.