Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-11-2024, 04:47 PM
Guessed's Avatar
Guessed Guessed is offline How to reference a function from another .dotm file in Word custom ribbon XML? Windows 10 How to reference a function from another .dotm file in Word custom ribbon XML? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I would ALWAYS put the code you want the ribbon to execute in the same template. However, the concept I would try is to point your ribbon at a macro in the same template that does:
1. Check that the addin is loaded and if not, attempts to load it
2. If the addin is still not loaded, tell the user that it wasn't found or loaded
3. Calls the macro you wanted in that addin
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
ribbon control, xml



Similar Threads
Thread Thread Starter Forum Replies Last Post
instance a new dotm file from a Word dotm file and save with new file name David Peck Word VBA 3 08-18-2023 06:47 AM
Dissociate instance of a custom ribbon, for documents based on the same dotm creation template? Ddadoo57 Word VBA 7 03-21-2023 05:34 AM
How to reference a function from another .dotm file in Word custom ribbon XML? Word Custom Ribbon In .dotm - How to edit/create? s0me0nesmind1 Word 6 04-16-2020 04:10 PM
How to reference a function from another .dotm file in Word custom ribbon XML? Custom ribbon button or shortcut for a specific function Nicobisgaard Word 6 04-22-2015 04:39 AM
Is it possible to add a custom macro button to the FILE tab of the ribbon in excel sbapabck Excel 2 04-11-2014 07:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft