Preventing a confirmation pop-up when updating fields in Word

Posted by Gilles on Super User See other posts from Super User or by Gilles
Published on 2010-10-07T19:02:21Z Indexed on 2010/12/21 19:56 UTC
Read the original article Hit count: 372

In Word 2007, an obvious candidate for updating all the fields in a range is

myrange.Fields.Update

But if the range is the element of ActiveDocument.StoryRanges corresponding to the footnotes, endnotes or comments, this triggers a confirmation pop-up “Word cannot undo this action. Do you want to continue?”

What is this pop-up telling me about? How do I get rid of it (if it's not important)?

An obvious workaround is to iterate over the fields and call each field's Update method. It doesn't fire up that question. But if I do this, what do I miss?

following up to How do I update all fields in a Word document

© Super User or respective owner

Related posts about microsoft-word

Related posts about microsoft-word-2007