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

Unmerge table cells scritp. Help

New Here ,
Feb 05, 2016 Feb 05, 2016

I need a script that would unmerge all cells whitin all of the tables found in active text frame. Aditionally it would resize collum widths and row heights to accomodate hidden text.

I have lots of badly put togehter tables from Word. Automation would help a lot.

Thx!

TOPICS
Scripting
1.5K
Translate
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

Community Expert , Feb 08, 2016 Feb 08, 2016

This one-liner unmerges all cells in all tables in the active document:

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().unmerge();

Peter

Translate
Community Expert ,
Feb 05, 2016 Feb 05, 2016
Translate
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
New Here ,
Feb 08, 2016 Feb 08, 2016

Michael thank you for that. Now I just need the fisrt part of my wish resoleved and it will be a happy day. Unmearge of all mearged cells whitin all of the tables found whitin active text box.

Translate
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 ,
Feb 08, 2016 Feb 08, 2016

This one-liner unmerges all cells in all tables in the active document:

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().unmerge();

Peter

Translate
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
New Here ,
Feb 08, 2016 Feb 08, 2016

thnk you very much pkahrel!

Translate
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

Hi Peter,

I have seen your script for unmerging all merged cells in tables within a document (which works very well) but is there a way to specify to only merge specific cells in a table e.g 1st column, rows 1, 2 and 3.

I have a indesign document that has 100's of tables and a script would be very helpful.

thank you

David

Translate
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

Hello David,

I'm sure there is one, but I don't know of it. Maybe ask in InDesign's

scripting forum.

best,

Peter

On Thu, 10 May 2018 08:05:31 +0100, frontline design

Translate
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
LATEST

thanks for your help.

Translate
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