ImportRange
does update automatically—just not instantly. Give it 5 minutes.
- It won't update until you open the spreadsheet and
- The one opening it must have "read" permission to the source.
If you really want to do it with code, use SpreadsheetApp.openById
, getSheetByName
, and getRange
get
/setValues
.