I tried:
table.selectionRange = table.ranges["C6:C7"];
Gets: Error -1728: Can't get object.
I am able to use the table object: Eg: table.rowCount();
Any ideas?
Note: Syntax 'table.selectionRange = table.ranges["C6:C7"];' was posted as a solution here: How to make a range in Numbers (iWork) using JXA
Added for further clarity:
Logger.logInfo("#Rows " + table.rowCount());
Logger.logInfo("Current Range " + table.selectionRange.name());
Logger.logInfo("#Cols " + table.columnCount());
table.selectionRange = table.ranges["C6:C7"];
Logger.logInfo("New Range " + table.selectionRange.name());
Gives:
/* 2018/02/02 @ 19:36:27.020: Info : BlockPriceUpdateYPF: #Rows 34 */
/* 2018/02/02 @ 19:36:27.023: Info : BlockPriceUpdateYPF: Current Range C5:G31 */
/* 2018/02/02 @ 19:36:27.025: Info : BlockPriceUpdateYPF: #Cols 15 */
Result: Error -1728: Can't get object.