Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-11-2022, 09:14 AM
Italophile Italophile is offline Tried to attach quick parts building block to my template but lost it altogether Windows 11 Tried to attach quick parts building block to my template but lost it altogether Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Saving a building-block to a document template does not move the template to the building-blocks folder. The template will remain wherever you saved it.

Building Blocks Organizer will only show the templates that are currently loaded, so, unless you currently have open either "WaiverWorksheetV09.dotm" or a document created from it, your building block will not appear in the organizer.

If you are using code to insert the building-block then:
Code:
"C:\Users\" & Environ("username") & "\AppData\Roaming\Microsoft\Document Building Blocks\1033\16\WaiverWorksheetV09.dotm"
would only work if that is the path that you saved the document template to, which you hopefully didn't.

To insert a building-block from the document template use code such as:
Code:
    Dim tmp As Template
    Set tmp = ActiveDocument.AttachedTemplate
    tmp.BuildingBlockEntries(1).Insert Selection.Range
Reply With Quote
 

Tags
building block problems, vba, word2016



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tried to attach quick parts building block to my template but lost it altogether Quick Tables disappear when emailed - quick parts / building blocks 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
Tried to attach quick parts building block to my template but lost it altogether Building Blocks / Quick Parts houseofturner Word 4 07-19-2016 07:24 AM
Tried to attach quick parts building block to my template but lost it altogether Word 2013: Building Blocks / Quick Parts - Form Question 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

Other Forums: Access Forums

All times are GMT -7. The time now is 12:23 AM.


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