View Single Post
 
Old 03-15-2023, 06:05 AM
Italophile Italophile is offline Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 542
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by Guessed View Post
Perhaps the solution is to create a Class Module and use the WindowActivate event to refresh the ribbon as you change active documents.
See Writing application event procedures for working with Class Modules.
Almost correct. It is actually the DocumentChange event that needs to be handled.

If you have a custom ribbon tab that includes toggle buttons, uses GetEnabled or GetVisible callbacks, or supplies document specific functionality then handling the DocumentChange event is imperative.
Reply With Quote