W
William Bartusek
I can add a bookmark for a text field on a Word document
using the following code:
ActiveDocument.FormFields(amtIndex).Range.Bookmarks.Add _
Name:=str, _
Range:=ActiveDocument.FormFields(amtIndex).Range
Note: "amtIndex" is a defined integer
However, I can't figure out the code syntax to use that
actually enters the bookmark text in the "Bookmark:" field
in the Text Form Field Options dialog form. "Name" doesn't
work. The other fields, such as TextInput for "Default
number", in the Text Form Field Options dialog have
obvious choices as VBA code objects/data members.
using the following code:
ActiveDocument.FormFields(amtIndex).Range.Bookmarks.Add _
Name:=str, _
Range:=ActiveDocument.FormFields(amtIndex).Range
Note: "amtIndex" is a defined integer
However, I can't figure out the code syntax to use that
actually enters the bookmark text in the "Bookmark:" field
in the Text Form Field Options dialog form. "Name" doesn't
work. The other fields, such as TextInput for "Default
number", in the Text Form Field Options dialog have
obvious choices as VBA code objects/data members.