{"id":14502,"date":"2022-03-24T12:00:16","date_gmt":"2022-03-24T03:00:16","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=14502"},"modified":"2022-03-24T16:44:52","modified_gmt":"2022-03-24T07:44:52","slug":"office-scripts%e3%82%b3%e3%83%bc%e3%83%89%e3%81%a8%e3%81%97%e3%81%a6%e3%82%b3%e3%83%94%e3%83%bc%e6%a9%9f%e8%83%bd%e3%81%ae%e7%b4%b9%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=14502","title":{"rendered":"[Office Scripts]\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30b3\u30d4\u30fc\u6a5f\u80fd\u306e\u7d39\u4ecb"},"content":{"rendered":"<p>\u4e45\u3057\u3076\u308a\u306bOffice \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8a18\u4e8b\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fOffice \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u89e6\u3063\u3066\u3044\u3066<i>\u300c\u3061\u3087\u3063\u3068\u4fbf\u5229\u3060\u306a\uff01\u300d<\/i>\u3068\u601d\u3063\u305f\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30b3\u30d4\u30fc<\/span>\u300d\u6a5f\u80fd\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/docs.microsoft.com\/ja-jp\/office\/dev\/scripts\/develop\/best-practices?WT.mc_id=M365-MVP-4029057#use-the-action-recorder-to-learn-new-features\" target=\"_blank\" rel=\"external nofollow noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=docs.microsoft.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">docs.microsoft.com<\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fdocs.microsoft.com%2Fja-jp%2Foffice%2Fdev%2Fscripts%2Fdevelop%2Fbest-practices%3FWT.mc_id%3DM365-MVP-4029057%23use-the-action-recorder-to-learn-new-features?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Office \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306e\u30d9\u30b9\u30c8 \u30d7\u30e9\u30af\u30c6\u30a3\u30b9 - Office Scripts<\/div><div class=\"lkc-url\" title=\"https:\/\/docs.microsoft.com\/ja-jp\/office\/dev\/scripts\/develop\/best-practices?WT.mc_id=M365-MVP-4029057#use-the-action-recorder-to-learn-new-features\">https:\/\/docs.microsoft.com\/ja-jp\/office\/dev\/scripts\/develop\/best-practices?WT.mc_id=M365-MVP-4029057#use-the-action-recorder-to-learn-new-features<\/div><div class=\"lkc-excerpt\">\u4e00\u822c\u7684\u306a\u554f\u984c\u3092\u9632\u6b62\u3057\u3001\u4e88\u671f\u3057\u306a\u3044\u5165\u529b\u307e\u305f\u306f\u30c7\u30fc\u30bfOffice\u3067\u304d\u308b\u5805\u7262\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p>Office \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001VBA\u30de\u30af\u30ed\u306e\u3088\u3046\u306b\u64cd\u4f5c\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\u8a18\u9332\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u8a18\u9332\u4e2d\u306b\u8868\u793a\u3055\u308c\u308b\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30b3\u30d4\u30fc<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3001\u8a18\u9332\u3057\u305f\u90e8\u5206\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_CopyAsCode_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_CopyAsCode_01.jpg\" alt=\"\" width=\"666\" height=\"495\" class=\"alignnone size-full wp-image-14503\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_CopyAsCode_01.jpg 666w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OfficeScripts_CopyAsCode_01-300x223.jpg 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/a><\/p>\n<p>\u5b9f\u969b\u306bA1:A3\u30bb\u30eb\u3092\u592a\u5b57\u306b\u3057\u3066\u964d\u9806\u30bd\u30fc\u30c8\u3057\u305f\u969b\u306b\u30b3\u30d4\u30fc\u3057\u305f\u30b3\u30fc\u30c9\u304c\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">let selectedSheet = workbook.getActiveWorksheet();\r\n\/\/ Set font bold to true for range A1:A3 on selectedSheet\r\nselectedSheet.getRange(&quot;A1:A3&quot;).getFormat().getFont().setBold(true);\r\n\/\/ Sort the range range A1:A3 on selectedSheet\r\nselectedSheet.getRange(&quot;A1:A3&quot;).getSort().apply(&#x5B;{ key: 0, ascending: false }], undefined, false, ExcelScript.SortOrientation.rows);<\/pre>\n<p>\u3069\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u6307\u5b9a\u3059\u3079\u304d\u5f15\u6570\u304c\u4f55\u306a\u306e\u304b\u304c\u3059\u3050\u306b\u5206\u304b\u308a\u307e\u3059\u306d\uff01<br \/>\n\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u304c\u5206\u304b\u3089\u306a\u3044\u3068\u304d\u306b\u975e\u5e38\u306b\u5f79\u7acb\u3064\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u8a18\u9332\u3092\u505c\u6b62\u3057\u3066\u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u958b\u3051\u3070\u30b3\u30fc\u30c9\u3092\u3059\u3050\u306b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u304c\u3001\u8a18\u9332 \u2192 \u300c\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30b3\u30d4\u30fc\u300d\u3067\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d \u2192 \u518d\u958b(\u8a18\u9332\u306e\u3084\u308a\u76f4\u3057) \u2192 \u300c\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30b3\u30d4\u30fc\u300d\u3067\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u2026\u3068\u3044\u3063\u305f\u5177\u5408\u306b\u3001\u3044\u3061\u3044\u3061\u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u958b\u304b\u306a\u304f\u3066\u3082\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3068\u3053\u308d\u304c\u672c\u6a5f\u80fd\u306e\u4fbf\u5229\u306a\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u7686\u3055\u3093\u3082\u662f\u975eOffice \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b66\u7fd2\u306b\u304a\u5f79\u7acb\u3066\u304f\u3060\u3055\u3044\uff01<\/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<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":"\u4e45\u3057\u3076\u308a\u306bOffice \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u4eca\u56de\u306fOffice \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u89e6\u3063\u3066\u3044\u3066\u300c\u3061\u3087\u3063\u3068\u4fbf\u5229\u3060\u306a\uff01\u300d\u3068\u601d\u3063\u305f\u300c\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30b3\u30d4\u30fc\u300d\u6a5f\u80fd\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 Office \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001VBA\u30de\u30af\u30ed\u306e\u3088\u3046\u306b\u64cd\u4f5c\u3092\u30b9 [&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]\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30b3\u30d4\u30fc\u6a5f\u80fd\u306e\u7d39\u4ecb]","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-14502","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-3LU","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14502","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=14502"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14502\/revisions"}],"predecessor-version":[{"id":14504,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14502\/revisions\/14504"}],"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=14502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}