Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
谷歌电子表格:在单元格中显示文档URL。可能的_Url_Google Apps Script_Google Sheets_Cell - Fatal编程技术网

谷歌电子表格:在单元格中显示文档URL。可能的

谷歌电子表格:在单元格中显示文档URL。可能的,url,google-apps-script,google-sheets,cell,Url,Google Apps Script,Google Sheets,Cell,简单问题:我想在特定的单元格中获取活动文档(谷歌电子表格)的URL 因此,如果我在的A1中输入=GetUrl() 你应该告诉我结果 在单元格A1中,这样的函数可能很有用: 函数GetUrl(){ var ss=SpreadsheetApp.getActiveSpreadsheet(); 返回ss.getUrl(); } 支票:-

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

因此,如果我在的A1中输入=GetUrl()

你应该告诉我结果
在单元格A1中,这样的函数可能很有用:

函数GetUrl(){ var ss=SpreadsheetApp.getActiveSpreadsheet(); 返回ss.getUrl(); }

支票:-