View Single Post
 
Old 01-03-2016, 11:59 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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