Answered
How to convert a newly generated array of cells into a collection of cells?
Hellow everyone.
I want to generate new selections for some of the selected cells based on a certain condition.
For example, I want to convert the first half of the current column into a new selection (although the actual conditions are more complex than this)
I found that following the following approach yields an array, not a collection of cells.
var item=app.selection[0]
//Please select a cell
var c = item.cells;
var cl = c.length;
var curHalfColumn=[];
var curColumn=c[0].parentColumn;
//Filter cells that meet the criteria
for(i=0;i<curColumn.cells.length/2;i++){
curHalfColumn.push(curColumn.cells[i])
}
