{"id":2908,"date":"2022-04-18T12:00:00","date_gmt":"2022-04-18T03:00:00","guid":{"rendered":"https:\/\/for-dummies.net\/gas-noobs\/?p=2908"},"modified":"2022-04-18T12:57:12","modified_gmt":"2022-04-18T03:57:12","slug":"move-to-the-last-data-cell-on-open-automatically","status":"publish","type":"post","link":"https:\/\/for-dummies.net\/gas-noobs\/move-to-the-last-data-cell-on-open-automatically\/","title":{"rendered":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u3044\u305f\u3089\u81ea\u52d5\u7684\u306b\u6700\u7d42\u884c\u306b\u79fb\u52d5\u3057\u3066\u307f\u308b"},"content":{"rendered":"\n<h2>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u3044\u305f\u3089\u81ea\u52d5\u7684\u306b\u6700\u7d42\u884c\u306b\u79fb\u52d5\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u30c7\u30fc\u30bf\u304c\u305f\u304f\u3055\u3093\u306f\u683c\u7d0d\u3055\u308c\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3059\u308b\u306e\u306f\u4f55\u304b\u3068\u9aa8\u304c\u6298\u308c\u308b\u4f5c\u696d<\/strong><\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304b\u3089\u81a8\u5927\u306a\u30c7\u30fc\u30bf\u3092\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u5165\u529b\u4f4d\u7f6e\u306b\u79fb\u52d5\u3059\u308b\u306e\u306f\u8ab0\u3082\u304c\u3084\u308a\u305f\u304f\u306a\u3044\u3053\u3068\u306e\u4e00\u3064<\/strong><\/span>\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p>\u300e<span class=\"swl-marker mark_orange\"><strong>Ctrl \uff0b \u21e9\u300f<\/strong><\/span>\u3092\u62bc\u3057\u3066\u4e00\u6c17\u306b\u6700\u7d42\u884c\u307e\u3067\u79fb\u52d5\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001<span class=\"swl-marker mark_orange\"><strong>\u30c7\u30fc\u30bf\u304c\u5927\u91cf\u306b\u3042\u308b\u3068\u6a5f\u80fd\u3057\u306a\u304f\u306a\u308b<\/strong><\/span>\u306e\u3067\u3001\u56f0\u3063\u305f\u3082\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u306f\u305d\u3093\u306a\u7686\u3055\u3093\u304c\u4eca\u65e5\u304b\u3089\u3059\u3050\u306b\u4f7f\u3048\u308b\u30b3\u30fc\u30c9\u3092\u4f7f\u3044\u306a\u304c\u3089\u3001SpreadsheetApp\u306esetCurrentCell\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"1\">\u6700\u7d42\u884c\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u65e9\u901f\u30b3\u30fc\u30c9\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u3044\u305f\u6642\u306b\u81ea\u52d5\u7684\u306b\u6700\u7d42\u306e\u30c7\u30fc\u30bf\u884c\u306b\u79fb\u52d5\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"swell-block-button is-style-btn_normal is-style-btn_normal is-style-btn_normal is-style-btn_normal\" data-id=\"eb9a4135\"><a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/136-dg-g8Ox_JNvNucthLQAvjaIh9caElYV4zAo7FYKg\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"swell-block-button__link\"><span>\u30b5\u30f3\u30d7\u30eb\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8<\/span><\/a><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"\u6700\u7d42\u884c\u3092\u81ea\u52d5\u7684\u306b\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"JavaScript\"><code>function onOpen() {\n  let ss = SpreadsheetApp.getActiveSpreadsheet();\n  let sheet = ss.getSheets()[0];\n  let maxRow = sheet.getMaxRows();\n  let cell = sheet.getRange(maxRow, 1);\n  sheet.setCurrentCell(cell);\n  let lastRow = sheet.getLastRow();\n  cell = sheet.getRange(lastRow, 1);\n  sheet.setCurrentCell(cell);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u3044\u3066\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u308c\u3070\u3001\u3059\u3050\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-video is-style-shadow\"><video autoplay controls loop src=\"https:\/\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screen-recording-2022-04-18-11.46.55-2.webm\"><\/video><figcaption>\u81ea\u52d5\u7684\u306b\u6700\u7d42\u884c\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b<\/figcaption><\/figure>\n\n\n\n<p>\u4e0a\u8a18\u52d5\u753b\u306e\u3088\u3046\u306b\u30b3\u30d4\u30da\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u308b\u3060\u3051\u3067\u3059\u3050\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306e<span class=\"swl-marker mark_orange\"><strong>\u30b3\u30fc\u30c9\u306e\u30ad\u30fc\u30dd\u30a4\u30f3\u30c8\u306f\u4e00\u5ea6\u30b7\u30fc\u30c8\u306e\u6700\u7d42\u884c\uff08\u30b5\u30f3\u30d7\u30eb\u30b7\u30fc\u30c8\u3067\u306f1000\u884c\u76ee\uff09\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3057\u3066\u304b\u3089\u3001\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u308b\u884c\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3057\u3066\u3044\u308b<\/strong><\/span>\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u30b7\u30fc\u30c8\u306e\u6700\u7d42\u884c\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3057\u306a\u3044\u3067\u30c7\u30fc\u30bf\u306e\u6700\u7d42\u884c\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u53e4\u3044\u30c7\u30fc\u30bf\u3067\u753b\u9762\u304c\u3044\u3063\u3071\u3044<\/strong><\/span>\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b7\u30fc\u30c8\u306e\u6700\u7d42\u884c\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u305b\u305a\u306b\u884c\u3046\u3068\u6b21\u306e\u52d5\u753b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-video is-style-shadow\"><video autoplay controls loop src=\"https:\/\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/Screen-recording-2022-04-18-11.53.03.webm\"><\/video><figcaption>\u6700\u7d42\u884c\u3092\u53d6\u5f97\u305b\u305a\u306b\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u308b\u6700\u5f8c\u306e\u884c\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3059\u308b\u3068\u3053\u3046\u306a\u308b<\/figcaption><\/figure>\n\n\n\n<p>\u8ffd\u52a0\u3067\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u305f\u3044\u306e\u306f\u63a1\u96c6\u30c7\u30fc\u30bf\u884c\u306e\u4e0b\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u5165\u529b\u30a8\u30ea\u30a2\u304c\u5e83\u304f\u898b\u3048\u3066\u3044\u305f\u65b9\u304c\u305d\u306e\u5f8c\u306e\u4f5c\u696d\u304c\u3084\u308a\u3084\u3059\u3044\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<h2>\u4efb\u610f\u306e\u30bb\u30eb\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<p>\u672c\u30da\u30fc\u30b8\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4efb\u610f\u306e\u30bb\u30eb\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"is-style-num_circle -list-under-dashed\"><li><a href=\"#setActiveRange&amp;setCurrentCell\" data-type=\"internal\" data-id=\"#setActiveRange&amp;setCurrentCell\">setActiveRange<\/a>\uff08\u4efb\u610f\u306e\u7bc4\u56f2\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30ec\u30f3\u30b8\u306b\u8a2d\u5b9a\u3059\u308b\uff09<\/li><li><a href=\"#setActiveRange&amp;setCurrentCell\" data-type=\"internal\" data-id=\"#setActiveRange&amp;setCurrentCell\">setCurrentCell<\/a>\uff08\u9078\u629e\u3057\u305f\u30bb\u30eb\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b\uff09<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<p>\u95a2\u9023\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f\u4e0a\u8a18\u306e2\u3064\u3067\u3059\u3002\u9055\u3044\u306f\u5f8c\u307b\u3069\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3>\u95a2\u9023\u3059\u308b\u30e1\u30bd\u30c3\u30c9<\/h3>\n\n\n\n<p>\u30a2\u30af\u30c6\u30a3\u30d6\u30ec\u30f3\u30b8\u3084\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u3092\u3092\u53d6\u5f97\u3059\u308b\u30b3\u30fc\u30c9\u306b\u4e0b\u8a18\u306e2\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\" data-style=\"card\">\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 src=\"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/sheetsReference.png?fit=300%2C169&#038;ssl=1\" 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:\/\/for-dummies.net\/gas-noobs\/how-to-get-currently-active-files-sheets-and-ranges-for-spreadsheets-files-by-gas\/\">\u3010\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308b\u3011GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u3007\u3007\u3092\u53d6\u5f97\u3059\u308b<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u306e\u30c7\u30fc\u30bf\u7ba1\u7406\u3092\u3057\u3066\u3044\u304f\u4e2d\u3067\u3001\u4f5c\u696d\u8005\u304c\u7279\u5b9a\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u5185\u3067\u4f5c\u696d\u3092\u884c\u3063\u305f\u6642\u3060\u3051\u8d77\u52d5\u3092\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3084\u7279\u5b9a\u306e\u30bb\u30eb\u306b\u5165\u529b\u304c\u884c\u308f\u308c\u305f\u969b\u3060\u3051\u8d77\u52d5&#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<div class=\"wp-block-group has-border -border01\"><div class=\"wp-block-group__inner-container\">\n<ol class=\"is-style-num_circle -list-under-dashed\"><li>getActiveRange\uff08\u9078\u629e\u30bb\u30eb\u306e\u7bc4\u56f2\u3092\u53d6\u5f97\u3059\u308b\uff09<\/li><li>getCurrentCell\uff08\u9078\u629e\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\uff09<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<h2 id=\"setActiveRange&amp;setCurrentCell\">setActiveRange(range)\u3068setCurrentCell(cell)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u4e0a\u8a18\u306e\u6700\u7d42\u884c\u306b\u79fb\u52d5\u3059\u308b\u30b3\u30fc\u30c9\u3067\u5229\u7528\u3057\u305f\u306e\u306f\u3001setCurrentCell\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<span class=\"swl-marker mark_orange\"><strong>\u4f3c\u305f\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u306bsetActiveRange\u3068\u3044\u3046\u3082\u306e\u3082\u3042\u308a\u307e\u3059<\/strong><\/span>\u304c\u3001<span class=\"swl-marker mark_orange\"><strong>\u3069\u3061\u3089\u3082\u4efb\u610f\u306e\u30bb\u30eb\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u72b6\u614b\uff08\u30af\u30ea\u30c3\u30af\u3057\u3066\u9078\u629e\u3055\u308c\u305f\u72b6\u614b\uff09\u306b\u3059\u308b\u30b3\u30fc\u30c9<\/strong><\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5fdc\u7528\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u6700\u7d42\u884c\u4e8c\u79fb\u52d5\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"block-69796d67-b681-4df4-8aad-d2196f04803a\">\u5f15\u6570\u306b\u5165\u308c\u308b\u5024<\/h3>\n\n\n\n<ul id=\"block-61a13241-f960-4372-8576-864d74085b64\"><li>range\uff08Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09 \u2014 \u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3057\u305f\u3044Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a<\/li><\/ul>\n\n\n\n<h3 id=\"block-68c65b11-07c7-47ac-9813-b6d5751d28c9\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"setActiveRange(range)\u3068setCurrentCell(cell)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" data-lang=\"JavaScript\"><code>function sampleCodeForSetActiveRange() {\n  let ss = SpreadsheetApp.getActiveSpreadsheet();\n  let sheet = ss.getSheets()[0];\n  let range = sheet.getRange(&#39;C1:D4&#39;);\n  SpreadsheetApp.setActiveRange(range);\n  let selection = SpreadsheetApp.getSelection();\n  let currentCell = selection.getCurrentCell(); \/\/C1\u30bb\u30eb\u3092\u53d6\u5f97\n  let activeRange = selection.getActiveRange(); \/\/C1:D4\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u53d6\u5f97\n  let valueForC1 = currentCell.getValue();\n  let valuesForC1toD4 = activeRange.getValues();\n}<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"block-0b9b6da3-3a59-4d46-8d37-f940e0f0e3fb\">\u5909\u6570\u306e\u8aac\u660e<\/h3>\n\n\n\n<p class=\"is-style-big_icon_memo\" id=\"block-829719da-f240-48bc-8824-19e669c1d8fe\">ss&nbsp;= \u5bfe\u8c61\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8<br>sheet&nbsp;= \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u756a\u5de6\u306b\u3042\u308b\u30b7\u30fc\u30c8\u30bf\u30d6<br>range&nbsp;= C1:D4\u306e\u30bb\u30eb\u7bc4\u56f2<br>selection&nbsp;= \u9078\u629e\u7bc4\u56f2\u3092\u53d6\u5f97<br>currentCell&nbsp;= C1\u30bb\u30eb\u3092\u53d6\u5f97<br>activeRange&nbsp;= C1:D4\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u53d6\u5f97<br>valueForC1&nbsp;= C1\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97<br>valuesForC1toD4&nbsp;= C1:D4\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97<\/p>\n\n\n\n<p id=\"block-e9f1742f-9a87-4907-8d7c-4ef907a514a6\">2\u3064\u306e\u30b3\u30fc\u30c9\u306e\u9055\u3044\u3092\u6bd4\u8f03\u3057\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3057\u3066\u3001\u4e00\u3064\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3069\u3061\u3089\u306e\u30b3\u30fc\u30c9\u3082\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u3002<br><span class=\"swl-marker mark_orange\"><strong>\u3069\u3061\u3089\u3082\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u3092\u6307\u5b9a\u3059\u308b\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u3067\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u82e5\u5e72\u306e\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u90e8\u5206\u3092\u542b\u3081\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u30014\u884c\u76ee\u306bC1:D4\u30bb\u30eb\u306e\u7bc4\u56f2\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>setActiveRange\u306f\u7bc4\u56f2\u6307\u5b9a\u304c\u3067\u304d\u308b<\/strong><\/span>\u306e\u3067\u3001<span class=\"swl-marker mark_orange\"><strong>getRange\u3067\u6307\u5b9a\u3057\u305fC1:D4\u30bb\u30eb\u306e\u7bc4\u56f2\u304c\u3059\u3079\u3066\u30a2\u30af\u30c6\u30a3\u30d6\u306e\u72b6\u614b<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3067\u3082\u3001<span class=\"swl-marker mark_orange\"><strong>\u5b9f\u969b\u306b\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u30bb\u30eb\u306fC1\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001activeRange\u306b\u5bfe\u3057\u3066getValue()\u3092\u3059\u308b\u3068C1\u306e\u5024\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>\u305f\u3060\u3057\u3001activeRange\u306b\u5bfe\u3057\u3066getValues()\u3092\u3059\u308b\u3068\u5bfe\u8c61\u306e\u7bc4\u56f2\u5185\u306e\u3059\u3079\u3066\u306e\u5024\u304c\u4e8c\u6b21\u5143\u914d\u5217\u3067\u53d6\u5f97\u304c\u3067\u304d\u307e\u3059<\/strong><\/span>\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-icon_info\"><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-fz u-fz-xl\">setActiveRange\u306f\u30bb\u30eb\u7bc4\u56f2\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b<\/span><\/strong><\/span><\/p>\n\n\n\n<p>\u4e00\u65b9\u3067\u3001<span class=\"swl-marker mark_orange\"><strong>setCurrentCell\u306f\u5358\u4e00\u30bb\u30eb\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb<\/strong><\/span>\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>C1:D4\u306e\u3088\u3046\u306b\u8907\u6570\u7bc4\u56f2\u304c\u53d6\u5f97\u3055\u308c\u305frange\u306b\u5bfe\u3057\u3066setCuttentCell\u3092\u3059\u308b\u3068\u3001\u4e00\u756a\u5de6\u4e0a\u306b\u3042\u308bC1\u30bb\u30eb\u306e\u307f\u304c\u30a2\u30af\u30c6\u30a3\u30d6\u306e\u72b6\u614b<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001<span class=\"swl-marker mark_orange\"><strong>currentCell\u306b\u5bfe\u3057\u3066getValue()\u3092\u3059\u308c\u3070C1\u30bb\u30eb\u306e\u5024\u304c\u53d6\u5f97<\/strong><\/span>\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-marker mark_orange\"><strong>currentCell\u306f\u5358\u4e00\u30bb\u30eb\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001getValues()\u3092\u3057\u3066\u3082\u7d50\u679c\u306fgetValue()\u3068\u5909\u308f\u308a\u307e\u305b\u3093<\/strong><\/span>\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center is-style-icon_info\"><span class=\"swl-marker mark_orange\"><strong><span class=\"swl-fz u-fz-xl\">setCurrentCell\u306f\u5358\u4e00\u30bb\u30eb\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u306b\u3059\u308b<\/span><\/strong><\/span><\/p>\n\n\n\n<p>\u3069\u3061\u3089\u3082\u4f3c\u305f\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u304c\u3001\u4f7f\u3044\u65b9\u306b\u82e5\u5e72\u306e\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u70b9\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2>\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5fdc\u7528\u3057\u3066\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u969b\u306b\u81ea\u52d5\u7684\u306b\u6700\u7d42\u884c\u4e8c\u79fb\u52d5\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u304d\u306f\u6d3b\u7528\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u3044\u305f\u3089\u81ea\u52d5\u7684\u306b\u6700\u7d42\u884c\u306b\u79fb\u52d5\u3057\u3066\u307f\u308b \u30c7\u30fc\u30bf\u304c\u305f\u304f\u3055\u3093\u306f\u683c\u7d0d\u3055\u308c\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3059\u308b\u306e\u306f\u4f55\u304b\u3068\u9aa8\u304c\u6298\u308c\u308b\u4f5c\u696d\u3067\u3059\u3002 \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304b\u3089\u81a8\u5927\u306a\u30c7\u30fc\u30bf\u3092\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u5165\u529b\u4f4d\u7f6e\u306b\u79fb\u52d5\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2924,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"{\"eb9a4135\":{\"pv\":24743,\"imp\":20688,\"click\":1368},\"ceb0b3cf\":{\"pv\":1}}","spay_email":"","jetpack_publicize_message":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u3044\u305f\u3089\u81ea\u52d5\u7684\u306b\u6700\u7d42\u884c\u306b\u79fb\u52d5\u3057\u3066\u307f\u308b\n\n#GAS #GoogleAppsScript #SpreadsheetApp #setActiveRange #setCurrentCell","jetpack_is_tweetstorm":false},"categories":[16,15,3,81],"tags":[51,52,91,65,113],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2022\/04\/how_to_get_the_last_data_cell_onOpen.png?fit=1200%2C675&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9Z92k-KU","jetpack_likes_enabled":true,"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/2908"}],"collection":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/comments?post=2908"}],"version-history":[{"count":3,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/2908\/revisions"}],"predecessor-version":[{"id":2927,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/2908\/revisions\/2927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media\/2924"}],"wp:attachment":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media?parent=2908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/categories?post=2908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/tags?post=2908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}