I’m using your example MergeField class to programmatically update merge field values in a document. This works ok for it seems like 90% of the fields, but in some fields the Code property throws an exception when I’m trying to set it because mFieldSeparator.NextSibling is not a Run Node, but is the FieldEnd Node. Is there a way to set the value in these fields? I was thinking I could just insert a run between the separator and the field end but why is it like that in the first place?
Thanks for your help,