Hi Guys,
I'm currently playing with the ribbon in order to hide it together with backstage options (the menu items available normally in "File"). I made a table where I store 2 ribbon's xmls: "development" & "blank". The code of "blank" is:
Code:<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon startFromScratch="true"> <!-- 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 ="TabHelp" visible="false"/> <button idMso="ApplicationOptionsDialog" visible="false"/> <button idMso="FileExit" visible="false"/> </backstage> </customUI>
The code of "development" is contrary. Thanks to this, I should be able to hide all options from the user before app deployment and show them back on when in development again. At the opening my database I'm loading my xmls with
Afterwards I set active ribbon withCode:Application.loadcustomui
I'd like to say it works, because when I check the ribbon name each time it is the one my code had set. What works randomly, however, is the code of my xmls. Sometimes everything is hidden as supposed to, sometimes few tabs or options in "File" menu stays... I don't know what's happening..Code:CurrentDb.Properties("CustomRibbonID").value = ribbonName
Did anyone observed so peculiar working of this option? Do I do something wrong?
Robert


Reply With Quote
