【问题标题】:Google Spreadsheets: Show Document URL in cell. Possible?Google 电子表格:在单元格中显示文档 URL。可能的?
【发布时间】:2014-01-14 17:09:37
【问题描述】:

简单问题:我想在特定单元格中获取活动文档(谷歌电子表格)的 URL。

所以如果我在https://docs.google.com/spreadsheet/ccc?key=XXXXXXXXXXXXXXXXXX&usp=drive_web#gid=16A1中输入=GetUrl()@

应该给我结果 https://docs.google.com/spreadsheet/ccc?key=XXXXXXXXXXXXXXXXXX&usp=drive_web#gid=16 在单元格 A1

【问题讨论】:

    标签: url google-apps-script google-sheets cell


    【解决方案1】:

    这样的函数可能有用:

    function GetUrl() {
      var ss = SpreadsheetApp.getActiveSpreadsheet();
      return ss.getUrl();
    }
    

    检查:Class Spreadsheet - getUrl()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-08
      • 2013-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多