Skip to main content
Inspiring
June 11, 2022
Answered

Get the total cell length in the table

  • June 11, 2022
  • 1 reply
  • 164 views

Hi,

I need to get the cell of all the tables which is present in the document. But now I to select the cell to get the cell count. Please guide me to get all the cell count length which is present inside the document. 

"app.selection[0].cells.everyItem().getElements().length"

 

 

This topic has been closed for replies.
Correct answer brian_p_dts

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().getElements().length

1 reply

brian_p_dts
Community Expert
brian_p_dtsCommunity ExpertCorrect answer
Community Expert
June 11, 2022

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().getElements().length