I have a short script:
Microsoft.Office.Interop.Word.Range range = doc.Bookmarks.get_Item(ref name).Range;
range.Text = text;
I use this lines couple of years in Word 2007. Today I get a new Word 2016 version and I get this message:
Unhandled Exception: System.Runtime.InteropServices.COMException (0x800A17EC): You can not edit the mark because it is protected. at Microsoft.Office.Interop.Word.Range.set_Text(String prop) at msWordFiller.Program.ReplaceBookmarkText(_Document doc, String bookmarkName, String text) at msWordFiller.Program.Main(String[] args)
What do you think, what has changed in the new Word version?