We help IT Professionals succeed at work.
Get Started

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

91 Views
Last Modified: 2020-01-09
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!
Comment
Watch Question
Senior Developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE