{"id":1648,"date":"2020-09-25T22:58:28","date_gmt":"2020-09-25T13:58:28","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=1648"},"modified":"2020-09-25T22:57:16","modified_gmt":"2020-09-25T13:57:16","slug":"post-1648","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=1648","title":{"rendered":"Google Apps Script(GAS) \u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u524a\u9664\u65b9\u6cd5\u307e\u3068\u3081\uff5eclear\u3068deleteCells\u30e1\u30bd\u30c3\u30c9\u306e\u9055\u3044"},"content":{"rendered":"<p>Google Apps Script(GAS)\u3067\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307e\u308c\u305f\u5024\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56deGAS\u306e\u30b3\u30fc\u30c9\u3067\u30b7\u30fc\u30c8\u4e0a\u306e\u30bb\u30eb\u306e\u5024\u30fb\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u3068\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u306e2\u7a2e\u985e\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092GAS\u3067\u64cd\u4f5c<\/h2>\n<p>Google Apps Script(GAS)\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u69d8\u3005\u306a\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u3001GAS\u3067\u51e6\u7406\u3057\u305f\u3044\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3060\u5f8c\u3001\u30b7\u30fc\u30c8\u4e0a\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3066\u5024\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u51e6\u7406\u30fb\u7b97\u51fa\u3057\u305f\u5024\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092Google Apps Script(GAS)\u3067\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"SWJ2SS2v7Z\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=655\">Google Apps Script(GAS)\u5165\u9580 \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5(getValue,setValue)<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Google Apps Script(GAS)\u5165\u9580 \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5(getValue,setValue)&#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=655&#038;embed=true#?secret=ZdZxY9T7ek#?secret=SWJ2SS2v7Z\" data-secret=\"SWJ2SS2v7Z\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>\u30bb\u30eb\u53d6\u5f97\u30fb\u66f8\u304d\u8fbc\u307f\u306b\u52a0\u3048\u3001\u524a\u9664\u3082GAS\u3067\u53ef\u80fd<\/h2>\n<p>GAS\u3067\u306f\u3001\u524d\u8ff0\u3057\u305f\u30bb\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u3068\u66f8\u304d\u8fbc\u307f\u306e\u307b\u304b\u306b\u3001\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>GAS\u3067\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u6642\u306b\u30b7\u30fc\u30c8\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u521d\u671f\u5316\u3059\u308b\u3068\u3044\u3063\u305f\u30b3\u30fc\u30c9\u306e\u5b9f\u88c5\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001GAS\u306e\u5b9f\u884c\u51e6\u7406\u3067\u524d\u56de7\u884c\u5206\u306e\u30c7\u30fc\u30bf\u3092\u30b7\u30fc\u30c8\u306b\u51fa\u529b\u3057\u305f\u306e\u306b\u3001\u4eca\u56de\u306f6\u884c\u3060\u3063\u305f\u5834\u5408\u3001\u521d\u671f\u5316\u3057\u306a\u3044\u30687\u884c\u76ee\u306e\u30bb\u30eb\u306b\u524d\u56de\u306e\u30c7\u30fc\u30bf\u304c\u6b8b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u305f\u30b1\u30fc\u30b9\u306e\u6642\u306b\u3001GAS\u306e\u51e6\u7406\u3092\u884c\u3046\u524d\u306b\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664\u3059\u308b\u521d\u671f\u5316\u3092\u51e6\u7406\u3057\u3066\u304a\u3051\u3070\u3001\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306fdeleteCells\u30e1\u30bd\u30c3\u30c9<\/h2>\n<p>\u30bb\u30eb\u306e\u5024\u3067\u306f\u306a\u304f\u3001\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3082Google Apps Script\u3067\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30bb\u30eb\u524a\u9664\u306fRange\u30af\u30e9\u30b9\u3067\u5229\u7528\u3067\u304d\u308bdeleteCells\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><strong><em>Range.deleteCells(shiftDimension)<\/em><\/strong><\/p>\n<p>\u5f15\u6570\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308bshiftDimension\u306f\u3001\u30bb\u30eb\u3092\u5217\u65b9\u5411\u30fb\u884c\u65b9\u5411\u3069\u3061\u3089\u3067\u524a\u9664\u3059\u308b\u304b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1665\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001.jpg\" alt=\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u7279\u5b9a\u306e\u30bb\u30eb\u81ea\u4f53\u3092Google Apps Script(GAS)\u3067\u524a\u9664\u3057\u305f\u3044\u5834\u5408\" width=\"800\" height=\"433\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001-300x162.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001-768x416.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001-530x287.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001-565x306.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001-710x384.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_001-725x392.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eB3\u30bb\u30eb\u3092\u524a\u9664\u3059\u308b\u30b1\u30fc\u30b9\u3067\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u5217\u65b9\u5411\u3067\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u300cSpreadsheetApp.Dimension.COLUMNS\u300d\u3068\u5f15\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><code>function delCellColumns() {<br \/>\n\/\/\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d10\u3065\u304f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3080<br \/>\nlet sheet = SpreadsheetApp.getActiveSheet();<br \/>\n\/\/B3\u30bb\u30eb\u3092\u7bc4\u56f2\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b<br \/>\nlet delRange = sheet.getRange(3, 2);<br \/>\n\/\/\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u3092\u524a\u9664\u3057\u3001\u524a\u9664\u5f8c\u3001\u30bb\u30eb\u3092\u5de6\u306b\u79fb\u52d5\u3055\u305b\u308b<br \/>\ndelRange.deleteCells(SpreadsheetApp.Dimension.COLUMNS)<br \/>\n}<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1666\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u306edeleteCells\u3067SpreadsheetApp.Dimension.COLUMNS\u3092\u5f15\u6570\u306b\u3057\u3066\u3057\u3066\u5b9f\u884c\u3057\u305f\u7d50\u679c\" width=\"800\" height=\"434\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002-300x163.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002-768x417.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002-530x288.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002-565x307.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002-710x385.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_002-725x393.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u30bb\u30eb\u3092\u524a\u9664\u3059\u308b\u969b\u306e\u300c\u30bb\u30eb\u3092\u524a\u9664\uff1e\u5de6\u306b\u79fb\u52d5\u300d\u3068\u540c\u3058\u64cd\u4f5c\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u9006\u306b\u884c\u65b9\u5411\u3067\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u300cSpreadsheetApp.Dimension.ROWS\u300d\u3068\u5f15\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><code>function delCellRows() {<br \/>\n\/\/\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d10\u3065\u304f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3080<br \/>\nlet sheet = SpreadsheetApp.getActiveSheet();<br \/>\n\/\/B3\u30bb\u30eb\u3092\u7bc4\u56f2\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b<br \/>\nlet delRange = sheet.getRange(3, 2, 1, 3);<br \/>\n\/\/\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u3092\u524a\u9664\u3057\u3001\u524a\u9664\u5f8c\u3001\u30bb\u30eb\u3092\u4e0a\u306b\u79fb\u52d5\u3055\u305b\u308b<br \/>\ndelRange.deleteCells(SpreadsheetApp.Dimension.ROWS)<br \/>\n}<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1667\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003.jpg\" alt=\"Google Apps Script(GAS)\u306edeleteCells\u3067SpreadsheetApp.Dimension.ROWS\u3092\u5f15\u6570\u306b\u3057\u3066\u3057\u3066\u5b9f\u884c\u3057\u305f\u7d50\u679c\" width=\"800\" height=\"432\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003-300x162.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003-768x415.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003-530x286.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003-565x305.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003-710x383.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_003-725x392.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u30bb\u30eb\u3092\u524a\u9664\u3059\u308b\u969b\u306e\u300c\u30bb\u30eb\u3092\u524a\u9664\uff1e\u4e0a\u306b\u79fb\u52d5\u300d\u3068\u540c\u3058\u64cd\u4f5c\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308bdeleteCells\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" width=\"800\" height=\"422\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004-300x158.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004-768x405.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004-530x280.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004-565x298.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004-710x375.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_004-725x382.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30b7\u30fc\u30c8\u4e0a\u306e\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u3054\u3068\u524a\u9664\u3057\u3001\u524a\u9664\u5f8c\u306b\u5bc4\u305b\u308b\u65b9\u5411\u3092\u9078\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30bb\u30eb\u306e\u7bc4\u56f2\u306f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b1\u30bb\u30eb\u3060\u3051\u3067\u306a\u304f\u3001\u8907\u6570\u7bc4\u56f2\u9078\u629e\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u30bb\u30eb\u306e\u5024\u30fb\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308bGAS\u30e1\u30bd\u30c3\u30c9\u306f3\u7a2e\u985e<\/h2>\n<p>Google Apps Script(GAS) \u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u524a\u9664\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f3\u7a2e\u985e\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>clearContent()\u30e1\u30bd\u30c3\u30c9<\/li>\n<li>clearFormat()\u30e1\u30bd\u30c3\u30c9<\/li>\n<li>clear()\u30e1\u30bd\u30c3\u30c9<\/li>\n<\/ol>\n<p>\u3044\u305a\u308c\u306e\u30e1\u30bd\u30c3\u30c9\u3082\u30bb\u30eb\u306e\u7bc4\u56f2\u3092\u8a2d\u5b9a\u3057\u305fRange\u30af\u30e9\u30b9\u3067\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1669\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005.jpg\" alt=\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306e\u5024\u30fb\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308bclearContent,clearFormat\u3068\u4e21\u65b9\u524a\u9664\u3059\u308bclear\u30e1\u30bd\u30c3\u30c9\u306eGAS\u30b3\u30fc\u30c9\" width=\"800\" height=\"430\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005-300x161.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005-768x413.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005-530x285.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005-565x304.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005-710x382.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/09\/20200925_auto_005-725x390.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u305f\u72b6\u614b\u3067\u306f\u30e1\u30bd\u30c3\u30c9\u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u8a73\u7d30\u306b\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>\u2460\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664\u3059\u308bclearContent()<\/h3>\n<p>clearContent\u30e1\u30bd\u30c3\u30c9\u306f\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u306b\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<p>\u524a\u9664\u5bfe\u8c61\u3068\u306a\u308b\u306e\u306f\u30bb\u30eb\u306e\u5024\u306e\u307f\u3067\u3001\u30d5\u30a9\u30f3\u30c8\u3084\u6587\u5b57\u306e\u5927\u304d\u3055\u3001\u30bb\u30eb\u306e\u7f6b\u7dda\u3068\u3044\u3063\u305f\u66f8\u5f0f\u306b\u95a2\u3059\u308b\u90e8\u5206\u306f\u524a\u9664\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<h3>\u2461\u30bb\u30eb\u306e\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308bclearFormat()<\/h3>\n<p>2\u3064\u76ee\u306eclearFormat\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u66f8\u5f0f\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30eb\u306e\u5024\u306f\u524a\u9664\u3055\u308c\u305a\u3001\u30bb\u30eb\u306e\u30d5\u30a9\u30f3\u30c8\u3084\u592a\u5b57\u3001\u6587\u5b57\u306e\u8272\u306a\u3069\u304c\u30af\u30ea\u30a2\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u2462\u30bb\u30eb\u306e\u5024\u3068\u66f8\u5f0f\u4e21\u65b9\u524a\u9664\u3059\u308bclear()<\/h3>\n<p>\u6700\u5f8c\u306eclear\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u306e\u5024\u3068\u30d5\u30a9\u30f3\u30c8\u3001\u3069\u3061\u3089\u3082\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<p>clearContent()\u3068clearFormat()\u306e2\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u5408\u4f53\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001clear\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u30bb\u30eb\u306b\u30bb\u30c3\u30c8\u3055\u308c\u305f\u5024\u3084\u66f8\u5f0f\u306f\u524a\u9664\u3057\u307e\u3059\u304c\u3001\u30bb\u30eb\u81ea\u4f53\u306e\u524a\u9664\u306f\u884c\u308f\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u30b7\u30fc\u30c8\u306e\u884c\u5358\u4f4d\u3067\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u25cb\u304b\u3001\u5217\u5358\u4f4d\u3067\u524a\u9664\u3059\u308b\u25cb\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>clear\u3001clearContent\u3001clearFormat\u306e\u4f7f\u3044\u5206\u3051\u306f\uff1f<\/h2>\n<p>Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306e\u5024\u30fb\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308bclearContent\u3001clearFormat\u3001clear\u30e1\u30bd\u30c3\u30c9\u306f\u3069\u306e\u3088\u3046\u306b\u4f7f\u3044\u5206\u3051\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u3042\u3089\u304b\u3058\u3081\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8868\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001\u8868\u306b\u5024\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30bb\u30c3\u30c8\u3059\u308b\u3088\u3046\u306a\u6a5f\u80fd\u3060\u3068\u3001clearContent\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>clear\u30e1\u30bd\u30c3\u30c9\u3060\u3068\u3001\u8868\u306e\u66f8\u5f0f\u3082\u524a\u9664\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u8868\u306e\u898b\u305f\u76ee\u304c\u5d29\u308c\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u9006\u306bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u8868\u4f5c\u6210\u306e\u51e6\u7406\u3082\u884c\u3046\u5834\u5408\u306b\u306f\u3001clear\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>clearContent\u30e1\u30bd\u30c3\u30c9\u3060\u3068\u3001\u66f8\u5f0f\u307e\u3067\u524a\u9664\u3055\u308c\u305a\u3001\u524d\u56de\u5b9f\u884c\u6642\u306b\u4f5c\u6210\u3055\u308c\u305f\u8868\u306e\u66f8\u5f0f\u304c\u6b8b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>clearFormat\u30e1\u30bd\u30c3\u30c9\u306f\u3042\u307e\u308a\u5229\u7528\u983b\u5ea6\u306f\u591a\u304f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u5171\u540c\u7de8\u96c6\u3057\u3066\u3044\u308b\u3068\u3001\u30d5\u30a9\u30f3\u30c8\u306a\u3069\u306e\u66f8\u5f0f\u304c\u30d0\u30e9\u30d0\u30e9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30d4\u30da\u306a\u3069\u3067\u30b3\u30d4\u30fc\u5143\u306e\u66f8\u5f0f\u304c\u305d\u306e\u307e\u307e\u30da\u30fc\u30b9\u30c8\u3055\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u305d\u3046\u3057\u305f\u969b\u306b\u3001\u30d5\u30a9\u30f3\u30c8\u306e\u66f8\u5f0f\u3092\u6574\u3048\u308b\u610f\u5473\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u66f8\u5f0f\u306b\u623b\u3059\u306e\u306bclearFormat\u306f\u6709\u52b9\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u306f\u3001\u7a3c\u50cd\u3055\u305b\u308bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u4f9d\u5b58\u3059\u308b\u305f\u3081\u3001\u7528\u9014\u6b21\u7b2c\u306b\u306f\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3069\u3046\u3044\u3063\u305fGAS\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u51e6\u7406\u304b\u5224\u65ad\u3057\u305f\u4e0a\u3067\u3001\u4f7f\u3044\u5206\u3051\u308b\u306e\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u306f\u3001\u2460\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u3001\u2461\u30bb\u30eb\u306e\u5024\u30fb\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308b\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u2460\u306e\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u5834\u5408\u306f\u3001deleteCells\u30e1\u30bd\u30c3\u30c9\u3001\u2461\u306e\u30bb\u30eb\u306e\u5024\u30fb\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308b\u5834\u5408\u306fclear\/clearContent\/clearFormat\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308cGAS\u3067\u884c\u3046\u81ea\u52d5\u51e6\u7406\u306e\u5185\u5bb9\u306b\u5fdc\u3058\u3001\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u7d39\u4ecb\u3057\u305f\u5185\u5bb9\u3092\u53c2\u8003\u306b\u3001\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u524a\u9664\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u88c5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3067\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u306b\u66f8\u304d\u8fbc\u307e\u308c\u305f\u5024\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4eca\u56deGAS\u306e\u30b3\u30fc\u30c9\u3067\u30b7\u30fc\u30c8\u4e0a\u306e\u30bb\u30eb\u306e\u5024\u30fb\u66f8\u5f0f\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u3068\u30bb\u30eb\u81ea\u4f53\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5\u306e2\u7a2e\u985e\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1670,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,64,438],"class_list":["post-1648","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-64","tag-438"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1648","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=1648"}],"version-history":[{"count":8,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1648\/revisions"}],"predecessor-version":[{"id":1672,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1648\/revisions\/1672"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/1670"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}