Not all cells in the table getting formatted except just the first one.
var doc = app.activeDocument,
_pages = doc.pages, i, j, k, l,
_textframes, _tables, _row, _cell, rownum;
for (i = 0; i < _pages.length; i++) {
_tables = _pages.item(i).Tables;
for (j = 0; j < _tables.length; j++) {
_row = _tables.item(i).rows;
rowlen = _row.length;
for (k = 0; k < _row.length; k++) {
_cell = _row.item(i).cells;
for (l = 0; l < _cell.length; l++) {
_cell.item(i).appliedCellStyle = "CellA";
_cell.item(i).paragraphs.everyItem().appliedParagraphStyle = "ParA";
}
}
}
}
Hi, I am stuck in this code. I want to format all the cells in the table but using the above code only the first cell of first row is getting formatted . The other problem is that in all the rows it is couting only one cell. "CellA" and "ParA" are the cell styles and paragraph styles which I made in my pc. I am relatively new to indesign scripting and trying to learn something new.