A family of Microsoft word processing software products for creating web, email, and print documents.
For the second piece, building blocks aren't stored in documents, they are stored in templates. But the code would be something like this:
Private Sub chbTest_Click()
Dim oRng As Range
If ActiveDocument.Bookmarks.Exists("bkmTest") Then
Set oRng = ActiveDocument.Bookmarks("bkmTest").Range
If chbTest Then
Set oRng = ActiveDocument.AttachedTemplate.BuildingBlockTypes(wdTypeAutoText).Categories("Signatures"). _
BuildingBlocks("John Hancock").Insert(Where:=oRng, RichText:=True)
Else
oRng.Text = vbNullString
End If
ActiveDocument.Bookmarks.Add "bkmTest", oRng
End If
lbl_Exit:
Exit Sub
End Sub