Answered
rob dayCorrect answer
Community Expert
Aug 7, 2026 3:41 PM UTC
Prerequisite: I have already selected cells from multiple columns
Hi
You could try something like this, which works on your sample:
//this assumes selection[0] is [object Cell]
var s = app.activeDocument.selection[0]
var col = s.cells[0].parentColumn.cells
for (var i = 1; i < col.length; i++){
try {
if (col[i].insertionPoints[0].horizontalOffset == col[0].insertionPoints[0].horizontalOffset) {
col[i].select(SelectionOptions.ADD_TO)
}
}catch(e) {}
};
Result with your example:

But if I change the position of the text frames so they align vertically I get this:


