![]() |
|
#3
|
||||
|
||||
|
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] |
| Tags |
| content controls, selection, table |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
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 |
Allow Multiple Content Control same cell of form table
|
DeborahBartlett | Word | 1 | 01-04-2014 11:06 AM |
Deleting a table from a content control -- preserving the content control
|
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |
Clearing content control tick box within table
|
jillapass | Word VBA | 1 | 08-08-2012 04:58 PM |