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

How can I individually access multiple selected cells?

Guide ,
Sep 16, 2025 Sep 16, 2025

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.

 

dublove_0-1758008244266.jpeg

 

TOPICS
How to , Scripting
68
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 , Sep 16, 2025 Sep 16, 2025

Hi @dublove ,

did you try:

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

?

 

Kind regards,
Uwe Laubender
( Adobe Community Expert )

Translate
Community Expert ,
Sep 16, 2025 Sep 16, 2025
LATEST

Hi @dublove ,

did you try:

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

?

 

Kind regards,
Uwe Laubender
( Adobe Community Expert )

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