View Single Post
 
Old 09-16-2022, 09:05 AM
Charles Kenyon Charles Kenyon is offline Windows 11 Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
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

Place your Custom UI in a Global Template rather than in the Document template. It will be there when you produce your document on your system and will not be there when the document is used on another system.
You are using Documents.Add with a template base, correct?

If the CustomUI is specific to each template, then still place it in a separate template and load the template with the CustomUI as an Add-In when you are producing the document. Once you save the document, unload the Add-In.

There is no good reason I can imagine to be placing a CustomUI in a template for documents when you do not want it to be in the document. IMO you are doing things the hard way.


The whole idea of putting customizations in templates is to have them be in the documents produced from the templates.

Templates in Microsoft Word


Reply With Quote