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 从公开仓库中收录这些内容。

举报或申请下架