custom ribbon for ms access 2016

China☆狼群 提交于 2019-12-25 10:56:10

问题


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:


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



来源:https://stackoverflow.com/questions/46105660/custom-ribbon-for-ms-access-2016

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!