View Single Post
 
Old 03-18-2023, 04:56 AM
Ddadoo57 Ddadoo57 is offline Windows 11 Office 2021
Advanced Beginner
 
Join Date: Feb 2023
Posts: 90
Ddadoo57 is on a distinguished road
Default Dissociate instance of a custom ribbon, for documents based on the same dotm creation template?

Hello,

I have a problem that I can't solve for a long time now ;-(

When I open 2 documents created with the same .dotm template, both documents share the same instance of the custom ribbon.

For example: if I click on a toggleButton in one of the 2 opened documents, the TB in the other document goes to the same state.

Could someone give me some hints or help me to solve this very difficult problem and/or has someone already done this experience?

Thanks in advance!
David

PS: just for information, when you open 2 documents based on the same template, the loading of the custom ribbon is done only once, i.e. Sub MyRibbon_OnLoad(ribbon As IRibbonUI) is executed only once, when loading the first document
Reply With Quote