none
Why CustomUI XML Dose Not Hide FileTab? RRS feed

  • Question

  • hello

    this my XML for Backstage:

      <backstage> 
         <button idMso="FileCloseDatabase" visible="false"/>
         <button idMso="SaveObjectAs" visible="false"/>
         <button idMso="FileSave" visible="false"/>
         <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>
         <button idMso="FileOpen" visible="false"/>
         <button idMso="QuickAccessToolbarCustomization" visible="false" />
         <tab idMso="TabInfo" visible="false"/>
         <tab idMso="TabOfficeStart" visible="false"/>
         <tab idMso="TabRecent" visible="false"/>
         <tab idMso ="TabNew" visible="false"/>
         <tab idMso="TabSave" visible="false"/>
         <tab idMso="TabPrint" visible="false"/>
         <tab idMso ="TabShare" visible="false"/>
         <tab idMso="TabHelp" visible="false"/>
         <button idMso="ApplicationOptionsDialog" visible="false"/>
        <button idMso="FileExit" visible="false"/>
      </backstage>

    but this is final result:

    how can I disable FileTab completely or objects that you can seen in this image from backstage.

    thank you

    Tuesday, July 19, 2016 8:13 AM

Answers

  • Hi,

    I can successfully hide all the options in the backstage with your code.

    In your situation, Print/Privacy Options/Exit fail to hide. So what is the version of your Access?

    You can enable the display of add-in user interface error messages in Access Option-Client Settings-General and search "Office UI Help Files" in Microsoft Download Center and download the help files to make sure you are using the correct IdMso.

    My customization steps are below. I am using Access2016 and following Customize the Ribbon

     

    1)Create a new system table with

    Fields name: ID/RibbonName/RibbonXml

    Types: AutoNumber/Short Text/Long Text

    Fields size: Long Integer/255/(blank)

    2)Open the system table

    Input "HideFileTab" in RibbonName Column

    Input the following XML text

     

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

     <backstage>

         <button idMso="FileCloseDatabase" visible="false"/>

         <button idMso="SaveObjectAs" visible="false"/>

         <button idMso="FileSave" visible="false"/>

         <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>

         <button idMso="FileOpen" visible="false"/>

         <button idMso="QuickAccessToolbarCustomization" visible="false" />

         <tab idMso="TabInfo" visible="false"/>

         <tab idMso="TabOfficeStart" visible="false"/>

         <tab idMso="TabRecent" visible="false"/>

         <tab idMso ="TabNew" visible="false"/>

         <tab idMso="TabSave" visible="false"/>

         <tab idMso="TabPrint" visible="false"/>

         <tab idMso ="TabShare" visible="false"/>

         <tab idMso="TabHelp" visible="false"/>

         <button idMso="ApplicationOptionsDialog" visible="false"/>

        <button idMso="FileExit" visible="false"/>

      </backstage>

    </customUI>

     

    3)In the Access Option, click Current Database, find Ribbon and Toolbar Options

    Print "HideFileTab"  into the box after Ribbon Name

    Click OK

     

    4)Reopen Access and all the options are invisible in FileTab


    Wednesday, July 20, 2016 9:13 AM
    Moderator

All replies

  • sorry I forgot to say that QuickAccessToolbar as well.

    Tuesday, July 19, 2016 8:13 AM
  • the solution on the web is similar to my XML but the result show in the above image.
    Tuesday, July 19, 2016 8:14 AM
  • Hi,

    I can successfully hide all the options in the backstage with your code.

    In your situation, Print/Privacy Options/Exit fail to hide. So what is the version of your Access?

    You can enable the display of add-in user interface error messages in Access Option-Client Settings-General and search "Office UI Help Files" in Microsoft Download Center and download the help files to make sure you are using the correct IdMso.

    My customization steps are below. I am using Access2016 and following Customize the Ribbon

     

    1)Create a new system table with

    Fields name: ID/RibbonName/RibbonXml

    Types: AutoNumber/Short Text/Long Text

    Fields size: Long Integer/255/(blank)

    2)Open the system table

    Input "HideFileTab" in RibbonName Column

    Input the following XML text

     

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

     <backstage>

         <button idMso="FileCloseDatabase" visible="false"/>

         <button idMso="SaveObjectAs" visible="false"/>

         <button idMso="FileSave" visible="false"/>

         <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>

         <button idMso="FileOpen" visible="false"/>

         <button idMso="QuickAccessToolbarCustomization" visible="false" />

         <tab idMso="TabInfo" visible="false"/>

         <tab idMso="TabOfficeStart" visible="false"/>

         <tab idMso="TabRecent" visible="false"/>

         <tab idMso ="TabNew" visible="false"/>

         <tab idMso="TabSave" visible="false"/>

         <tab idMso="TabPrint" visible="false"/>

         <tab idMso ="TabShare" visible="false"/>

         <tab idMso="TabHelp" visible="false"/>

         <button idMso="ApplicationOptionsDialog" visible="false"/>

        <button idMso="FileExit" visible="false"/>

      </backstage>

    </customUI>

     

    3)In the Access Option, click Current Database, find Ribbon and Toolbar Options

    Print "HideFileTab"  into the box after Ribbon Name

    Click OK

     

    4)Reopen Access and all the options are invisible in FileTab


    Wednesday, July 20, 2016 9:13 AM
    Moderator