prevent word fields from unlink
I have a userform that opens multiple word documents and then fills in docvariables via user form questions. When completed, I used ActiveDocument.Fields.Update then ActiveDocument.Fields.Unlink as we do not want to keep the fields in these completed documents. However, I have added one additional document and would like to keep all of the data/fields and NOT have this one document unlink fields. I have a separate macro button for this separate file, but users are sometimes not closing/saving the new file first, so then when they run the remainder of the userform, they end up unlinking the fields on all documents, including the one where we don't want it to. I tried ActiveDocument.Fields.Unlocked = True, but I think unlocking must only prevent field updates and does not prevent unlinking. Is there VBA that would protect this one document's fields while other active documents are being unlinked? Thanks.
|