Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-10-2013, 11:08 AM
BrainSlugs83's Avatar
BrainSlugs83 BrainSlugs83 is offline Deleting a table from a content control -- preserving the content control Windows 7 64bit Deleting a table from a content control -- preserving the content control Office 2010 32bit
Novice
Deleting a table from a content control -- preserving the content control
 
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
 

Tags
content controls, deleting, tables



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting a table from a content control -- preserving the content control Hierarchical content control ntjson Word VBA 1 04-04-2013 12:07 AM
Deleting a table from a content control -- preserving the content control Clearing content control tick box within table jillapass Word VBA 1 08-08-2012 04:58 PM
Word2010 check boxes and plain text content control boxes in same table fcsungard Word 5 06-01-2012 01:16 AM
Deleting a table from a content control -- preserving the content control Content control titles jillapass Word VBA 3 05-29-2012 06:11 AM
Retrieving content control value jillapass Word VBA 4 05-24-2012 05:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft