J
Jean D
Regarding Word 2007 macros --
I ran across a post that said if your macro crashes on the line:
ActiveDocument.AttachedTemplate.BuildingBlockEntries("Plain Number 1"). _
Insert Where:=Selection.Range, RichText:=True
Then move the entry to the normal template and use:
NormalTemplate.BuildingBlockEntries("Plain Number 1").Insert _
Where:=Selection.Range, RichText:=True
While this works perfectly for one entry, is there a way to do it
differently to avoid moving numerous built-in building block entries from
the building blocks template to normal?
I saw an example for something else with the syntax:
Set objTemplate = Templates("C:\Documents and Settings\" _
& "[userid]\Application Data\Microsoft\Document Building" _
& "Blocks\1033\Building Blocks.dotx")
Set objBB=objTemplate.BuildingBlockTypes(wdTypeAutoText). _
Categories("Receipts").BuildingBlocks("Receipt")
objBB.Insert Selection.Range
Is there a way to use similar syntax to access the built-in entries from
building blocks.dotx?
Thanks!
I ran across a post that said if your macro crashes on the line:
ActiveDocument.AttachedTemplate.BuildingBlockEntries("Plain Number 1"). _
Insert Where:=Selection.Range, RichText:=True
Then move the entry to the normal template and use:
NormalTemplate.BuildingBlockEntries("Plain Number 1").Insert _
Where:=Selection.Range, RichText:=True
While this works perfectly for one entry, is there a way to do it
differently to avoid moving numerous built-in building block entries from
the building blocks template to normal?
I saw an example for something else with the syntax:
Set objTemplate = Templates("C:\Documents and Settings\" _
& "[userid]\Application Data\Microsoft\Document Building" _
& "Blocks\1033\Building Blocks.dotx")
Set objBB=objTemplate.BuildingBlockTypes(wdTypeAutoText). _
Categories("Receipts").BuildingBlocks("Receipt")
objBB.Insert Selection.Range
Is there a way to use similar syntax to access the built-in entries from
building blocks.dotx?
Thanks!