Remove part of a document


How to remove part of a document consists of several paragraphs and tables and specified by bookmark?

Igor S


Here is the code:

// this line removes the contents of a bookmark named 'MarkedForRemoval'

doc.Range.Bookmarks["MarkedForRemoval"].Text = "";

// this line removes the bookmark itself



Wow! It works!
Bolshoe spasibo.

Igor S