Change text color in tables! …
Hi Scripters,
I'm trying to change color of the text in some rows but not all! As:


… with this code:
var
myDoc = app.activeDocument,
myTables = myDoc.stories.everyItem().tables.everyItem().getElements();
for ( var t = 0 ; t < myTables.length; t++ )
{
var myRows = myTables
.rows; for ( var r = 1 ; r < myRows.length; r += 2 )
{
var myCells = myRows
.cells; for ( var c = 0 ; c < myCells.length; c++ )
{
myCells
.contents.fillColor = myDoc.colors.itemByName("Blue"); }
}
}
… But, of course, it doesn't work!
As usual, thanks for your help! ![]()
(^/)
