{"id":1986,"date":"2020-11-14T22:20:18","date_gmt":"2020-11-14T13:20:18","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=1986"},"modified":"2020-11-22T23:15:18","modified_gmt":"2020-11-22T14:15:18","slug":"post-1986","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=1986","title":{"rendered":"GoogleAppsScript\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5(merge\u30e1\u30bd\u30c3\u30c9)"},"content":{"rendered":"<p>Google Apps Script(GAS)\u3092\u4f7f\u3044\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u9078\u629e\u3057\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u3092\u7d50\u5408\u3057\u30661\u3064\u306e\u30bb\u30eb\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u3092GAS\u3067\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u7d50\u5408\u306fmerge\u30e1\u30bd\u30c3\u30c9<\/h2>\n<p>Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u7d50\u5408\u3059\u308b\u306b\u306fmerge\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><strong><em>Range.merge()<\/em><\/strong><\/p>\n<p>\u4e88\u3081\u7d50\u5408\u3057\u305f\u3044\u30bb\u30eb\u7bc4\u56f2\u3092getRange\u30e1\u30bd\u30c3\u30c9\u3067\u9078\u629e\u3057\u305fRange\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001merge\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u30bb\u30eb\u306e\u7d50\u5408\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d50\u5408\u7bc4\u56f2\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001getRange\u30e1\u30bd\u30c3\u30c9\u3067\u8907\u6570\u7bc4\u56f2\u306e\u30bb\u30eb\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>GAS\u3067\u306egetRange\u3067\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>Google Apps Script(GAS)\u3092\u4f7f\u3063\u305f\u30bb\u30eb\u7bc4\u56f2\u3092\u7d50\u5408\u3059\u308b\u65b9\u6cd5\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2014\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u7d50\u5408\u3092\u5b9f\u884c\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u89e3\u8aac\" width=\"1200\" height=\"623\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001-300x156.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001-768x399.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001-1024x532.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001-530x275.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001-565x293.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001-710x369.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_001-725x376.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><code>function mergeCell() {<br \/>\n\/\/\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d10\u4ed8\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<br \/>\nlet mySheet = SpreadsheetApp.getActiveSheet()<br \/>\n\/\/\u30b7\u30fc\u30c8\u304b\u3089\u7d50\u5408\u3057\u305f\u3044\u7bc4\u56f2(B2:E6)\u306e\u30bb\u30eb\u3092\u53d6\u5f97<br \/>\nlet mergeRange = mySheet.getRange(2, 2, 5, 4);<br \/>\n\/\/\u53d6\u5f97\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306b\u5bfe\u3057\u30bb\u30eb\u306e\u7d50\u5408\u3092\u5b9f\u884c<br \/>\nmergeRange.merge();<br \/>\n}<\/code><\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001getRange\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u304c\u7d50\u5408\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2017\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u306emerge\u30e1\u30bd\u30c3\u30c9\u3067\u30bb\u30eb\u306e\u7d50\u5408\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3082\u53cd\u6620\" width=\"800\" height=\"438\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004-300x164.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004-768x420.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004-530x290.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004-565x309.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004-710x389.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_004-725x397.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u4e0a\u56f3\u306e\u3088\u3046\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u3082\u6307\u5b9a\u7bc4\u56f2\u304c\u30bb\u30eb\u7d50\u5408\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b7\u30fc\u30c8\u4e0a\u9078\u629e\u3055\u308c\u305f\u30bb\u30eb\u3092GAS\u3067\u7d50\u5408\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u7d9a\u3044\u3066getRange\u30e1\u30bd\u30c3\u30c9\u3067\u7d50\u5408\u7bc4\u56f2\u3092\u9078\u629e\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u3042\u3089\u304b\u3058\u3081\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u9078\u629e\u3057\u305f\u30bb\u30eb\u3092\u7d50\u5408\u3059\u308bGAS\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2018\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005.jpg\" alt=\"\u3042\u3089\u304b\u3058\u3081\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u7d50\u5408\u3057\u305f\u3044\u30bb\u30eb\u7bc4\u56f2\u3092\u9078\u629e\u3057\u3066\u304a\u304f\" width=\"800\" height=\"438\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005-300x164.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005-768x420.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005-530x290.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005-565x309.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005-710x389.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_005-725x397.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30b7\u30fc\u30c8\u4e0a\u306e\u30bb\u30eb\u9078\u629e\u7bc4\u56f2\u3092\u3001\u30b3\u30f3\u30c6\u30ca\u30d0\u30a4\u30f3\u30c9\u578b\u306eGAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u53d6\u5f97\u3059\u308b\u306b\u306fgetActiveRange\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2015\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u9078\u629e\u3057\u3066\u3044\u308b\u30bb\u30eb\u7bc4\u56f2\u3092getActiveRange\u3067\u53d6\u5f97\u3057\u3001\u30bb\u30eb\u7d50\u5408\u3092\u5b9f\u884c\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" width=\"800\" height=\"504\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002-300x189.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002-768x484.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002-530x334.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002-565x356.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002-710x447.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_002-725x457.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><code>function mergeSelectedCell() {<br \/>\n\/\/\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d10\u4ed8\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<br \/>\nlet mySheet = SpreadsheetApp.getActiveSheet()<br \/>\n\/\/\u30b7\u30fc\u30c8\u4e0a\u3067\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bb\u30eb\u7bc4\u56f2\u3092\u53d6\u5f97<br \/>\nlet mergeRange = mySheet.getActiveRange();<br \/>\n\/\/\u53d6\u5f97\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306b\u5bfe\u3057\u30bb\u30eb\u306e\u7d50\u5408\u3092\u5b9f\u884c<br \/>\nmergeRange.merge();<br \/>\n}<\/code><\/p>\n<p>\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u9078\u629e\u3055\u308c\u305f\u30bb\u30eb\u304c\u7d50\u5408\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2019\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u3067\u9078\u629e\u3057\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u3092\u7d50\u5408\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\" width=\"800\" height=\"442\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006-300x166.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006-768x424.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006-530x293.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006-565x312.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006-710x392.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_006-725x401.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u4eca\u56de\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u30d0\u30a4\u30f3\u30c9\u578b\u306eGAS\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u307f\u6709\u52b9\u3067\u3059\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u9078\u629e\u7bc4\u56f2\u3092\u53d6\u5f97\u4e0d\u53ef\u80fd\u306a\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u578b\u3067\u306f\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h2>\u6c34\u5e73\u30fb\u5782\u76f4\u65b9\u5411\u306e\u30bb\u30eb\u7d50\u5408\u3082GAS\u3067\u53ef\u80fd<\/h2>\n<p>\u306a\u304a\u3001\u30bb\u30eb\u7d50\u5408\u306b\u95a2\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u3001\u6c34\u5e73(\u5217\u65b9\u5411)\u306b\u7d50\u5408\u3059\u308bmergeAcross\u30e1\u30bd\u30c3\u30c9\u3068\u5782\u76f4(\u884c\u65b9\u5411)\u306b\u7d50\u5408\u3059\u308bmergeVertically\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><em><strong>Range.mergeAcross()<\/strong><\/em><\/p>\n<p><em><strong>Range.mergeVertically()<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2016\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003.jpg\" alt=\"GAS\u306emergeAcross\u30e1\u30bd\u30c3\u30c9\u3068mergeVertically\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" width=\"800\" height=\"534\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003-300x200.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003-768x513.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003-530x354.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003-565x377.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003-710x474.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_003-725x484.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><code>function mergeAcrossCell() {<br \/>\n\/\/\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d10\u4ed8\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<br \/>\nlet mySheet = SpreadsheetApp.getActiveSheet()<br \/>\n\/\/\u30b7\u30fc\u30c8\u304b\u3089\u7d50\u5408\u3057\u305f\u3044\u7bc4\u56f2(B2:E6)\u306e\u30bb\u30eb\u3092\u53d6\u5f97<br \/>\nlet mergeRange = mySheet.getRange(2, 2, 5, 4);<br \/>\n\/\/\u53d6\u5f97\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306b\u5bfe\u3057\u30bb\u30eb\u306e\u7d50\u5408\u3092\u5b9f\u884c<br \/>\nmergeRange.mergeAcross();<br \/>\n}<br \/>\nfunction mergeVerticallyCell() {<br \/>\n\/\/\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d10\u4ed8\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<br \/>\nlet mySheet = SpreadsheetApp.getActiveSheet()<br \/>\n\/\/\u30b7\u30fc\u30c8\u304b\u3089\u7d50\u5408\u3057\u305f\u3044\u7bc4\u56f2(B8:E12)\u306e\u30bb\u30eb\u3092\u53d6\u5f97<br \/>\nlet mergeRange = mySheet.getRange(8, 2, 5, 4);<br \/>\n\/\/\u53d6\u5f97\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306b\u5bfe\u3057\u30bb\u30eb\u306e\u7d50\u5408\u3092\u5b9f\u884c<br \/>\nmergeRange.mergeVertically();<br \/>\n}<\/code><\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u305d\u308c\u305e\u308c\u9078\u629e\u7bc4\u56f2\u306e\u30bb\u30eb\u304c\u5217\u65b9\u5411\u3068\u884c\u65b9\u5411\u306b\u7d50\u5408\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2020\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007.jpg\" alt=\"Google Apps Script(GAS)\u306emergeAcross\u3068mergeVertically\u3092\u5b9f\u884c\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u7d50\u679c\" width=\"800\" height=\"526\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007-300x197.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007-768x505.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007-530x348.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007-565x371.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007-710x467.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2020\/11\/20201114_auto_007-725x477.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u306a\u304a\u3001\u7d50\u5408\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u884c\u65b9\u5411\u306b\u7d50\u5408\u3057\u3066\u3044\u308b\u30bb\u30eb\u306b\u5bfe\u3057\u3001mergeAccross\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u540c\u69d8\u306b\u5217\u65b9\u5411\u306b\u7d50\u5408\u3057\u3066\u3044\u308b\u30bb\u30eb\u306b\u5bfe\u3057\u3001mergeVertically\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u8907\u6570\u306e\u30bb\u30eb\u3092\u3001Google Apps Script(GAS)\u3067\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>getRange\u3084getActiveCell\u3067\u7d50\u5408\u3057\u305f\u3044\u30bb\u30eb\u7bc4\u56f2\u3092\u9078\u629e\u3057\u305f\u4e0a\u3067\u3001merge\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001GAS\u3067\u30bb\u30eb\u7d50\u5408\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306b\u3082\u3001\u5217\u65b9\u5411\u306b\u7d50\u5408\u3059\u308bmergeAccross\u30e1\u30bd\u30c3\u30c9\u3084\u3001\u884c\u65b9\u5411\u306b\u7d50\u5408\u3059\u308bmergeVertically\u30e1\u30bd\u30c3\u30c9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u81ea\u52d5\u5316\u3067\u30bb\u30eb\u7d50\u5408\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u4eca\u56de\u7d39\u4ecb\u3057\u305f3\u7a2e\u985e\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u99c6\u4f7f\u3057\u3066\u5b9f\u88c5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3092\u4f7f\u3044\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u9078\u629e\u3057\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u3092\u7d50\u5408\u3057\u30661\u3064\u306e\u30bb\u30eb\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u3092GAS\u3067\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002 GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,64,477],"class_list":["post-1986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gas","tag-gas","tag-64","tag-477"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1986","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=1986"}],"version-history":[{"count":8,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1986\/revisions"}],"predecessor-version":[{"id":2090,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1986\/revisions\/2090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2014"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}