I have developed a Global Template in Microsoft Word, a .dotm that sits in the user's AppData\…\Word\STARTUP folder, so it gets loaded every time the user launches MS Word. The .dotm creates a custom tab in the Word ribbon menu, a toolbar containing numerous automation macro buttons.
I need to do certain checks each time they use the global template, such as making sure they have the latest version, etc. I am currently triggering these checks by way of the RibbonOnLoad event. Problem is the ribbon loads when the user first launches the Word application.
I would rather trigger these checks only when the user switches to my custom tab. Is there a Word VBA Event that fires when the user changes to a certain ribbon menu tab?
My research suggests there is no such event. But I want to make sure. If not, is there a workaround to create this same functionality, so I don't have to call the checks at the beginning of every single macro?
Thanks!
Our community of experts have been thoroughly vetted for their expertise and industry experience.