Remove “Save & Send” from File menu in Excel 2010 using custom XML

前端 未结 1 986
南方客
南方客 2021-01-28 04:17

Could someone please help me modify the following XML code (Office 2007) so that it works in Office 2010? I\'ve included my XML from Office 2007 below:



        
相关标签:
1条回答
  • 2021-01-28 04:33

    So of course right after I asked this question I found the solution. Here's the format to remove the various items under the File ribbon (what is now apparently called backstage in Office 2010):

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <backstage>
        <button idMso="FileSave" visible="false"/>
        <button idMso="FileSaveAs" visible="false"/>
        <button idMso="FileOpen" visible="false"/>
        <button idMso="FileClose" visible="false"/>
        <button idMso="ApplicationOptionsDialog" visible="false"/>
        <button idMso="FileExit" visible="false"/>
        <tab idMso="TabInfo" visible="false"/>
        <tab idMso="TabRecent" visible="false"/>
        <tab idMso="TabNew" visible="false"/>
        <tab idMso="TabPrint" visible="false"/>
        <tab idMso="TabShare" visible="false"/>
        <tab idMso="TabHelp" visible="false"/>
        </backstage>
    </customUI>
    

    This will remove every option under the File menu. You can obviously selectively remove/show the elements you want to.

    0 讨论(0)
提交回复
热议问题