J
jj
I am trying to delete everything within a bookmark. I can delete the
text by setting the text property of the bookmark's range to an empty
string. This, however, doesn't remove the tables. If I use the
Tables property of the range and iterate through to delete them, it
works to delete all the tables inside, but only if the range is not
entirely inside of a table. If a range is inside of a table, the
Tables property returns that parent table and it gets deleted instead.
Does anyone know how to get the tables that are inside of a range,
without getting the table that the range is inside of. Even better
would be a mechanism to delete everything within a Range, including
text, tables, drawing objects, etc., but I have pretty much given up
on that approach and labeled it impossible without iterating through
each of these individually..
text by setting the text property of the bookmark's range to an empty
string. This, however, doesn't remove the tables. If I use the
Tables property of the range and iterate through to delete them, it
works to delete all the tables inside, but only if the range is not
entirely inside of a table. If a range is inside of a table, the
Tables property returns that parent table and it gets deleted instead.
Does anyone know how to get the tables that are inside of a range,
without getting the table that the range is inside of. Even better
would be a mechanism to delete everything within a Range, including
text, tables, drawing objects, etc., but I have pretty much given up
on that approach and labeled it impossible without iterating through
each of these individually..