Deleting a table from a content control -- preserving the content control
Hey guys, this is more of a content controls question than a tables question -- but it has to do with tables.
I have a content control that has a table in it -- and ONLY a table in it (like if you look at the open XML there are no paragraphs above or below it -- when I delete the table via calling cc.Range.Tables(1).Delete [either in VBA or VSTO] -- the table gets deleted AND the content control.
I need to just empty the content control -- calling cc.Range.Delete leaves the table intact -- inserting XML over the top of the cc.Range just puts the XML into the first cell of the table... I'm at my wit's end here.
How do you delete the table (or content from a content control in general) and preserve the container?
Thanks,
--Mikey
|