View Single Post
 
Old 08-31-2021, 09:44 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,159
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

Is the template the "attached template"? If so, you can just refresh styles and turn off the auto update
Code:
ActiveDocument.UpdateStylesOnOpen = False
ActiveDocument.UpdateStyles
If the template is NOT the attached template, you can use this
Code:
ActiveDocument.CopyStylesFromTemplate (sPath)   'import styles from addin template
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote