View Single Post
 
Old 09-24-2020, 02:57 AM
jmasiak jmasiak is offline Windows 10 Office 2019
Novice
 
Join Date: Sep 2020
Location: Poland
Posts: 1
jmasiak is on a distinguished road
Default Problem with attaching template in AutoNew sub

Hello!
I wrote a macro to automatically attaching template in new document:
Code:
Sub AutoNew()
    ActiveDocument.AttachedTemplate = <Path To Template>
    ActiveDocument.UpdateStylesOnOpen = True
End Sub
However, this macro doesn't work properly. It attaches the template, macros in the template work, but it doesn't update styles. Only styles from the Normal template are available.
Could you tell me what can I do?
Thanks in advance
Reply With Quote