Delete everything within a range

J

jj

I am trying to delete everything within a range. Currently I am
mostly concerned about text and tables, but will eventually need to
include drawing objects and other such items. I can delete the text
by setting the Range.Text property to the empty string, but how can I
remove the tables. If I use the Range.Tables property, I get the
tables inside the range in most situations, but if the range is inside
of a table I get the outer table, resulting in me deleting much more
than I want to. Can someone please help me with a method to delete
everything from within a range, or at least delete all tables within a
range, without deleting parent tables of a range.
 

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