Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-01-2020, 02:57 AM
tamasig tamasig is offline Copying style from normal template into current documet Mac OS X Copying style from normal template into current documet Office 2016 for Mac
Novice
Copying style from normal template into current documet
 
Join Date: Dec 2019
Posts: 2
tamasig is on a distinguished road
Default

Thanks, @jeffreybrown. Because I wanted to write a code that is more general than specifying the actual path, I replaced the Source with NormalTemplate.FullName; however, even in that case Word crashed repeatedly. This kept happening until I also changed ActiveDocument to ActiveDocument.FullName.

The final code then is the following:

Code:
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Comment Text", Object:=wdOrganizerObjectStyles
Many thanks,
tamasig
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert old pres with template applied to the current version of PowerPoint with a new template dianahbr PowerPoint 0 02-21-2018 10:38 AM
Copying paragraphs from multiple documents to the current one. paik1002 Word VBA 3 02-22-2016 04:03 AM
Copying style from normal template into current documet What happens when I delete the Global template? jjmclell Project 2 05-10-2015 02:48 PM
Copying style from normal template into current documet A macro to reveal keyboard shortcuts assigned to global template? New Daddy Word 3 12-17-2013 07:08 AM
Copying style from normal template into current documet Global template ryalls3857 Word 1 12-27-2010 05:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:08 PM.


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