【问题标题】:How to make "getValue()" working for me again如何让“getValue()”再次为我工作
【发布时间】:2016-10-03 15:52:42
【问题描述】:

我有一个运行良好的现有 google 电子表格 + 脚本。但从 1 周前突然停止工作。


在我的电子表格中,我使用以下命令下载 200 天的历史股票价格:

=googlefinance(B1,ʺcloseʺ,today()-200,today())   ; //cell B1 contains the ticker symbol. It populates the values from cell B3 – B142

现在我有一个脚本,我首先在其中设置单元格B1 的值。等待 10 秒。然后我提取特定单元格的值(包含历史价格)。

var xyz = sheet.getRange('B100').getValues();

这条线不工作。当我打印xyz 的值时,它始终为空。但是,如果我从工作表中提取任何其他静态值,我会正确获得该值。任何见解,非常感谢。

【问题讨论】:

    标签: google-sheets-api


    【解决方案1】:

    很遗憾,Sheets API 或脚本不支持此功能。详情请见https://gsuiteupdates.googleblog.com/2016/09/historical-googlefinance-data-no-longer.html

    【讨论】:

    • Grrrrrr ......感谢山姆的澄清。这解释了为什么我完美运行的脚本突然停止工作。我现在需要找到不同的策略。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-02-17
    • 1970-01-01
    • 2011-03-11
    • 2020-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多