Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2018, 01:00 PM
heathkat heathkat is offline Change template priority via VBA Windows 10 Change template priority via VBA Office 2016
Novice
Change template priority via VBA
 
Join Date: May 2018
Posts: 2
heathkat is on a distinguished road
Default Change template priority via VBA

Word seems to give priority to customizations in attached templates over those in the normal template when there is a conflict. For instance, I have shortcut keys assigned to macros in my normal template. When I attach a custom template that has conflicting assignment for those same shortcut keys, Word will revert to their assignment in the custom (attached) template.

Example:

My Normal template has this key assignment:
Alt+A launches AcceptChanges

I attach a custom template with this key assignment:


Alt+A launches ApplyTableStyle

Once I attach the custom template Alt+A always launches ApplyTableStyle.

Is there any way via VBA or otherwise to change the preference order for template customizations?
Reply With Quote
  #2  
Old 05-25-2018, 08:54 PM
gmayor's Avatar
gmayor gmayor is offline Change template priority via VBA Windows 10 Change template priority via VBA Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The hierarchy is by design and doesn't only apply to shortcuts. It is a principle reason for creating a template, that all the configuration for the documents it creates is stored in the template.


The hierarchy is
1. Document template
2. Add-in Template
3. Normal Template
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 05-28-2018, 08:15 PM
heathkat heathkat is offline Change template priority via VBA Windows 10 Change template priority via VBA Office 2016
Novice
Change template priority via VBA
 
Join Date: May 2018
Posts: 2
heathkat is on a distinguished road
Default

Thanks gmayor. I absolutely understand what you're saying. I just found myself in a situation where I would have liked to use my own shortcut keys although I needed to attach to someone else's template to format a particular document.

Ahh well, perhaps I can reassign the shortcuts I use most often so they don't conflict.

Thanks for taking the time to answer!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change template priority via VBA Custom Template, Multi-List Heading Numbers Reverting to Template Rather than Keeping Local Change whsnow Word 2 03-24-2018 06:57 AM
Change template priority via VBA Automatic Priority List Update Chappster Excel 2 11-24-2014 04:24 AM
Change template priority via VBA Task allocation by priority dlowrey Excel Programming 3 06-18-2012 07:24 PM
Change template priority via VBA address book priority excelledsoftware Outlook 1 05-05-2012 09:01 PM
Calender month view peeve - display high priority over low priority appts? ghumdinger Outlook 0 07-25-2011 03:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:04 PM.


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