{"id":4578,"date":"2021-11-06T22:33:42","date_gmt":"2021-11-06T13:33:42","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=4578"},"modified":"2021-11-07T10:43:00","modified_gmt":"2021-11-07T01:43:00","slug":"post-4578","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=4578","title":{"rendered":"GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b5\u3064\u65b9\u6cd5(insertRows)"},"content":{"rendered":"\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u306f\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3092\u884c\u306e\u9014\u4e2d\u306b\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306b\u884c\u8ffd\u52a0\u3092\u884c\u3044\u307e\u3059\u304c\u3001Google Apps Script(GAS)\u3067\u3082\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"toc_id_1\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0<\/span><\/h2>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u8868\u30c7\u30fc\u30bf\u3092\u6271\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u65e2\u5b58\u306e\u884c\u306e\u9593\u306b\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c7\u30fc\u30bf\u5165\u529b\u304c\u6f0f\u308c\u3066\u3044\u305f\u5834\u5408\u306b\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u7684\u306b\u3053\u308c\u307e\u3067\u306e\u30c7\u30fc\u30bf\u306b\u5dee\u3057\u8fbc\u307f\u305f\u3044\u5834\u5408\u306b\u3001\u884c\u3092\u8ffd\u52a0\u3057\u305f\u3046\u3048\u3067\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u6642\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u64cd\u4f5c\u3067\u884c\u3092\u7c21\u5358\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"409\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001.jpg\" alt=\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u64cd\u4f5c\u306f\u884c\u756a\u53f7\u3092\u53f3\u30af\u30ea\u30c3\u30af\" class=\"wp-image-4581\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001-768x393.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001-530x271.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001-565x289.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001-710x363.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_001-725x371.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u8ffd\u52a0\u633f\u5165\u3057\u305f\u3044\u884c\u306e\u756a\u53f7\u90e8\u5206\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9078\u629e\u884c\u306e\u524d\u306b\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306f\u300c1\u884c\u3092\u4e0a\u306b\u633f\u5165\u300d\u3001\u5f8c\u308d\u306b\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306f\u300c1\u884c\u3092\u4e0b\u306b\u633f\u5165\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001\u8907\u6570\u884c\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u540c\u3058\u64cd\u4f5c\u3092\u3059\u308b\u3068\u3001\u9078\u629e\u3057\u305f\u884c\u6570\u5206\u306e\u884c\u8ffd\u52a0\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"toc_id_2\">GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u8ffd\u52a0\u304c\u53ef\u80fd<\/span><\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u3082\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eGUI\u3092\u64cd\u4f5c\u3068\u540c\u69d8\u306e\u3001\u30b7\u30fc\u30c8\u306b\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u30c7\u30fc\u30bf\u3092GAS\u8a18\u9332\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u3067\u3001\u3059\u3067\u306b\u30c7\u30fc\u30bf\u304c\u3042\u308b\u7bc4\u56f2\u306b\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u633f\u5165\u3057\u3066\u3044\u304d\u305f\u3044\u5834\u5408\u306b\u884c\u8ffd\u52a0\u306e\u30b3\u30fc\u30c9\u304c\u6709\u52b9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u4eba\u9593\u306e\u624b\u3092\u304b\u3051\u308b\u3053\u3068\u306a\u304f\u3001GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u51e6\u7406\u304c\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"toc_id_3\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b5\u3064\u306eGAS\u30e1\u30bd\u30c3\u30c9<\/span><\/h2>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308bGoogle Apps Script(GAS)\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u30015\u7a2e\u985e\u307b\u3069\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Sheet.insertRowBefore(\u8ffd\u52a0\u3059\u308b\u884c\u756a\u53f7)<\/li><li>Sheet.insertRowAfter(\u8ffd\u52a0\u3059\u308b\u884c\u756a\u53f7)<\/li><li>Sheet.insertRowsBefore(\u8ffd\u52a0\u3059\u308b\u884c\u756a\u53f7, \u8ffd\u52a0\u884c\u6570)<\/li><li>Sheet.insertRowsAfter(\u8ffd\u52a0\u3059\u308b\u884c\u756a\u53f7, \u8ffd\u52a0\u884c\u6570)<\/li><li>Sheet.insertRows(\u8ffd\u52a0\u3059\u308b\u884c\u756a\u53f7,(\u8ffd\u52a0\u884c\u6570))<\/li><\/ol>\n\n\n\n<p>\u3044\u305a\u308c\u3082\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eSheet\u30af\u30e9\u30b9\u3067\u5b9f\u884c\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">insertRowBefore(insertRowAfter)<\/h3>\n\n\n\n<p>insertRowBefore\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u884c\u756a\u53f7\u306e\u524d(\u4e0a)\u306b1\u884c\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u5b9f\u884c\u5f8c\u3001\u8ffd\u52a0\u3057\u305f\u884c\u304c\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u884c\u756a\u53f7\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3001insertRowAfter\u30e1\u30bd\u30c3\u30c9\u306f\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u884c\u756a\u53f7\u306e\u5f8c(\u4e0b)\u306b1\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>insertRowAfter\u5b9f\u884c\u5f8c\u3001\u8ffd\u52a0\u3057\u305f\u884c\u306f\u3001\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u884c\u756a\u53f7\u3088\u308a\u30821\u3064\u5f8c\u308d\u306e\u4f4d\u7f6e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">insertRowsBefore(insertRowsAfter)<\/h3>\n\n\n\n<p>insertRowsBefore\u3068insertRowsAfter\u306f\u3001\u524d\u8ff0\u306e\uff12\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u304c1\u884c\u8ffd\u52a0\u3060\u3063\u305f\u306e\u306b\u5bfe\u3057\u3001\u8907\u6570\u884c\u306e\u8ffd\u52a0\u633f\u5165\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u5f15\u6570\u306b\u8ffd\u52a0\u3057\u305f\u3044\u884c\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u4f8b\u3048\u30704\u3068\u6307\u5b9a\u3059\u308b\u3068\u3001\u6307\u5b9a\u306e\u4f4d\u7f6e\u306e\u524d\u5f8c\u306b4\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>insertRowsBefore(insertRowsAfter)\u306e\u7b2c\u4e8c\u5f15\u6570\u30921\u306b\u3059\u308b\u3068\u3001insertRowBefore(insertRowAfter)\u3068\u5909\u308f\u3089\u306a\u3044\u6319\u52d5\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">insertRows<\/h3>\n\n\n\n<p>\u6700\u5f8c5\u3064\u76ee\u306einsertRows\u306f\u7b2c\u4e00\u5f15\u6570\u3067\u8ffd\u52a0\u3059\u308b\u884c\u756a\u53f7\u3092\u5fc5\u9808\u3067\u6307\u5b9a\u3057\u3001\u7b2c\u4e8c\u5f15\u6570\u3067\u8ffd\u52a0\u884c\u6570\u3092\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e00\u5f15\u6570\u306e\u307f\u8a2d\u5b9a\u3057\u305finsertRows\u30e1\u30bd\u30c3\u30c9\u306finsertRowBefore\u30e1\u30bd\u30c3\u30c9\u3068\u540c\u69d8\u3067\u3001\u7b2c\u4e8c\u5f15\u6570\u3082\u8a2d\u5b9a\u3059\u308b\u3068\u3001insertRowsBefore\u3068\u540c\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3046\u307e\u304f\u6d3b\u7528\u3059\u308c\u3070insertRows\u30e1\u30bd\u30c3\u30c9\u3067\u307b\u304b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u3059\u3079\u3066\u4ee3\u66ff\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u899a\u3048\u308b\u91cf\u3092\u5c11\u306a\u304f\u3057\u305f\u3044\u5834\u5408\u306f\u3001insertRows\u306b\u7d5e\u308b\u306e\u3082\u9078\u629e\u80a2\u306e\uff11\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u884c\u8ffd\u52a0\u306e\u30e1\u30bd\u30c3\u30c9\u306fSheet\u30af\u30e9\u30b9\u9650\u5b9a\u306e\u305f\u3081\u3001Spreadsheet\u30af\u30e9\u30b9\u3084Range\u30af\u30e9\u30b9\u3067\u306f\u5229\u7528\u3067\u304d\u306a\u3044\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u884c\u3092\u8ffd\u52a0\u3059\u308b\u5404GAS\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u884c\u4f8b<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u884c\u3092\u8ffd\u52a0\u3059\u308b\u5404\u7a2e\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308bGoogle Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function addRow() {\n  \/\/\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d10\u3065\u3044\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3080\n  let mySheet = SpreadsheetApp.getActiveSheet();\n  \n  \/\/----\u6307\u5b9a\u3057\u305f\u4f4d\u7f6e\u306e\u524d\u5f8c\u306b1\u884c\u8ffd\u52a0\u3059\u308b\u30e1\u30bd\u30c3\u30c9----\n  \/\/insertRowBefore\u3067\u5f15\u6570\u6307\u5b9a\u3057\u305f\u884c\u306e\u524d(\u4e0a)\u306b\u884c\u8ffd\u52a0\n  mySheet.insertRowBefore(2);\n  \/\/insertRowAfter\u3067\u5f15\u6570\u6307\u5b9a\u3057\u305f\u884c\u306e\u5f8c\u308d(\u4e0b)\u306b\u884c\u8ffd\u52a0\n  mySheet.insertRowAfter(5);\n  \/\/----\u6307\u5b9a\u3057\u305f\u4f4d\u7f6e\u306e\u524d\u5f8c\u306b\u8907\u6570\u884c\u8ffd\u52a0\u3059\u308b\u30e1\u30bd\u30c3\u30c9----\n  \/\/insertRowsBefore\u3067\u5f15\u6570\u6307\u5b9a\u3057\u305f\u884c\u306e\u524d(\u4e0a)\u306b4\u884c\u8ffd\u52a0\n  mySheet.insertRowsBefore(2,4);\n  \/\/insertRowsAfter\u3067\u5f15\u6570\u6307\u5b9a\u3057\u305f\u884c\u306e\u5f8c\u308d(\u4e0b)\u306b4\u884c\u8ffd\u52a0\n  mySheet.insertRowsAfter(5,4);\n  \n  \/\/insertRows\u3067\u6307\u5b9a\u3057\u305f\u4f4d\u7f6e\u306b\u884c\u3092\u633f\u5165(\u7b2c\u4e8c\u5f15\u6570\u3067\u884c\u6570\u3082\u6307\u5b9a\u53ef\u80fd)\n  mySheet.insertRows(10);\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"610\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b5\u7a2e\u985e\u306einsertRow\u30e1\u30bd\u30c3\u30c9\" class=\"wp-image-4582\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002-768x390.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002-1024x521.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002-710x361.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/11\/20211106_auto_002-725x369.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\uff15\u7a2e\u985e\u306einsertRow(s)\u30e1\u30bd\u30c3\u30c9\u306f\u305d\u308c\u305e\u308c\u524d\u8ff0\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u884c\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8907\u6570\u884c\u8ffd\u52a0\u3059\u308b\u5834\u5408\u3001insertRowsBefore(insertRows)\u307e\u305f\u306finsertRowsAfter\u30e1\u30bd\u30c3\u30c9\u3092\u3001\u6307\u5b9a\u884c\u306e\u4e0a\u304b\u4e0b\u304b\u8ffd\u52a0\u3057\u305f\u3044\u65b9\u5411\u3067\u4f7f\u3044\u5206\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u3067\u5217\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd<\/h2>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u30e1\u30bd\u30c3\u30c9\u3092\u89e3\u8aac\u3057\u306a\u304c\u3089\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u884c\u3068\u540c\u3058\u3088\u3046\u306a\u65b9\u6cd5\u3067\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u306e\u5217\u8ffd\u52a0\u3082Google Apps Script(GAS)\u3067\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"KMI0T0Y74m\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=4571\">GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5217\u3092\u8ffd\u52a0\u3059\u308b5\u3064\u65b9\u6cd5(insertColumns)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5217\u3092\u8ffd\u52a0\u3059\u308b5\u3064\u65b9\u6cd5(insertColumns)&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=4571&#038;embed=true#?secret=DdoWKisQc1#?secret=KMI0T0Y74m\" data-secret=\"KMI0T0Y74m\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>GAS\u3067\u306e\u5217\u8ffd\u52a0\u306e\u4ed5\u7d44\u307f\u306f\u3001\u884c\u8ffd\u52a0\u306e\u5834\u5408\u3068\u540c\u69d8\u306a\u306e\u3067\u3001\u7c21\u5358\u306b\u30de\u30b9\u30bf\u30fc\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>GAS\u306b\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u304c5\u7a2e\u985e\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u8ffd\u52a0\u3059\u308b\u884c\u306e\u65b9\u5411\u304c\u524d(\u4e0a)\u304b\u5f8c\u308d(\u4e0b)\u304b\u3001\u8ffd\u52a0\u5217\u6570\u304c1\u5217\u304b\u8907\u6570\u5217\u304b\u3067\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u5206\u3051\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u30c7\u30fc\u30bf\u3092\u3069\u3093\u3069\u3093\u8ffd\u52a0\u3057\u3066\u3044\u304fGAS\u306e\u81ea\u52d5\u5316\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u884c\u3092\u8ffd\u52a0\u633f\u5165\u3067\u304d\u308b\u6a5f\u80fd\u3092\u4f7f\u3048\u3070\u3001\u30c7\u30fc\u30bf\u306e\u672b\u5c3e\u3060\u3051\u3067\u306a\u304f\u9014\u4e2d\u306b\u5dee\u3057\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eGAS\u64cd\u4f5c\u3067\u884c\u3092\u3088\u308a\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306b\u3001\u305c\u3072insertRow(s)\u7cfb\u30e1\u30bd\u30c3\u30c9\u3092\u899a\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u306f\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3092\u884c\u306e\u9014\u4e2d\u306b\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306b\u884c\u8ffd\u52a0\u3092\u884c\u3044\u307e\u3059\u304c\u3001Google Apps Script(GAS)\u3067\u3082\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4582,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,64,250],"class_list":["post-4578","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-64","tag-250"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4578"}],"version-history":[{"count":3,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4578\/revisions"}],"predecessor-version":[{"id":4584,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4578\/revisions\/4584"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4582"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}