Right now I am wondering how if you create a bookmark with an ASK field, Word creates a bookmark that doesn't have any included text between its brackets ][ , yet contains text that you can recall with a statement like
MsgBox ActiveDocument.Bookmarks(bookmarkname).Range.Text
when i prompt the user to create a bookmark with a form i create like this
varname = InputBox("What is the Name of your Bookmark?", "Bookmark Name")
varvalue = InputBox("What is the Value of your Bookmark?", "Bookmark Value")
ActiveDocument.Bookmarks.Add Name:=varname
ActiveDocument.Bookmarks(varname).Range.Text = varvalue
the text i had the user input is placed after bookmark brackets like
][bookmarkvarvalue
and when i try to access the the bookmark value like this
MsgBox ActiveDocument.Bookmarks(bookmarkname).Range.Text
the value is null..
i would like to have empty brackets containing a value much like an ask field.... any help would be greatly appreciated!