D
Deleted member 147267
Guest
Apologies for the long post. Either that or likely I'll have to say I tried most of what you're going to suggest. The issue is error message 32610: "DatabaseName.accdb cannot load customization 'Main'. This customization was already loaded."
Up to now, I've avoided customizing ribbons like the plague and have spent all day on it trying to learn. As per https://docs.microsoft.com/en-us/of...to-apply-a-custom-ribbon-when-starting-access
- I have table USysRibbons with RibbonName, RibbonXML (added ID PK, auto number) later as described elsewhere with xml for Main, Main2, Main3.
- Also incorporated Application.LoadCustomUI as per
https://docs.microsoft.com/en-us/office/vba/api/Access.Application.LoadCustomUI
- I have Options>Client Settings>General "show add-in user interface errors" selected (that one seemed to point out all the errors in most db examples I downloaded about modifying ribbons). If not selected, same error.
- using <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> with Access 2016
- doesn't matter if I select a ribbon in Options or not
- doesn't matter if full or shortcut menus allowed (with or without spec'ing a ribbon)
- As long as I call Application.LoadCustomUI strRibbonName, strXml (strXml = "Main") & pass the xml as a lookup, I get the error. Values are not null
- If I pass "Main2" to function, message is about Main2; doesn't matter if a menu is spec'd in Options or not.
AFAIK, the reason for calling LoadCustonUI is to load all ribbons so that they're available for any form/report, but I can't get it to work trying to load just one.
That's all I can think of. The only thing that I seem to have accomplished is to have only Exit on File tab. I have searched all day long (thus have even looked at old posts here) and I'm not the only one who's ever asked about this. Problem is, no threads arrived at a solution anywhere. Nothing I've read indicates that ALL ribbons are loaded just because they're in a table, but is that the case? Anybody got the magic answer for the error message?
Thanks in advance.
Up to now, I've avoided customizing ribbons like the plague and have spent all day on it trying to learn. As per https://docs.microsoft.com/en-us/of...to-apply-a-custom-ribbon-when-starting-access
- I have table USysRibbons with RibbonName, RibbonXML (added ID PK, auto number) later as described elsewhere with xml for Main, Main2, Main3.
- Also incorporated Application.LoadCustomUI as per
https://docs.microsoft.com/en-us/office/vba/api/Access.Application.LoadCustomUI
- I have Options>Client Settings>General "show add-in user interface errors" selected (that one seemed to point out all the errors in most db examples I downloaded about modifying ribbons). If not selected, same error.
- using <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> with Access 2016
- doesn't matter if I select a ribbon in Options or not
- doesn't matter if full or shortcut menus allowed (with or without spec'ing a ribbon)
- As long as I call Application.LoadCustomUI strRibbonName, strXml (strXml = "Main") & pass the xml as a lookup, I get the error. Values are not null
- If I pass "Main2" to function, message is about Main2; doesn't matter if a menu is spec'd in Options or not.
AFAIK, the reason for calling LoadCustonUI is to load all ribbons so that they're available for any form/report, but I can't get it to work trying to load just one.
That's all I can think of. The only thing that I seem to have accomplished is to have only Exit on File tab. I have searched all day long (thus have even looked at old posts here) and I'm not the only one who's ever asked about this. Problem is, no threads arrived at a solution anywhere. Nothing I've read indicates that ALL ribbons are loaded just because they're in a table, but is that the case? Anybody got the magic answer for the error message?
Thanks in advance.