Function IMPORTRANGE is not updating

感情迁移 提交于 2019-12-13 06:24:17

问题


I want to use the IMPORTRANGE function every time I open one spreadsheet so this opened spreadsheet can be synchronized with another spreadsheet. So, in A1, I put a call formula like this:

=importrange("0AmEr9uNtZwnNdDFKMTVlbmZYZ3ZyOWM0aXpZS2twM1x";  "myData!A1:W384")

But this IMPORTRANGE call remains static. That is, once imported, the data isn't updated when the imported sheet is changed.

So what is wrong? I wonder if I can use IMPORTRANGE, a spreadsheet function, within a Google Apps Script (which is like JS code).

How can I call a spreadsheet function inside a script?


回答1:


ImportRange does update automatically just not instantly, give it 5min. Now, 1) it wont update until you open the spreadsheet and 2) the one opening it must have read permission to the source. If you really want to do it with code, use SpreadsheetApp.openById, getSheetByName, getRange get/setValues.



来源:https://stackoverflow.com/questions/20461439/function-importrange-is-not-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!