Reply To: Get Selected Table Rows With ExtendScript?

#14323323
Brian Pifer
Participant

Resurrecting this thread, as I’m struggling to get certain rows selected in a table.

I want to select all rows after a certain point in the table using itemByRange. I’m trying the following.

var rowsToMove = table.rows.itemByRange(i, rowCount-1).getElements();
app.select(rowsToMove, SelectionOptions.REPLACE_WITH);

I get the following error on the app.select line: Error Code# 30477: Invalid value for parameter ‘selectableItems’ of method ‘select’. Expected Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator, but received (Row, Row, Row, Row, Row, Row)

I’ve tried setting app.selection[0] = rowsToMove; I’ve tried rowsToMove without the getElements(). Mind-boggling.

Any thoughts? Thanks.

This article was last modified on January 8, 2020

Comments (0)

Loading comments...