View Single Post
 
Old 10-10-2013, 11:08 AM
BrainSlugs83's Avatar
BrainSlugs83 BrainSlugs83 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Oct 2013
Location: Kirkland, WA
Posts: 5
BrainSlugs83 is on a distinguished road
Default 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
Reply With Quote