首页 > 解决方案 > 是否可以使用 sheet.spreadsheets v4 将空白表添加到谷歌电子表格?

问题描述

当前的 api 是https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.sheets/copyTo

这是一种解决方法,因为我必须先复制现有工作表,然后在使用它之前清除其内容。

Google App Script 具有 InsertSheet,但在 sheet v4 api 中缺失。为什么谷歌团队会决定不做这么简单的一个?

标签: google-sheetsgoogle-sheets-api

解决方案


好吧,这不是直截了当的。但是答案是在工作表操作的批处理更新中 https://developers.google.com/sheets/api/samples/sheet#add_a_sheet


推荐阅读