Delete everything in a bookmark range

L

lennert.acke

Hi

I program Word from .NET

There is a bookmark defined in a template that covers some text, a page
break and a table. They are all in the bookmark range.

Depending on a condition, everything covered by the bookmark should be
excluded or not. The following line of code does however not do the
trick:

this.oWordDoc.Bookmarks.Item(ref oBookmark).Range.Text = "";

Does anyone know how I can resolve this ?

Any help appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top