Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-31-2015, 05:59 AM
denise do rocio maciel denise do rocio maciel is offline Edit table in content control Windows 7 64bit Edit table in content control Office 2010 64bit
Novice
Edit table in content control
 
Join Date: Dec 2015
Posts: 2
denise do rocio maciel is on a distinguished road
Exclamation Edit table in content control


Sorry my English,
I need to change the color of the first row of the table , but the table is involted in a component controls.

I select the component control with
Content Control.Range.Select
But I don't know how select the cells of table for edit them
Thank you
Reply With Quote
  #2  
Old 12-31-2015, 06:55 AM
denise do rocio maciel denise do rocio maciel is offline Edit table in content control Windows 7 64bit Edit table in content control Office 2010 64bit
Novice
Edit table in content control
 
Join Date: Dec 2015
Posts: 2
denise do rocio maciel is on a distinguished road
Default

Solved,
for select a table in componente control is need write:
ContentControl.Range.Select
ContentControls.Range.Tables(1).Select
If you want format the table...
Seloection.Shading.{...}
Reply With Quote
  #3  
Old 01-03-2016, 11:59 PM
macropod's Avatar
macropod macropod is offline Edit table in content control Windows 7 64bit Edit table in content control Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

There is no need to select anything. For example, the following code will shade the first row of the first table in the first content control in the active document:
Code:
ActiveDocument.ContentControls(1).Range.Tables(1).Rows(1).Shading.BackgroundPatternColorIndex = wdBrightGreen
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
content controls, selection, table



Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit table in content control Clicking the selected Content Control checkbox returns wrong control in vba event DougsGraphics Word VBA 2 06-24-2015 07:31 AM
Copy content control entries to next table next page Mel_Herndon Word VBA 2 05-22-2014 05:07 PM
Edit table in content control Allow Multiple Content Control same cell of form table DeborahBartlett Word 1 01-04-2014 11:06 AM
Edit table in content control Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM
Edit table in content control Clearing content control tick box within table jillapass Word VBA 1 08-08-2012 04:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:12 PM.


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