Hi,
I'm trying to update a single bookmark with multiple building blocks based on checkboxes on a user form.
This is the code I have so far:
I'm only getting the 2nd building block coming through to the bookmark if both checkboxes are selected. I'm assuming that the first building block gets written into the bookmark and the second overwrites it.Dim fi As Word.Range If cbObjectivesFamilyIncome.Value Then Set fi = ThisDocument.AttachedTemplate.BuildingBlockTypes(wdTypeQuickParts). _ Categories("SL-Objectives").BuildingBlocks("FamilyIncome").Insert(ActiveDocument.Bookmarks("bmObjectives").Range, True) ActiveDocument.Bookmarks.Add "bmObjectives", fi End If Dim pom As Word.Range If cbObjectivesBuyHouse.Value Then Set pom = ThisDocument.AttachedTemplate.BuildingBlockTypes(wdTypeQuickParts). _ Categories("SL-Objectives").BuildingBlocks("payOffMortgage").Insert(ActiveDocument.Bookmarks("bmObjectives").Range, True) ActiveDocument.Bookmarks.Add "bmObjectives", pom End If
After much searching, I can't find a way to append a building block to a bookmark when there's content already in there.
Can you help?
Thanks,
Stu





Reply With Quote
