Copy link to clipboard
Copied
Hi All
Is there a way to merge specific cells in a table into 1 cell all around the table at once in Indesign?
in many rows, i have 3 repeating cells that i need to merge into 1 cell.
is there a way to merge these cells with a script or a method in Indesign?
tnx
Amir
Hi Amir,
see into this here where Marc Autret wrote a script for merging cells:
Indiscripts :: Improve the Way you Merge Cells in InDesign
Perhaps it's not exactly what you want, but I think, you could benefit from it.
Here a use case of this script. Supposed all cells that I colored should be merged vertically.
With adjacent columns we can use Marc's script to our advantage. Select nothing. Double-click the script in the Scripts panel to do some preferences:
Now select adjacent cells—unfortunately o
...Copy link to clipboard
Copied
Copy link to clipboard
Copied
If it can be scripted, and I have my doubts, I'm not the guy who'll write it. Unfortunately, I suspect this can only be done manually as described in the help file linked by amaarora.
Copy link to clipboard
Copied
Hi,
??? Screenshots, please? Thanks!
(^/)
Copy link to clipboard
Copied
//given myTable is a proper reference to an indesign table object and has at least two cells
myTable.cells[0].merge ( myTable.cells[1] );
Copy link to clipboard
Copied
Hi amirt78,
I would like to know if the steps suggested above worked for you, or the issue still persists.
Kindly update the discussion if you need further assistance with it.
Thanks,
Srishti
Copy link to clipboard
Copied
Hi Amir,
see into this here where Marc Autret wrote a script for merging cells:
Indiscripts :: Improve the Way you Merge Cells in InDesign
Perhaps it's not exactly what you want, but I think, you could benefit from it.
Here a use case of this script. Supposed all cells that I colored should be merged vertically.
With adjacent columns we can use Marc's script to our advantage. Select nothing. Double-click the script in the Scripts panel to do some preferences:
Now select adjacent cells—unfortunately one cannot select cells that are not next to each other—and run the script:
After running the script:
In effect all that means, that working on all other merges would require 5 additional steps.
In this case the script can be used, but it will not diminish the required number of steps.
The main problem in writing scripts like that is how one can identify cells that should be merged.
When your only means is to do selections of cells you can minimize the steps by using Marc's script. In every other case a new script has to be written, provided you can formulate a common rule what cells should be merged.
E.g.: Merge all adjacent cells vertically that are colored with color "x".
Regards,
Uwe
Find more inspiration, events, and resources on the new Adobe Community
Explore Now