Copy link to clipboard
Copied
Hi,
I have a Indesign document with 100's of tables. The tables have merged cells that I would like to unmerge.
The following script works very well but it unmerges all merged cells within the document - I only want to unmerge the 1st cell in the 1st column.
app.activeDocument.stories.everyItem( ).tables.everyItem( ).cells.everyItem( ).unmerge( );
My question is:
is there a way to specify to only unmerge specific cells in a table e.g 1st column, 1st Cell?
There is no need for the script to manage content like text because the existing text can be deleted.
thank you in advance for any advice
David
app.activeDocument.stories.everyItem().tables[0].columns[0].cells[0].unmerge();
Copy link to clipboard
Copied
app.activeDocument.stories.everyItem().tables[0].columns[0].cells[0].unmerge();
Copy link to clipboard
Copied
Hi,
Would that script only un-merge the first table, would it not need to be
app.activeDocument.stories.everyItem().tables.everyItem().columns[0].cells[0].unmerge();
to un-merge all the 1st cells in the 1st columns.
Regards
Malcolm
Copy link to clipboard
Copied
Hi Malcolm,
I tried both your and Chinnadks answers and they both work - hard to pick who gets the star but Chinnadk replied first.
thank you again
Copy link to clipboard
Copied
thank you for your help.
I tried your script and the one from Malcolm and they both work.
thanks again