troubleshooting Question

Is there a Ribbon Menu Tab Change Event in Microsoft VBA?

Avatar of Bryce Bassett
Bryce BassettFlag for United States of America asked on
Microsoft OfficeVBAMicrosoft Word
7 Comments1 Solution94 ViewsLast Modified:
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!
ASKER CERTIFIED SOLUTION
ste5an
Senior Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros