I've created a 13 page form which reuses several pieces of data throughout.
I've created a userform interface to the form template to gather the data and
disperse the data throughout the document after opening the template.
I've created bookmarks to correspond to the data, using the [] method of
creating bookmarks. In every subsequent reference to the bookmark (where I
want the bookmark to expand the data to what's entered on the userform) I've
used cross-references.
However, consistently only the first field referenced gets updated. All of
the other fields remain as the cross reference { REF BName \h }, rather than
expanding to the name entered in the BName field on the userform.
I've used Greg Maxey's code in the userform
With ActiveDocument
.Bookmarks("Text1").Range.InsertBefore TextBox1
.Bookmarks("Text2").Range.InsertBefore TextBox2
... etc.
End With
UserForm1.Hide
and used the autonew macro for the create button with UserForm1.Show to
execute upon the click of the create button.
I feel like I'm missing something huge here ... like asking it to update ALL
fields throughout the document.
This is my first template, my first userform, my first bookmark, and my
first crossreference use. Any ideas?
--Mary