Hello again,
I have another question regarding another question I had earlier on.
I got this code from Greg Maxey (thank you very much!):
Private Sub CommandButton1_Click()
'A basic Word macro coded by Greg Maxey
Dim oBm As Bookmark
Dim oRng As Word.Range
Set oBm = ActiveDocument.Bookmarks("bmTarget")
Set oRng = NormalTemplate.BuildingBlockTypes _
(wdTypeAutoText).Categories("General").BuildingBlocks(Me.ComboBox1.Value).Insert(oBm.Range)
ActiveDocument.Bookmarks.Add "bmTarget", oRng
Me.Hide
End Sub
I wanted to have a userform with a single drop down (combobox), that asks the user to choose between "option1" and "option2". The bookmark in the document is the same, but the building block will either
be "BBoption1" or "BBoption2", depending on what was chosen in the combobox.
Wouldn't there need to be some part of the code representing that? So that one part puts the "BBoption1" in the document and one puts "BBoption2" in it?
Thank you very much!!!