Copy link to clipboard
Copied
Is there a way to restart the sequence of alternating rows? In the example, the tables are separate individual tables. But, I would like to have one continuous table, with a row after [125 B 40-78], and then restart the sequence [150 A 32-64] with a gray row.
No. You set up a pattern (shade every other row, every 2nd row, etc.) and other than the option to skip the first or last row, it runs continuously through the table.
You are talking about the row shading, aren't you? (Now I'm not sure.)
Copy link to clipboard
Copied
No. You set up a pattern (shade every other row, every 2nd row, etc.) and other than the option to skip the first or last row, it runs continuously through the table.
You are talking about the row shading, aren't you? (Now I'm not sure.)
Copy link to clipboard
Copied
Yes, the issue is the row shading. I was hoping for some trick (pun intended) that would work similarly to restart numbering for a list.
Copy link to clipboard
Copied
Jeffery, the starting and ending alternating colors are scriptable, so you could try this example—you have to select the container text frame that holds the tables before running the script:
var sel=app.activeDocument.selection[0].tables;
var lt, r1, r2;
for (var i = 1; i < sel.length; i++){
//get the previous table's last 2 rows
lt=sel[i-1].rows.length;
r1=sel[i-1].rows[lt-2];
r2=sel[i-1].rows[lt-1];
sel.startRowFillColor=r1.fillColor;
sel.endRowFillColor=r2.fillColor;
sel.startRowFillTint=r1.fillTint;
sel.startRowFillTint=r2.fillTint;
};
Does this:
After:
Copy link to clipboard
Copied
Rob, thanks for the script suggestion. It appears as though your script works with multiple tables within a frame. And what I was hoping to do was have one frame with one continuous table, and start a row shading sequence at a specific row, then restart it again at another point, etc.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now