Code:
Application.Templates( _
"C:\Users\" & Environ("username") & "\AppData\Roaming\Microsoft\Document Building Blocks\1033\16\Building Blocks.dotx" _
).BuildingBlockEntries("aNotaryForm").Insert Where:=Selection.range, _
RichText:=True
blows up with the error
Quote:
Run-time error '5941': The requested member of the collection does not exist.
|
I figured out the reason is that neither
Code:
TemplateProject(Building Blocks) nor
TemplateProject(Built-in Building Blocks)
exist in my project window.
When I load them by inserting them from quick parts in the underlying document. They work fine. But when I save the application, and re-open, the template projects are missing.
Is there a way to keep them with the project? Or load the templates on instantiation?