Skip to main content
dublove
Legend
Sep 16, 2025 7:38 AM UTC
Answered

How can I individually access multiple selected cells?

For example:
I dragged to select three cells. I want to access each selected cell individually to control them separately.
var cells= app.selection;
alert(cells.length);

 

My goal is to obtain cell[i].

but,  It seems to return 1 instead of 3.

 

 

LaubenderCorrect answer
Community Expert
Sep 16, 2025 8:43 AM UTC

Hi @dublove ,

did you try:

var selectedCellsArray = app.selection[0].cells.everyItem().getElements();
alert( selectedCellsArray.length );

?

 

Kind regards,
Uwe Laubender
( Adobe Community Expert )

1 reply

LaubenderCommunity ExpertCorrect answer
Community Expert
Sep 16, 2025 8:43 AM UTC

Hi @dublove ,

did you try:

var selectedCellsArray = app.selection[0].cells.everyItem().getElements();
alert( selectedCellsArray.length );

?

 

Kind regards,
Uwe Laubender
( Adobe Community Expert )

Translate