{"id":13752,"date":"2021-07-05T07:00:59","date_gmt":"2021-07-04T22:00:59","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=13752"},"modified":"2021-07-05T11:29:13","modified_gmt":"2021-07-05T02:29:13","slug":"office-scripts%e6%8c%87%e5%ae%9a%e3%81%97%e3%81%9f%e5%88%97%e3%81%ae%e6%9c%80%e7%b5%82%e3%82%bb%e3%83%ab%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%952","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=13752","title":{"rendered":"[Office Scripts]\u6307\u5b9a\u3057\u305f\u5217\u306e\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5(2)"},"content":{"rendered":"<p>Office \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u6307\u5b9a\u3057\u305f\u5217\u306e\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001\u3053\u308c\u307e\u3067getSpecialCells\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u308agetRangeEdge\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u308a\u8272\u3005\u3068\u8a66\u884c\u932f\u8aa4\u3092\u3057\u3066\u3044\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u4eca\u65e5<a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/office-scripts\" title=\"Newest 'office-scripts' Questions - Stack Overflow\" target=\"_blank\" rel=\"noopener\">Stack Overflow<\/a>\u3092\u898b\u3066\u3044\u3066\u3001\u3082\u3063\u3068\u7c21\u5358\u306a\u65b9\u6cd5\u304c\u3042\u308b\u3053\u3068\u3092\u77e5\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function main(workbook: ExcelScript.Workbook){\r\n  let wrkSh = workbook.getWorksheet(&quot;in_t&quot;)\r\n  let lastRow = wrkSh.getRange(&quot;A:A&quot;).getUsedRange(true).getLastCell();\r\n  console.log(lastRow.getValue())\r\n}<\/pre>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/68199230\/vba-rangea1048576-endxlup-row-in-javascript-excel-api\" target=\"_blank\" rel=\"noopener\">https:\/\/stackoverflow.com\/questions\/68199230\/vba-rangea1048576-endxlup-row-in-javascript-excel-api<\/a> \u3088\u308a<\/p>\n<p>\u306a\u308b\u307b\u3069\u3002<br \/>\n<span style=\"color: #ff0000; font-weight: bold; font-size: 200%;\">getRange\u30e1\u30bd\u30c3\u30c9\u3067\u53d6\u5f97\u3057\u305f\u30bb\u30eb\u306b\u5bfe\u3057\u3066getUsedRange\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u826f\u3044<\/span>\u308f\u3051\u3067\u3059\u306d\uff01<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u3053\u308c\u307e\u3067\u3082getUsedRange\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304c\u3001Worksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u4f7f\u3063\u3066\u3044\u3066\u3001Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u4f7f\u3046\u3068\u3044\u3046\u767a\u60f3\u304c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u5b8c\u5168\u306b\u76f2\u70b9\uff01\u6065\u305a\u304b\u3057\u304f\u306a\u308b\u30ec\u30d9\u30eb\u306e\u898b\u843d\u3068\u3057\u3067\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u3053\u308c\u3067\u3088\u3046\u3084\u304f\u7c21\u5358\u306b\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u6539\u3081\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/kinuasa\/bfe466077973e58888b0c8fff6a5fcfc.js\"><\/script><\/p>\n<p>\u4e0a\u8a18\u306e\u901a\u308a\u3001\u307b\u3093\u306e\u6570\u884c\u3067\u3059\u3002<br \/>\n\u552f\u4e00\u5de5\u592b\u3057\u305f\u70b9\u3068\u8a00\u3048\u3070\u3001getLastCell\u30e1\u30bd\u30c3\u30c9\u304c\u5931\u6557\u3059\u308b\u672a\u4f7f\u7528\u306e\u5217\u3092\u6307\u5b9a\u3057\u305f\u969b\u306b1\u884c\u76ee\u306e\u30bb\u30eb\u3092\u8fd4\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n<p>\u4e0b\u8a18\u8a18\u4e8b\u3067\u306fgetRangeEdge\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3044\u305f\u305f\u3081\u3001Power Automate\u304b\u3089\u306e\u547c\u3073\u51fa\u3057\u3067\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u3042\u308c\u3070\u554f\u984c\u7121\u304f\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=13539\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeScripts-120x120.jpg' alt='[Office Scripts]\u6307\u5b9a\u3057\u305f\u5217\u306e\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2021.04.14<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=13539\">[Office Scripts]\u6307\u5b9a\u3057\u305f\u5217\u306e\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5 <\/a><\/div><div class=\"cardlink_excerpt\">2021\/7\/5 \u8ffd\u8a18\uff1a\r\n\u3055\u3089\u306b\u7c21\u5358\u306b\u6307\u5b9a\u3057\u305f\u5217\u306e\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\r\n\r\n\r\n\r\n\r\n\r\nOffice Scripts\u3067\u30bb\u30eb\u79fb\u52d5(Ctrl + \u77e2\u5370\u30ad\u30fc)\u3068\u30bb\u30eb\u7bc4\u56f2\u9078\u629e(Ctrl + Shift + \u77e2\u5370\u30ad\u30fc)\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_getLastRange_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_getLastRange_01-746x1024.png\" alt=\"\" width=\"746\" height=\"1024\" class=\"alignnone size-large wp-image-13753\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_getLastRange_01-746x1024.png 746w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_getLastRange_01-219x300.png 219w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_getLastRange_01-768x1054.png 768w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_getLastRange_01-1119x1536.png 1119w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_getLastRange_01.png 1236w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/a><\/p>\n<h4 class=\"style4a\">\u95a2\u9023\u8a18\u4e8b<\/h4>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=12733\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeScripts-120x120.jpg' alt='Office Scripts(Office \u30b9\u30af\u30ea\u30d7\u30c8)\u306e\u8a18\u4e8b\u307e\u3068\u3081' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2020.05.03<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=12733\">Office Scripts(Office \u30b9\u30af\u30ea\u30d7\u30c8)\u306e\u8a18\u4e8b\u307e\u3068\u3081 <\/a><\/div><div class=\"cardlink_excerpt\">\u5f53\u30d6\u30ed\u30b0\u306e\u300cOffice Scripts\u300d\u95a2\u9023\u306e\u8a18\u4e8b\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002\r\n\r\n\r\nOffice Scripts\u306e\u57fa\u672c\r\n\u30bb\u30eb\u64cd\u4f5c\r\n\u30b7\u30fc\u30c8\u64cd\u4f5c\r\n\u56f3\u5f62\u30fb\u753b\u50cf\u64cd\u4f5c\r\n\u30c6\u30fc\u30d6\u30eb\u64cd\u4f5c\r\n\u30b0\u30e9\u30d5\u64cd\u4f5c\r\nPower Automate\u9023\u643a\r\n\u305d\u306e\u4ed6\r\n\r\n\r\n\r\n\r\nO...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"Office \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u6307\u5b9a\u3057\u305f\u5217\u306e\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001\u3053\u308c\u307e\u3067getSpecialCells\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u308agetRangeEdge\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u308a\u8272\u3005\u3068\u8a66\u884c\u932f\u8aa4\u3092\u3057\u3066\u3044\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u4eca\u65e5Stack O [&hellip;]","protected":false},"author":1,"featured_media":12699,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Office Scripts]\u6307\u5b9a\u3057\u305f\u5217\u306e\u6700\u7d42\u30bb\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5(2)]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[173],"tags":[],"class_list":["post-13752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-officescripts"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeScripts.jpg","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-3zO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13752"}],"version-history":[{"count":4,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13752\/revisions"}],"predecessor-version":[{"id":13760,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13752\/revisions\/13760"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/12699"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}