{"id":248,"date":"2025-05-26T10:59:09","date_gmt":"2025-05-26T01:59:09","guid":{"rendered":"https:\/\/cg-method.com\/google\/?p=248"},"modified":"2026-10-28T20:49:34","modified_gmt":"2026-10-28T11:49:34","slug":"google-sheets-copy-template-check-checkbox","status":"publish","type":"post","link":"https:\/\/cg-method.com\/google\/google-sheets-copy-template-check-checkbox\/","title":{"rendered":"Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u65e5\u4ed8\u5225\u306b\u8907\u88fd\uff06\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u51e6\u7406\u3082\u81ea\u52d5\u5316\u3059\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Google Apps Script\uff08GAS\uff09\u3067\u3001\u6b21\u306e\u51e6\u7406\u3092\u307e\u3068\u3081\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list is-style-num_circle\">\n<li>\u65e5\u4ed8\u3092\u3082\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4ed8\u3051\u3066<\/li>\n\n\n\n<li>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u30b3\u30d4\u30fc<\/li>\n\n\n\n<li>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u72b6\u614b\u3092\u78ba\u8a8d<\/li>\n\n\n\n<li>\u30b3\u30d4\u30fc\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u30b7\u30fc\u30c8\u3092\u8907\u88fd\u30fb\u30ea\u30cd\u30fc\u30e0<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a18\u9332\u7528\u30d5\u30a1\u30a4\u30eb\u306eA1\u306f\u51fa\u529bID\u3001A2\u306f\u51e6\u7406\u72b6\u614b\u3001A3\u306f\u5165\u529b\u65e5\u4ed8\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A1\u30fbA2\u306f\u5c02\u7528\u30bb\u30eb\u3068\u3057\u3066\u78ba\u4fdd\u3057\u3001\u65e2\u5b58\u306e\u5185\u5bb9\u3092\u63a7\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u521d\u56de\u306fA1\u3092\u7a7a\u306b\u3057\u3001A3\u3078\u65e5\u4ed8\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u308b\u5024\uff08\u4f8b\uff1a2019\/08\/26\uff09\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A3\u306e\u65e5\u4ed8\u306f\u6d88\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u30c6\u30b9\u30c8\u7528\u306e\u8a18\u9332\u30d5\u30a1\u30a4\u30eb\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30fb\u4fdd\u5b58\u5148\u30d5\u30a9\u30eb\u30c0\u3092\u7528\u610f\u3057\u307e\u3059\u3002\u8a18\u9332\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u300c\u30b7\u30fc\u30c81\u300d\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306f\u300c\u30b3\u30d4\u30fc\u5143\u300d\u30b7\u30fc\u30c8\u3092\u4f5c\u308a\u3001\u30b3\u30d4\u30fc\u5143\u306eA1:H1\u3092\u3059\u3079\u3066\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6a19\u6e96\u5024\u3068\u30ab\u30b9\u30bf\u30e0\u5024\u306e\u4e21\u65b9\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u65e5\u4ed8\u5225\u306b\u8907\u88fd\uff06\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u51e6\u7406\u3082\u81ea\u52d5\u5316\u3059\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5404\u6bb5\u968e\u306e\u30b3\u30fc\u30c9\u306f\u6d41\u308c\u3092\u793a\u3059\u629c\u7c8b\u3067\u3059\u3002\u5b9f\u884c\u3059\u308b\u3068\u304d\u306f\u300c\u30b3\u30fc\u30c9\u306e\u307e\u3068\u3081\u300d\u306e\u5168\u4f53\u3092\u4f7f\u3044\u30013\u3064\u306eID\u3092\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002Apps Script\u30a8\u30c7\u30a3\u30bf\u3067myFunction\u3092\u9078\u3093\u3067\u5b9f\u884c\u3057\u3001\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u3068Drive\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u627f\u8a8d\u3057\u307e\u3059\u3002\u30bb\u30eb\u5185\u306e\u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u3068\u3057\u3066\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Phase1\uff1a\u65e5\u4ed8\u306e\u53d6\u5f97\u3068\u6574\u5f62<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const input = LogFileSheet.getRange(&#x27;A3&#x27;).getValue();\nif (!(input instanceof Date) || isNaN(input.getTime())) {\n  throw new Error(&#x27;A3\u306b\u6709\u52b9\u306a\u65e5\u4ed8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n}\nconst date = Utilities.formatDate(input, LogFile.getSpreadsheetTimeZone(), &#x27;yyMMdd&#x27;);<\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e <code>A3\u30bb\u30eb<\/code> \u306b\u3042\u308b\u65e5\u4ed8\uff08\u4f8b\uff1a2019\/08\/26\uff09\u3092\u53d6\u5f97<\/li>\n\n\n\n<li><code>yyMMdd<\/code> \u5f62\u5f0f\u306b\u5909\u63db \u2192 <code>190826<\/code> \u306e\u5f62\u5f0f\u306b\u6574\u5f62<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u307b\u304b\u306e\u64cd\u4f5c\u65b9\u6cd5\u306f\u3001\u307e\u3068\u3081\u8a18\u4e8b\u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2026\/09\/google-apps-matome-3-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-apps-matome\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30fb\u30c9\u30e9\u30a4\u30d6\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\uff5c\u95a2\u6570\u3068GAS<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Google\u306e\u64cd\u4f5c\u3092\u300c\u4f55\u3092\u3057\u305f\u3044\u304b\u300d\u304b\u3089\u63a2\u305b\u308b\u30ac\u30a4\u30c9\u3067\u3059\u3002 \u307e\u305a\u6a19\u6e96\u306e\u753b\u9762\u64cd\u4f5c\u3084\u95a2\u6570\u3067\u89e3\u6c7a\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3001\u7e70\u308a\u8fd4\u3059\u51e6\u7406\u306bGAS\u3092\u4f7f\u3044\u307e\u3059\u3002 \u76ee\u7684\u304b\u3089\u624b\u9806\u3092\u9078\u3076 \u3084\u308a\u305f&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h3 class=\"wp-block-heading\">Phase2\uff1a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8907\u88fd\u3068ID\u66f8\u304d\u8fbc\u307f<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const CopiedDriveFile = templateFile.makeCopy(OutputFileName, OutputFolder);\nconst CopiedFileId = CopiedDriveFile.getId();\nLogFileSheet.getRange(&#x27;A1&#x27;).setValue(CopiedFileId);<\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6307\u5b9a\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8907\u88fd<\/li>\n\n\n\n<li>\u5143\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u300c_\u65e5\u4ed8\u300d\u3092\u4ed8\u3051\u305f\u540d\u524d\u3067\u4fdd\u5b58\u3002\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308c\u3070\u8907\u88fd\u524d\u306b\u505c\u6b62<\/li>\n\n\n\n<li>\u8907\u88fd\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306eID\u3092\u8a18\u9332\u7528\u30b7\u30fc\u30c8\u306e <code>A1\u30bb\u30eb<\/code> \u306b\u66f8\u304d\u8fbc\u307f<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Phase3\uff1a\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u78ba\u8a8d<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const cells = CopiedFileSheet.getRange(&#x27;A1:H1&#x27;);\nlet checked = 0;\nfor (let col = 1; col &lt;= 8; col++) {\n  const state = cells.getCell(1, col).isChecked();\n  if (state === null) throw new Error(&#x27;A1:H1\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n  if (state) checked++;\n}\nLogFileSheet.getRange(&#x27;A2&#x27;).setValue(&#x27;\u30c1\u30a7\u30c3\u30af\u3042\u308a: &#x27; + checked + &#x27;\u4ef6&#x27;);<\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8907\u88fd\u3057\u305f\u30b7\u30fc\u30c8\u306e1\u884c\u76ee\u30fb1\u301c8\u5217\u76ee\u3092\u78ba\u8a8d<\/li>\n\n\n\n<li><code>isChecked()<\/code>\u30671\u30bb\u30eb\u305a\u3064\u5224\u5b9a\u3057\u3001\u30c1\u30a7\u30c3\u30af\u6570\u3092A2\u3078\u8a18\u9332\u3002\u5168\u4f53\u30b3\u30fc\u30c9\u3067\u306f\u30b7\u30fc\u30c8\u8907\u88fd\u5f8c\u306b\u300c\u5b8c\u4e86\u300d\u3068\u3068\u3082\u306b\u8a18\u9332<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Phase4\uff1a\u30b7\u30fc\u30c8\u306e\u30b3\u30d4\u30fc\u3068\u4e26\u3073\u9806\u8abf\u6574<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const DateSheet = CopiedFileSheet.copyTo(CopiedFile);\nDateSheet.setName(date);\nCopiedFile.setActiveSheet(DateSheet);\nCopiedFile.moveActiveSheet(1);<\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8907\u88fd\u5148\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u300c\u30b3\u30d4\u30fc\u5143\u300d\u30b7\u30fc\u30c8\u3092\u8907\u88fd<\/li>\n\n\n\n<li>\u65e5\u4ed8\uff08\u4f8b\uff1a190826\uff09\u3092\u30b7\u30fc\u30c8\u540d\u306b\u8a2d\u5b9a<\/li>\n\n\n\n<li>\u30b7\u30fc\u30c8\u3092\u5148\u982d\uff08\u4e00\u756a\u5de6\uff09\u306b\u79fb\u52d5\u3057\u3066\u6574\u7406<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u306e\u307e\u3068\u3081<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u304c\u5168\u4f53\u30b3\u30fc\u30c9\u3067\u3059\u3002\u8a18\u9332\u7528A1\u304c\u7a7a\u3067\u306a\u3044\u5834\u5408\u306f\u518d\u5b9f\u884c\u3092\u6b62\u3081\u307e\u3059\u3002\u30ed\u30c3\u30af\u306f\u540c\u3058\u30b9\u30af\u30ea\u30d7\u30c8\u5185\u306e\u540c\u6642\u5b9f\u884c\u3092\u6291\u3048\u308b\u3082\u306e\u3067\u3001\u4eba\u306e\u7de8\u96c6\u3084\u5225\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u306e\u51e6\u7406\u306f\u9632\u304e\u307e\u305b\u3093\u3002\u9014\u4e2d\u306e\u30a8\u30e9\u30fc\u3067\u4f5c\u6210\u6e08\u307f\u30d5\u30a1\u30a4\u30eb\u304c\u6b8b\u308b\u5834\u5408\u306f\u3001A1\u306eID\u3068\u4fdd\u5b58\u5148\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u81ea\u52d5\u524a\u9664\u3084\u5168\u51e6\u7406\u306e\u53d6\u308a\u6d88\u3057\u306f\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ed\u30c3\u30af\u89e3\u9664\u524d\u306e\u66f8\u304d\u8fbc\u307f\u78ba\u5b9a\u306f\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/lock\/lock#releaseLock()\">Google\u306eLock\u8cc7\u6599<\/a>\u306b\u6cbf\u3063\u3066<code>SpreadsheetApp.flush()<\/code>\u3092\u547c\u3073\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2026\u5e7410\u670828\u65e5\u306b\u30ed\u30fc\u30ab\u30eb\u6a21\u64ec\u8a66\u9a13\u3067\u51e6\u7406\u9806\u3068\u4f8b\u5916\u6642\u306e\u89e3\u9664\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google\u4e0a\u306e\u5b9f\u969b\u306e\u8907\u88fd\u30fb\u66f8\u304d\u8fbc\u307f\u30fb\u4e26\u884c\u5b9f\u884c\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>function myFunction() {\n  const lock = LockService.getScriptLock();\n  if (!lock.tryLock(10000)) throw new Error(&#x27;\u540c\u3058\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5225\u306e\u51e6\u7406\u304c\u5b9f\u884c\u4e2d\u3067\u3059&#x27;);\n  try {\n    const LogFile = SpreadsheetApp.openById(&#x27;\u8a18\u9332\u7528\u306e\u30b7\u30fc\u30c8ID&#x27;);\n    const LogFileSheet = LogFile.getSheetByName(&#x27;\u30b7\u30fc\u30c81&#x27;);\n    if (!LogFileSheet) throw new Error(&#x27;\u8a18\u9332\u7528\u306e\u30b7\u30fc\u30c81\u304c\u3042\u308a\u307e\u305b\u3093&#x27;);\n    if (LogFileSheet.getRange(&#x27;A1&#x27;).getValue() !== &#x27;&#x27;) {\n      throw new Error(&#x27;A1\u306b\u524d\u56de\u306e\u51fa\u529bID\u304c\u3042\u308a\u307e\u3059\u3002\u51fa\u529b\u5148\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n    }\n    const input = LogFileSheet.getRange(&#x27;A3&#x27;).getValue();\n    if (!(input instanceof Date) || isNaN(input.getTime())) {\n      throw new Error(&#x27;A3\u306b\u6709\u52b9\u306a\u65e5\u4ed8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n    }\n    const date = Utilities.formatDate(input, LogFile.getSpreadsheetTimeZone(), &#x27;yyMMdd&#x27;);\n    const templateFile = DriveApp.getFileById(&#x27;\u30b3\u30d4\u30fc\u5143\u306e\u30b7\u30fc\u30c8ID&#x27;);\n    if (templateFile.getMimeType() !== &#x27;application\/vnd.google-apps.spreadsheet&#x27;) {\n      throw new Error(&#x27;\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306fGoogle\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n    }\n    const source = SpreadsheetApp.openById(templateFile.getId());\n    const sourceSheet = source.getSheetByName(&#x27;\u30b3\u30d4\u30fc\u5143&#x27;);\n    if (!sourceSheet) throw new Error(&#x27;\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u30b3\u30d4\u30fc\u5143\u30b7\u30fc\u30c8\u304c\u3042\u308a\u307e\u305b\u3093&#x27;);\n    if (source.getSheetByName(date)) throw new Error(&#x27;\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u540c\u3058\u65e5\u4ed8\u540d\u306e\u30b7\u30fc\u30c8\u304c\u3042\u308a\u307e\u3059&#x27;);\n    const sourceCells = sourceSheet.getRange(&#x27;A1:H1&#x27;);\n    for (let col = 1; col &lt;= 8; col++) {\n      if (sourceCells.getCell(1, col).isChecked() === null) {\n        throw new Error(&#x27;\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306eA1:H1\u3092\u6709\u52b9\u306a\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n      }\n    }\n    const OutputFolder = DriveApp.getFolderById(&#x27;\u683c\u7d0d\u5148\u306e\u30d5\u30a9\u30eb\u30c0ID&#x27;);\n    const OutputFileName = templateFile.getName() + &#x27;_&#x27; + date;\n    if (OutputFolder.getFilesByName(OutputFileName).hasNext()) {\n      throw new Error(&#x27;\u4fdd\u5b58\u5148\u306b\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n    }\n    const CopiedDriveFile = templateFile.makeCopy(OutputFileName, OutputFolder);\n    const CopiedFileId = CopiedDriveFile.getId();\n    LogFileSheet.getRange(&#x27;A1&#x27;).setValue(CopiedFileId);\n    LogFileSheet.getRange(&#x27;A2&#x27;).setValue(&#x27;\u51e6\u7406\u4e2d&#x27;);\n    const CopiedFile = SpreadsheetApp.openById(CopiedFileId);\n    const CopiedFileSheet = CopiedFile.getSheetByName(&#x27;\u30b3\u30d4\u30fc\u5143&#x27;);\n    const cells = CopiedFileSheet.getRange(&#x27;A1:H1&#x27;);\n    let checked = 0;\n    for (let col = 1; col &lt;= 8; col++) {\n      const state = cells.getCell(1, col).isChecked();\n      if (state === null) throw new Error(&#x27;\u8907\u88fd\u5148\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u7121\u52b9\u3067\u3059&#x27;);\n      if (state) checked++;\n    }\n    if (CopiedFile.getSheetByName(date)) throw new Error(&#x27;\u8907\u88fd\u5148\u306b\u540c\u3058\u65e5\u4ed8\u540d\u306e\u30b7\u30fc\u30c8\u304c\u3042\u308a\u307e\u3059&#x27;);\n    const DateSheet = CopiedFileSheet.copyTo(CopiedFile);\n    DateSheet.setName(date);\n    CopiedFile.setActiveSheet(DateSheet);\n    CopiedFile.moveActiveSheet(1);\n    LogFileSheet.getRange(&#x27;A2&#x27;).setValue(&#x27;\u5b8c\u4e86 \/ \u30c1\u30a7\u30c3\u30af\u3042\u308a: &#x27; + checked + &#x27;\u4ef6&#x27;);\n  } finally {\n    try {\n      SpreadsheetApp.flush();\n    } finally {\n      lock.releaseLock();\n    }\n  }\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u884c\u5f8c\u306e\u78ba\u8a8d\u3068\u9014\u4e2d\u3067\u6b62\u307e\u3063\u305f\u5834\u5408<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u5f8c\u306f\u3001A1\u306eID\u3067\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001A2\u304c\u300c\u5b8c\u4e86 \/ \u30c1\u30a7\u30c3\u30af\u3042\u308a: \u25cb\u4ef6\u300d\u306b\u306a\u3063\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5165\u529b\u65e5\u4ed8\u304c2019\/08\/26\u306a\u3089\u3001\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u672b\u5c3e\u3068\u5148\u982d\u30b7\u30fc\u30c8\u540d\u306f<code>190826<\/code>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A3\u306e\u65e5\u4ed8\u3001\u5143\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3001\u30b3\u30d4\u30fc\u5148\u306e\u30c1\u30a7\u30c3\u30af\u6570\u3068\u5024\u30fb\u66f8\u5f0f\u3082\u7167\u5408\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A2\u304c\u300c\u51e6\u7406\u4e2d\u300d\u306e\u307e\u307e\u3001\u307e\u305f\u306f\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306f\u3001A1\u3068\u4fdd\u5b58\u5148\u30d5\u30a9\u30eb\u30c0\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A1\u304c\u7a7a\u3067\u3082\u3001\u30d5\u30a1\u30a4\u30eb\u8907\u88fd\u5f8c\u306e\u8a18\u9332\u3067\u5931\u6557\u3057\u3066\u751f\u6210\u7269\u304c\u6b8b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u56e0\u3068\u751f\u6210\u6e08\u307f\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u307e\u3067\u3001A1\u3092\u6d88\u3057\u3066\u518d\u5b9f\u884c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5fdc\u7528\u4f8b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30e1\u30fc\u30eb\u901a\u77e5\u3092\u52a0\u3048\u308b\u5834\u5408\u306f\u3001\u51e6\u7406\u5b8c\u4e86\u5f8c\u306b\u5b9b\u5148\u30fb\u4ef6\u540d\u30fb\u672c\u6587\u3092\u6307\u5b9a\u3059\u308b\u51e6\u7406\u3068\u8ffd\u52a0\u306e\u627f\u8a8d\u3092\u8a2d\u8a08\u3057\u307e\u3059\u3002\u672c\u30b3\u30fc\u30c9\u306f\u30e1\u30fc\u30eb\u3092\u9001\u308a\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li>\u540c\u65e5\u306e\u8907\u6570\u51fa\u529b\u304c\u5fc5\u8981\u306a\u3089\u3001\u65e5\u4ed8\u306b\u52a0\u3048\u3066\u5b9f\u884c\u6642\u523b\u3084\u9023\u756a\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002A3\u304c\u540c\u3058\u65e5\u4ed8\u306a\u3089\u3001\u66f8\u5f0f\u3092\u5909\u3048\u308b\u3060\u3051\u3067\u306f\u6bce\u56de\u7570\u306a\u308b\u540d\u524d\u306b\u306a\u308a\u307e\u305b\u3093<\/li>\n\n\n\n<li>\u30c1\u30a7\u30c3\u30af\u6e08\u307f\u306e\u884c\u3084\u30c7\u30fc\u30bf\u306e\u307f\u3092\u62bd\u51fa\u3057\u3066\u5225\u51e6\u7406\u3078\u6e21\u3059\u69cb\u6210\u3078\u306e\u62e1\u5f35<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u95a2\u9023\u30b3\u30fc\u30c9\u306fGitHub\u306e<a href=\"https:\/\/github.com\/MOTOKI-LLC\/cg-method-code\/tree\/main\/google\/google-sheets-copy-template-check-checkbox\">MOTOKI-LLC\/cg-method-code<\/a>\u306b\u3082\u3042\u308a\u307e\u3059\u3002\u672c\u6587\u306e\u4fee\u6b63\u7248\u3068\u540c\u3058\u7248\u3068\u306f\u9650\u3089\u306a\u3044\u305f\u3081\u3001\u5dee\u5206\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<!-- cgm-topic:start -->\n\n\n<p class=\"wp-block-paragraph\">GAS\u3067\u30b7\u30fc\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u8a18\u4e8b\u306f\u3001\u307b\u304b\u306b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/06\/gas-google-sheets-hierarchy-visualization-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/spreadsheet-hierarchy-visualization\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u7d44\u7e54\u56f3\u3084UI\u69cb\u9020\u306e\u60c5\u5831\u3092\u30d3\u30b8\u30e5\u30a2\u30eb\u5316\uff01\u968e\u5c64\u8868\u793a\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u968e\u5c64\u30c7\u30fc\u30bf\u3092\u3001D3.js\u3092\u4f7f\u3063\u3066\u30d6\u30e9\u30a6\u30b6\u4e0a\u306b\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u53ef\u8996\u5316\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u8868\u793a\u30a4\u30e1\u30fc\u30b8 \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/11\/sheets-gas-sync-multi-key-rows-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/sheets-gas-sync-multi-key-rows\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u25022\u3064\u306e\u30b7\u30fc\u30c8\u3092\u81ea\u52d5\u540c\u671f\u3059\u308bGAS\u306e\u4f5c\u308a\u65b9<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30b7\u30fc\u30c82\u306e\u884c\u9806\u3068A\u301cC\u5217\u3092\u30b7\u30fc\u30c81\u3078\u53cd\u6620\u3057\u3001\u540c\u3058\u30ad\u30fc\u306e\u884c\u306b\u3042\u308bD\u5217\u4ee5\u964d\u306e\u624b\u5165\u529b\u5024\u3092\u5f15\u304d\u7d99\u3050GAS\u306e\u4f8b\u3067\u3059\u3002\u521d\u671f\u72b6\u614b\u306f\u4e0b\u898b\u3060\u3051\u3067\u3001\u66f8\u304d\u63db\u3048\u306f\u884c\u3044\u307e\u305b\u3093\u3002\u81ea\u52d5\u5b9f\u884c\u30c8\u30ea\u30ac&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/spreadsheet-sheet-index-menu-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/spreadsheet-sheet-index-menu\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u5927\u91cf\u30b7\u30fc\u30c8\u3092\u4e00\u767a\u9078\u629e\uff01\u4fbf\u5229\u30e1\u30cb\u30e5\u30fc\u3067\u30b7\u30fc\u30c8\u4e00\u89a7\u3092\u8868\u793a\u3057\u3066\u79fb\u52d5\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">GAS\u3067\u4e0a\u90e8\u306b\u300c\u30b7\u30fc\u30c8\u79fb\u52d5\u300d\u30e1\u30cb\u30e5\u30fc\u3092\u8ffd\u52a0\u3057\u3001\u8868\u793a\u4e2d\u306e\u30b7\u30fc\u30c8\u3092\u540d\u524d\u3067\u9078\u3076\u4f5c\u4f8b\u3067\u3059\u3002 GAS\u306fGoogle\u30b5\u30fc\u30d3\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u7de8\u96c6\u6a29\u9650\u306e\u3042\u308b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u30b3&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-sheets-auto-copy-with-date-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-sheets-auto-copy-with-date\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u81ea\u52d5\u3067\u65e5\u4ed8\u5165\u308a\uff01\u8907\u88fd\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">master\u30b7\u30fc\u30c8\u304b\u3089\u6708\u3054\u3068\u306e\u30b7\u30fc\u30c8\u3092\u8907\u88fd\u3057\u307e\u3059\u3002 \u5e74\u6708\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3067\u6c7a\u3081\u3001\u540c\u3058\u5e74\u6708\u540d\u306e\u30b7\u30fc\u30c8\u304c\u3042\u308c\u3070\u4e0a\u66f8\u304d\u305b\u305a\u306b\u7d42\u4e86\u3057\u307e\u3059\u3002 \u7df4\u7fd2\u30b3\u30fc\u30c9\u30fb\u5165\u529bJ&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<!-- cgm-topic:end -->\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9f\u73fe\u3067\u304d\u308b\u51e6\u7406\u3068\u30e1\u30ea\u30c3\u30c8\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u51e6\u7406\u5185\u5bb9<\/th><th>\u30e1\u30ea\u30c3\u30c8<\/th><\/tr><\/thead><tbody><tr><td>\u65e5\u4ed8\u3054\u3068\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u8907\u88fd<\/td><td>\u65e5\u4ed8\u5225\u306e\u5e33\u7968\u4f5c\u6210\u30fb\u7ba1\u7406\u306e\u624b\u9593\u3092\u524a\u6e1b<\/td><\/tr><tr><td>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u5224\u5b9a<\/td><td>\u6709\u52b9\u306a\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u30c1\u30a7\u30c3\u30af\u6570\u3092\u8a18\u9332<\/td><\/tr><tr><td>\u8907\u88fd\u30d5\u30a1\u30a4\u30eb\u306eID\u3092\u8a18\u9332<\/td><td>\u8907\u88fd\u5148\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b\u624b\u9593\u3092\u524a\u6e1b<\/td><\/tr><tr><td>\u30b7\u30fc\u30c8\u306e\u30ea\u30cd\u30fc\u30e0\u3068\u6574\u7406<\/td><td>\u6700\u65b0\u30b7\u30fc\u30c8\u304c\u5148\u982d\u306b\u4e26\u3073\u78ba\u8a8d\u304c\u30b9\u30e0\u30fc\u30ba\u306b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306e\u51fa\u529b\u3092\u4f5c\u308b\u3068\u304d\u306f\u3001\u524d\u56de\u306eA1\u30fbA2\u3092\u5225\u306e\u8a18\u9332\u3078\u63a7\u3048\u3001\u4f5c\u6210\u6e08\u307f\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u305f\u3046\u3048\u3067A1\u30fbA2\u3092\u7a7a\u306b\u3057\u3001A3\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002\u7df4\u7fd2\u3092\u623b\u3059\u5834\u5408\u3082\u3001\u751f\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u624b\u52d5\u3067\u6574\u7406\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5143\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u5909\u66f4\u3057\u307e\u305b\u3093\u3002Google\u5b9f\u6a5f\u3067\u306e\u518d\u691c\u8a3c\u30fb\u5171\u6709\u6a29\u9650\u306e\u78ba\u8a8d\u306f\u672a\u5b9f\u65bd\u3067\u3059\u3002\u4ed5\u69d8\u306f<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/drive\/file#makecopyname,-destination\">File.makeCopy<\/a>\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/spreadsheet\/range#ischecked()\">Range.isChecked<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-sheets-importrange-extract-specific-range-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-sheets-importrange\/\">Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u2502\u5225\u30b7\u30fc\u30c8\u30fb\u5225\u30d5\u30a1\u30a4\u30eb\u3092\u53c2\u7167\u3059\u308b\u65b9\u6cd5\u3068IMPORTRANGE<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u540c\u4e00\u30d5\u30a1\u30a4\u30eb\u306e\u5225\u30b7\u30fc\u30c8\u306f\u30bb\u30eb\u53c2\u7167\u3001\u5225\u30d5\u30a1\u30a4\u30eb\u306fIMPORTRANGE\u3067\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002 \u521d\u56de\u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3001\u5c55\u958b\u7bc4\u56f2\u3001#REF!\u306e\u539f\u56e0\u3092\u3001\u5143\u30c7\u30fc\u30bf\u3068\u53c2\u7167\u5148\u306e2\u3064\u306e\u7df4\u7fd2\u30d5\u30a1\u30a4\u30eb\u3067&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8907\u88fd\u306b\u3064\u3044\u3066\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u4f55\u3092\u81ea\u52d5\u5316\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e5\u4ed8\u3092\u3082\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4ed8\u3051\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u3001\u30b3\u30d4\u30fc\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u30b7\u30fc\u30c8\u3092\u8907\u88fd\u30fb\u30ea\u30cd\u30fc\u30e0\u3059\u308b\u307e\u3067\u3092\u3001\u4e00\u62ec\u3067\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65e5\u4ed8\u306f\u3001\u3069\u3053\u304b\u3089\u53d6\u5f97\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eA3\u30bb\u30eb\u306b\u3042\u308b\u65e5\u4ed8(\u4f8b\uff1a2019\/08\/26)\u3092\u53d6\u5f97\u3057\u3001yyMMdd\u5f62\u5f0f\u306b\u5909\u63db\u3057\u3066\u3001190826\u306e\u3088\u3046\u306a\u5f62\u306b\u6574\u5f62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8907\u88fd\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306eID\u306f\u3001\u3069\u3053\u306b\u8a18\u9332\u3055\u308c\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8907\u88fd\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306eID\u3092\u3001\u8a18\u9332\u7528\u30b7\u30fc\u30c8\u306eA1\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u8907\u88fd\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3059\u624b\u9593\u3092\u6e1b\u3089\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306f\u3001\u3069\u306e\u7bc4\u56f2\u3092\u78ba\u8a8d\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30d4\u30fc\u5143\u30b7\u30fc\u30c8\u306eA1:H1\u30921\u30bb\u30eb\u305a\u3064isChecked\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6a19\u6e96\u5024\u30fb\u30ab\u30b9\u30bf\u30e0\u5024\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u6271\u3044\u3001\u7121\u52b9\u306a\u30bb\u30eb\u304c\u3042\u308c\u3070\u505c\u6b62\u3057\u307e\u3059\u3002\u5b8c\u4e86\u6642\u306fA2\u306b\u30c1\u30a7\u30c3\u30af\u6570\u3092\u8a18\u9332\u3057\u3001A3\u306e\u5165\u529b\u65e5\u4ed8\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u540c\u3058\u65e5\u306b\u4f55\u5ea6\u3082\u5b9f\u884c\u3059\u308b\u3068\u3001\u3069\u3046\u306a\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u306fA1\u306b\u51fa\u529bID\u304c\u3042\u308b\u5834\u5408\u3001\u307e\u305f\u306f\u4fdd\u5b58\u5148\u306b\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u5834\u5408\u306b\u505c\u6b62\u3057\u307e\u3059\u3002A3\u304c\u56fa\u5b9a\u306e\u65e5\u4ed8\u306a\u3089\u3001yyyyMMdd_HHmm\u3078\u66f8\u5f0f\u3060\u3051\u3092\u5909\u3048\u3066\u3082\u5b9f\u884c\u3054\u3068\u306b\u540d\u524d\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002\u8907\u6570\u51fa\u529b\u304c\u5fc5\u8981\u306a\u3089\u3001\u5b9f\u884c\u6642\u523b\u3084\u9023\u756a\u306e\u7ba1\u7406\u3092\u5225\u9014\u8a2d\u8a08\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b8c\u4e86\u3092\u30e1\u30fc\u30eb\u3067\u77e5\u3089\u305b\u308b\u306b\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u30b3\u30fc\u30c9\u306b\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306f\u5b8c\u4e86\u5f8c\u306e\u9001\u4fe1\u51e6\u7406\u3001\u5b9b\u5148\u30fb\u4ef6\u540d\u30fb\u672c\u6587\u3001\u8ffd\u52a0\u306e\u627f\u8a8d\u3068\u518d\u5b9f\u884c\u6642\u306e\u4e8c\u91cd\u9001\u4fe1\u9632\u6b62\u3092\u8a2d\u8a08\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c1\u30a7\u30c3\u30af\u6e08\u307f\u306e\u884c\u3060\u3051\u3092\u3001\u5225\u306e\u51e6\u7406\u306b\u6e21\u305b\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5fdc\u7528\u4f8b\u3068\u3057\u3066\u3001\u30c1\u30a7\u30c3\u30af\u6e08\u307f\u306e\u884c\u3084\u30c7\u30fc\u30bf\u306e\u307f\u3092\u62bd\u51fa\u3057\u3066\u3001\u5225\u51e6\u7406\u3078\u6e21\u3059\u69cb\u6210\u3078\u62e1\u5f35\u3067\u304d\u307e\u3059\u3002\u5143\u306e\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u524d\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8907\u88fd\u3057\u3066\u304a\u304f\u3068\u5b89\u5168\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6700\u521d\u306b\u8a66\u3059\u3068\u304d\u306e\u6ce8\u610f\u70b9\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6307\u5b9a\u3057\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8907\u88fd\u3059\u308b\u305f\u3081\u3001\u307e\u305a\u30c6\u30b9\u30c8\u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u4fdd\u5b58\u5148\u3067\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u753b\u9762\u3084\u30e1\u30cb\u30e5\u30fc\u306f\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u6700\u65b0\u306e\u64cd\u4f5c\u306f\u516c\u5f0f\u30d8\u30eb\u30d7\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script\uff08GAS\uff09\u3067\u3001\u6b21\u306e\u51e6\u7406\u3092\u307e\u3068\u3081\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002 \u8a18\u9332\u7528\u30d5\u30a1\u30a4\u30eb\u306eA1\u306f\u51fa\u529bID\u3001A2\u306f\u51e6\u7406\u72b6\u614b\u3001A3\u306f\u5165\u529b\u65e5\u4ed8\u306b\u4f7f\u3044\u307e\u3059\u3002 A1\u30fbA2\u306f\u5c02\u7528\u30bb\u30eb\u3068\u3057\u3066\u78ba\u4fdd\u3057\u3001\u65e2\u5b58\u306e\u5185\u5bb9\u3092\u63a7\u3048\u3066\u304f\u3060\u3055\u3044\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":250,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8907\u88fd\u3068GAS\u81ea\u52d5\u5316","ssp_meta_description":"Google Apps Script\u3092\u4f7f\u3044\u3001\u65e5\u4ed8\u3054\u3068\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8907\u88fd\u304b\u3089\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u5224\u5b9a\u3001\u30b7\u30fc\u30c8\u306e\u30ea\u30cd\u30fc\u30e0\u307e\u3067\u3092\u81ea\u52d5\u5316\u3059\u308b4\u3064\u306e\u30d5\u30a7\u30fc\u30ba\u3068\u5168\u4f53\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30b3\u30fc\u30c9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002"},"categories":[17],"tags":[18],"class_list":["post-248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spreadsheets","tag-gas"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":13,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":23847,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/248\/revisions\/23847"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media\/250"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}