![]() |
|
#1
|
||||
|
||||
![]()
My experience with CustomUI ribbons and templates has been to always put the code (vba and customUI) into the 'attached' template because that is where the applicability matches and there is rarely a reason to complicate the system by implementing partner addins to match the 'attached' template.
However I have seen particular users create documents from templates which accidently get a copy of the CustomUI embedded in the docx file. This happens when their workflow is to OPEN the template and then do a SaveAs to turn it into a docx file. In this special case the CustomUI xml is included in the docx file although any macros would be stripped out as they save unless they choose docm as the format. I have not yet seen a template with embedded customUI code produce new documents with contained customUI when the documents are created the RIGHT way (File>New or double clicking a dotm file). It is possible that this functionality has been broken on a recent update of Word 365 but I still haven't seen it. I do wonder why you would put the source new document template in your startup folder instead of the more usual User/Workgroup templates folder. This might be interfering with the code you say you are using Code:
Application.Documents.Add(Template:=ThisDocument.FullName, visible:=True)
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]() Quote:
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving Notes View into Word Template | caz46 | PowerPoint | 0 | 06-24-2015 01:29 AM |
Removing digitally signing when saving | plasma | Word | 0 | 05-26-2015 08:36 AM |
Saving a template file | dreamz | Word VBA | 10 | 06-26-2014 04:38 AM |
![]() |
Cosmo | Word VBA | 1 | 04-25-2014 06:19 PM |
Update Document Template when Saving the Document File | bjbercaw | Word | 3 | 11-16-2010 02:03 PM |