View Single Post
 
Old 09-17-2022, 12:33 PM
Charles Kenyon Charles Kenyon is offline Windows 11 Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,472
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Italophile View Post
It has always been the case that when a document is created from a template it inherits the content of the template except:
  • VBA code
  • ribbon xml
  • building blocks
Those items stay in the template and will be available to the document whilst it remains attached to the template.

I rarely build templates that contain customized ribbon code but occasionally it has been necessary. In the interests of science I just created a document from an old template I created for a client that was using Wd2010. I then compared that to an example document I created from the same template back in 2016. To my surprise the new document contained the ribbon xml whilst the old document didn't.

As I am now using O365 I can only conclude that in Microsoft's infinite wisdom they decided to change how this works at some point. Either that or they've introduced a bug.
Thank you. I was mistaken.

I am also using 365 and upon creating a document based on one of my global templates that has XML ribbon modifications, those disappear when I attach the document to my normal template. So long as the template remains the attached template, they are present and active. The same is true of QAT modifications saved in the template. I just examined the xml in the .docx file and it did not have the custom xml from the template.

I started Ribbon modification in Word 2010 and just tried this in Word 2010 and had the same results.

I guess it makes sense because many UI modifications require code and that code will not be in the document.


I still feel that UI modification should primarily be in global templates.
Reply With Quote