Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
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 is almost exactly what I’ve been looking for. The only thing I need now is some way to only apply the cell size changes to tables that are of table style “Geometry”. Would someone here please explain how I should do this?
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.