RSS .92| RSS 2.0| ATOM 0.3
  • Home
  • About
  • Eric’s Toolset
  • Free Software
  • Software License
  •  

    Adding an Item to the Office Menu’s “Save As” Group

    January 3rd, 2007 by Eric

    The documentation around Office 2007 ribbon customization is still a bit sparse. I’ve been trying to add a new entry under the Save As menu in the Office Menu, and after a fair amount of trial and error, I found a way to do that.

    Here is the XML:

    <!-- version="1.0" encoding="utf-8--> 
    <customui xmlns="http://schemas.microsoft.com/office/2006/01/customui"></customui> 
      <ribbon></ribbon> 
        <officemenu></officemenu> 
          <splitbutton idMso="FileSaveAsMenu"></splitbutton> 
            <menu idMso="FileSaveAsMenu"> 
     
              <button id="MyCustomButton"></button>              label="My Custom Command" 
                  description="This text shows up under the label" 
                  imageMso="HappyFace" 
                  onAction="ControlClicked"/> 
     
            </menu>

    The odd part, in my inexperienced view, is referencing the same “FileSaveAsMenu” id in both the splitButton and the menu elements.

    I searched in vain for an XML file that contains the definition of the complete default ribbon. Having that would have made this and other customizations much easier. A similar strategy ought to work for other pop-up style items, like Print, Prepare, Send, etc.

    Leave a Reply