Reply To: Define table row heights, column widths in styles somehow?

Home Page / Forums / General InDesign Topics (CLOSED) / Define table row heights, column widths in styles somehow? / Reply To: Define table row heights, column widths in styles somehow?

#14323695
Len Zigante
Participant

My apologies for adding to this thread.

Thank you Theunis; what you provided more than covers what I am looking for – I’ll likely utilize your cell identification method in some future script. With a bit of tweaking I made your code do what I need. Here is the script incase anyone needs something similar without bothering to identify each cell in the table to be formatted :

tableStyleName = ‘Geometry’; // name of the table(s) to be formatted (only)
tablearray = app.activeDocument.stories.everyItem().tables.everyItem().getElements();

for (t=0; t<tablearray.length; t++)
{
if (tablearray[t].appliedTableStyle.name == tableStyleName)
{
tablearray[t].rows.everyItem().height = “11.428pt”;
tablearray[t].rows[0].height = “16.994pt”;
tablearray[t].rows[1].height = “17.176pt”;
}
}

This article was last modified on November 15, 2019

Comments (0)

Loading comments...