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

ActiveDocument.AttachedTemplate will fail if the ActiveDocument IS a template.

If the code is sitting in the same template as the building block then you can use
ThisDocument which will work in both the template itself and when attached to activedocument.

In my experience, using the Organizer to change the Save In template doesn't work - despite looking like it should. You need to insert the building block into a document and then create it as a new building block in the correct template.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote