Create XML files to customize the Office 2007 Ribbon:
This XML file is to be attached to any amendments or customizations that we create in the Ribbon. A well-formed XML file must contain a single root element. All other elements must be defined within that root element. In addition there must be correspondence between the opening and closing tags, ie, every open tag must have a corresponding closing tag. Another important feature is that XML is case sensitive and sensitive, that is, if we open a label called <ribbon> we close it and </ ribbon>, because if we close it as well </ Ribbon> match and we will not detect will fail. Should also be properly nested elements and attributes superimpose and not repeat an item.
There are applications that allow us to create XML files and also tell us if something is not doing well, but to create an XML file itself serves Notepad included with Windows.
Having said this, by way of summary, we will focus on how to create XML files that allow you to customize the Ribbon. The general format of these files for our particular case is as follows:
xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <customUI
<ribbon>
<tabs>
<tab idMso = "TabHome">
idMso= <group "GroupFont" visible="False" />
</ Tab>
</ Tabs>
</ Ribbon>
</ CustomUI>
The preceding XML file hides the command group related to the sources in the Home tab of the Ribbon. The first line of file is mandatory and must be that as it is the root tag of all the customizations of the Ribbon. That is as follows:
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
Each of the controls on the Ribbon has some specific attributes, but too many to comment on this article.
Bookmarks