custom ribbon for ms access 2016

2019-09-17 05:21发布

I have created a custom ribbon in access 2016, using xml codeing provided on this site from previous postings. For the most part it works just fine except the "New", "Save As", and "Feedback" buttons are still visible , and functioning. Does anyone know how to hide or disable these 3? Heres the coding i'm using:

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
      <ribbon startFromScratch="false">
           <!-- Ribbon XML -->
      </ribbon>
      <backstage>
      <button idMso="FileSave" visible="false"/>
      <button idMso="SaveObjectAs" visible="false"/>
      <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>
      <button idMso="FileOpen" visible="false"/>
      <button idMso="FileCloseDatabase" 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"/>
      <button idMso="ApplicationOptionsDialog" visible="false"/>
      <button idMso="FileExit" visible="false"/>
     </backstage>
</customUI>

1条回答
小情绪 Triste *
2楼-- · 2019-09-17 05:59

I dug around the internet and came up with this solution provided by rmk

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <backstage>
     <!-- Info -->
     <tab idMso ="TabInfo" visible="false"/> 
     <!-- New -->
     <tab idMso ="TabOfficeStart" visible="false"/> 
     <!-- Open -->
     <tab idMso="TabRecent" visible="false"/>
     <!-- Save -->
     <button idMso="FileSave" visible="false"/>
     <!-- Save As -->
     <tab idMso="TabSave" visible="false"/>
     <!-- Print -->
     <tab idMso ="TabPrint" visible="true"/>
     <!-- Close -->
     <button idMso="FileCloseDatabase" visible="false"/>
     <!-- Account -->
     <tab idMso="TabHelp" visible="false"/>
     <!-- Options -->
     <button idMso="ApplicationOptionsDialog" visible="false"/>
    </backstage>
  </customUI>

It worked great, the only thing left is the "Send Feedback" option which I guess is a microsoft issue

查看更多
登录 后发表回答