Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-24-2020, 02:57 AM
jmasiak jmasiak is offline Problem with attaching template in AutoNew sub Windows 10 Problem with attaching template in AutoNew sub Office 2019
Novice
Problem with attaching template in AutoNew sub
 
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
 

Tags
autonew, styles, template



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with attaching template in AutoNew sub Macro added to Ribbon in template does not appear after attaching template rocky2 Word VBA 1 04-04-2016 12:00 AM
Attaching files Andy Curshen Outlook 0 01-21-2016 12:48 PM
Problem with attaching template in AutoNew sub Image is attaching ANH Mail Merge 1 09-30-2015 02:05 PM
Attaching a folder alamorchgirl Misc 0 06-16-2011 06:32 PM
attaching (relative,logical or virtual) path to template word document wissam Mail Merge 0 08-04-2009 05:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft