View Single Post
 
Old 03-19-2023, 08:11 AM
Ddadoo57 Ddadoo57 is offline Windows 11 Office 2021
Advanced Beginner
 
Join Date: Feb 2023
Posts: 73
Ddadoo57 is on a distinguished road
Default

Thanks a lot Guessed and Italophile!

I will do some more testing and keep you posted!

- Italophile, yes the ribbon should be an application object and that's why I was surprised by the behavior I encountered. I'll move some lines of code to my App_DocumentChange event. As for the getPressed and getEnabled callbacks, after trying the same code in each, I have no change.

- Guessed, yes we will do that if I can't optimize my current code.

The solution in the meantime that I have, is the following: for each opened document I have a unique temporary variable, in which is indicated the TB activated for this document. If I change the document on the screen, I take the value of the temporary variable of the document and I activate its TB... with that I don't have any problem but it's true it's a DIY.

Have a nice day,
David
Reply With Quote