• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

script to unmerge specific cells in a table

Community Beginner ,
May 10, 2018 May 10, 2018

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

TOPICS
Scripting

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , May 10, 2018 May 10, 2018

app.activeDocument.stories.everyItem().tables[0].columns[0].cells[0].unmerge();

Votes

Translate

Translate
Enthusiast ,
May 10, 2018 May 10, 2018

Copy link to clipboard

Copied

app.activeDocument.stories.everyItem().tables[0].columns[0].cells[0].unmerge();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 10, 2018 May 10, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 10, 2018 May 10, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 10, 2018 May 10, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines