簡體   English   中英

如何使用 Apps 腳本刪除 Google 表格中的行?

[英]How to delete rows in Google Sheets using Apps Script?

我是腳本新手,想在我的 Google 表格中使用 Google 的 Apps 腳本。

我使用的是來自 Google Workplace Marketplace 的報告連接器,由於默認程序,它引入了不必要的數據。

我只需要一個腳本來自動刪除我的 Google 表格中的前 7 行。 它不依賴於文本,它們只需要被刪除。

提前致謝!

function drows() {
  SpreadsheetApp.getActiveSheet().deleteRows(1,7);
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM