Userform without inserting Bookmark text
I have long documents that use bookmarks/ASK/REF as the method to include repeated text. The documents also incorporate bookmarks in conjunction with IF fields to insert optional text. The text is never inserted at the bookmark locations (the bookmarks are not placed at insertion points - only "randomly" in the document since they are never used) - the text is only inserted at REF locations (or IF locations). The number of ASK fields is now so large, I would like to create a userform to do the work of the ASK fields but without having to completely "redo" the bookmark/REF/IF from the original documents. The problem is, any userform/VBA code I see inserts text from a textbox at the Bookmark location (replacing the bookmark and/or having further code to reinsert the Bookmark) rather than just providing a value for a Bookmark to then use within the document for the REF/IF fields. Could anyone help with code so that I can ask questions in the userform (with textboxes and/or other content controls, check boxes, etc.) to obtain values for the existing Bookmarks in my document, but NOT to insert at Bookmark locations. I would like to use the userform responses to assign values to the bookmarks for use in the existing fields within the document? I would use ActiveDocument.Fields.Update at the end if I can figure out the Bookmark issue. Thanks.
|