问题
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