Recipe Copy Sheet For New Month

作者 googleworkspacea3768d0e82ad無授權條款31K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

Duplicate a Google Sheets template tab for a new month of tracking.

AI 產生的概覽

複製 Google 試算表範本工作表分頁,並為新月份重新命名,用於新一輪追蹤。

功能
這個配方說明如何在 Google 試算表中複製範本工作表分頁,以便開始新一個月的追蹤。它使用 gws 命令列工具取得試算表詳細資料、將範本工作表複製到同一個試算表,並重新命名新分頁。最後會得到一個已重新命名、可供新月份使用的工作表。
適用情境
適合在新的追蹤週期開始時,試算表中已有可重複使用的範本工作表。適用於每月重複使用相同版面的追蹤情境。
執行需求
需要 gws 命令列工具與 gws-sheets 技能。需要存取目標 Google 試算表,以及其 spreadsheet ID 和 sheet ID。此技能未附帶指令碼,僅為操作說明。

Copy a Google Sheet for a New Month

PREREQUISITE: Load the following skills to execute this recipe: gws-sheets

Duplicate a Google Sheets template tab for a new month of tracking.

Steps

  1. Get spreadsheet details: gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}'
  2. Copy the template sheet: gws sheets spreadsheets sheets copyTo --params '{"spreadsheetId": "SHEET_ID", "sheetId": 0}' --json '{"destinationSpreadsheetId": "SHEET_ID"}'
  3. Rename the new tab: gws sheets spreadsheets batchUpdate --params '{"spreadsheetId": "SHEET_ID"}' --json '{"requests": [{"updateSheetProperties": {"properties": {"sheetId": 123, "title": "February 2025"}, "fields": "title"}}]}'

來源與署名

來源:googleworkspace/cli位於skills/recipe-copy-sheet-for-new-month提交a3768d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架