![]() |
|
|
Thread Tools | Display Modes |
#5
|
||||
|
||||
![]()
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 |
Tags |
building block problems, vba, word2016 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
silawtz | Word | 5 | 11-03-2022 07:44 PM |
How to build a custom building block template | cos | Word | 1 | 12-13-2021 03:43 PM |
![]() |
houseofturner | Word | 4 | 07-19-2016 07:24 AM |
![]() |
EGoetz | Word VBA | 2 | 12-05-2013 09:09 PM |
Quick Parts entries in .docm template lost | kjworduser | Word | 7 | 07-31-2013 02:19 PM |