{"id":591,"date":"2025-03-17T00:33:35","date_gmt":"2025-03-16T15:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/03\/excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e9%96%8b%e7%99%ba%e3%81%a8%e3%83%87%e3%83%97%e3%83%ad%e3%82%a4%e3%83%a1%e3%83%b3\/"},"modified":"2025-03-17T00:33:35","modified_gmt":"2025-03-16T15:33:35","slug":"excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e9%96%8b%e7%99%ba%e3%81%a8%e3%83%87%e3%83%97%e3%83%ad%e3%82%a4%e3%83%a1%e3%83%b3","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/03\/excel%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%b8%e3%81%ae%e9%81%93%ef%bc%9a%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e9%96%8b%e7%99%ba%e3%81%a8%e3%83%87%e3%83%97%e3%83%ad%e3%82%a4%e3%83%a1%e3%83%b3\/","title":{"rendered":"Excel\u30de\u30b9\u30bf\u30fc\u3078\u306e\u9053\uff1a\u30a2\u30c9\u30a4\u30f3\u958b\u767a\u3068\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3067\u696d\u52d9\u52b9\u7387\u3092\u9769\u65b0\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306eExcel\u30a2\u30c9\u30a4\u30f3\u958b\u767a\u3068\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u7ba1\u7406<\/h2>\n<p>\u4ee5\u4e0b\u306f\u3001Excel\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3082\u3063\u3068\u697d\u3092\u3057\u305f\u3044\u3001\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u3044\u4eba\u304c\u3059\u3050\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nSub \u81ea\u52d5\u96c6\u8a08\u30de\u30af\u30ed()<br \/>\n    Dim ws As Worksheet<br \/>\n    Dim lastRow As Long<\/p>\n<p>    Set ws = ActiveSheet<br \/>\n    lastRow = ws.Cells(ws.Rows.Count, &#8220;A&#8221;).End(xlUp).Row<\/p>\n<p>    ws.Range(&#8220;D2:D&#8221; &#038; lastRow).FormulaR1C1 = &#8220;=SUM(RC[-2]:RC[-1])&#8221;<br \/>\n    ws.Range(&#8220;E2:E&#8221; &#038; lastRow).FormulaR1C1 = &#8220;=AVERAGE(RC[-3]:RC[-2])&#8221;<\/p>\n<p>    MsgBox &#8220;\u96c6\u8a08\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01&#8221;, vbInformation<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001A\u5217\u304b\u3089C\u5217\u307e\u3067\u306e\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u3067\u96c6\u8a08\u3057\u3001D\u5217\u306b\u5408\u8a08\u3001E\u5217\u306b\u5e73\u5747\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n<h3>1. Excel\u30a2\u30c9\u30a4\u30f3\u958b\u767a\u306e\u57fa\u790e<\/h3>\n<p>Excel\u30a2\u30c9\u30a4\u30f3\u306e\u958b\u767a\u306f\u3001\u4e0a\u7d1a\u8005\u304cExcel\u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u3001\u696d\u52d9\u52b9\u7387\u3092\u98db\u8e8d\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30a2\u30c9\u30a4\u30f3\u3068\u306f\u3001Excel\u306b\u8ffd\u52a0\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3053\u3068\u3067\u3001\u30ab\u30b9\u30bf\u30e0\u30ea\u30dc\u30f3\u3001\u30bf\u30b9\u30af\u30da\u30a4\u30f3\u3001\u30ab\u30b9\u30bf\u30e0\u95a2\u6570\u306a\u3069\u3092\u542b\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30c9\u30a4\u30f3\u958b\u767a\u306e\u7b2c\u4e00\u6b69\u306f\u3001Visual Studio\uff08\u7d71\u5408\u958b\u767a\u74b0\u5883\uff09\u3068Office\u958b\u767a\u30c4\u30fc\u30eb\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u3059\u3002\u3053\u308c\u3089\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001C#\u3084VB.NET\u306a\u3069\u306e\u8a00\u8a9e\u3067\u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30c7\u30b6\u30a4\u30f3\u3001\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306e\u5b9f\u88c5\u3001\u305d\u3057\u3066Excel\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u3068\u306e\u9023\u643a\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u306e\u77e5\u8b58\u306f\u3001\u30a2\u30c9\u30a4\u30f3\u958b\u767a\u306b\u304a\u3044\u3066\u3082\u975e\u5e38\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u30de\u30af\u30ed\u3067\u57f9\u3063\u305f\u81ea\u52d5\u5316\u306e\u30a2\u30a4\u30c7\u30a2\u3092\u3001\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u5f62\u3067\u30a2\u30c9\u30a4\u30f3\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<h3>2. \u30a2\u30c9\u30a4\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u6226\u7565<\/h3>\n<p>\u958b\u767a\u3057\u305f\u30a2\u30c9\u30a4\u30f3\u3092\u52b9\u679c\u7684\u306b\u30e6\u30fc\u30b6\u30fc\u306b\u914d\u5e03\u3057\u3001\u7ba1\u7406\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\uff08\u5c55\u958b\uff09\u306e\u65b9\u6cd5\u306b\u306f\u3001\u4e3b\u306b\u4ee5\u4e0b\u306e3\u3064\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<p>1. ClickOnce\uff1a\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a2\u30c9\u30a4\u30f3\u3092\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u66f4\u65b0\u3067\u304d\u308b\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n2. \u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\uff1a\u5f93\u6765\u578b\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306ePC\u306b\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n3. Office 365 \u96c6\u4e2d\u7ba1\u7406\uff1a\u7d44\u7e54\u5168\u4f53\u306b\u30a2\u30c9\u30a4\u30f3\u3092\u4e00\u62ec\u5c55\u958b\u3059\u308b\u65b9\u6cd5\u3067\u3001\u5927\u898f\u6a21\u306a\u74b0\u5883\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u6226\u7565\u3092\u9078\u629e\u3059\u308b\u969b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u6570\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u74b0\u5883\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8981\u4ef6\u306a\u3069\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3084\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u65b9\u6cd5\u3082\u91cd\u8981\u306a\u691c\u8a0e\u4e8b\u9805\u3067\u3059\u3002<\/p>\n<h3>3. \u30a2\u30c9\u30a4\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u6027\u80fd\u6700\u9069\u5316<\/h3>\n<p>Excel\u30a2\u30c9\u30a4\u30f3\u306e\u958b\u767a\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u6027\u80fd\u306e\u4e21\u9762\u306b\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6697\u53f7\u5316\u3001\u5b89\u5168\u306a\u8a8d\u8a3c\u65b9\u6cd5\u306e\u5b9f\u88c5\u3001\u305d\u3057\u3066\u6f5c\u5728\u7684\u306a\u8106\u5f31\u6027\u306e\u30c1\u30a7\u30c3\u30af\u304c\u91cd\u8981\u3067\u3059\u3002\u7279\u306b\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u306e\u9023\u643a\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u306b\u5341\u5206\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6027\u80fd\u9762\u3067\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u969b\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u6700\u9069\u5316\u3084\u3001\u51e6\u7406\u901f\u5ea6\u306e\u5411\u4e0a\u304c\u8ab2\u984c\u3068\u306a\u308a\u307e\u3059\u3002\u975e\u540c\u671f\u51e6\u7406\u3084\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u4f7f\u7528\u306a\u3069\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u89b3\u70b9\u304b\u3089\u3001\u30a2\u30c9\u30a4\u30f3\u306e\u5fdc\u7b54\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u3082\u5fd8\u308c\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002\u9577\u6642\u9593\u306e\u51e6\u7406\u4e2d\u306f\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b\u306a\u3069\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u9069\u5207\u306a\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30c8\u30ec\u30b9\u306e\u306a\u3044\u64cd\u4f5c\u611f\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u306e\u77e5\u8b58\u306f\u3001\u30a2\u30c9\u30a4\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306b\u3082\u6d3b\u304b\u305b\u307e\u3059\u3002\u30de\u30af\u30ed\u3067\u57f9\u3063\u305f\u52b9\u7387\u7684\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u624b\u6cd5\u3092\u3001\u30a2\u30c9\u30a4\u30f3\u958b\u767a\u306b\u3082\u5fdc\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u9ad8\u901f\u3067\u5b89\u5b9a\u3057\u305f\u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u6210\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u70b9\u306b\u6ce8\u610f\u3092\u6255\u3044\u306a\u304c\u3089\u30a2\u30c9\u30a4\u30f3\u3092\u958b\u767a\u30fb\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u3067\u3001Excel\u3092\u3055\u3089\u306b\u5f37\u529b\u306a\u30d3\u30b8\u30cd\u30b9\u30c4\u30fc\u30eb\u3078\u3068\u9032\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0a\u7d1a\u8005\u306e\u7686\u3055\u3093\u306f\u3001\u3053\u308c\u3089\u306e\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u7d44\u7e54\u306e\u751f\u7523\u6027\u5411\u4e0a\u306b\u8ca2\u732e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306eExcel\u30a2\u30c9\u30a4\u30f3\u958b\u767a\u3068\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u7ba1\u7406 \u4ee5\u4e0b\u306f\u3001Excel\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3082\u3063\u3068\u697d\u3092\u3057\u305f\u3044\u3001\u696d\u52d9\u3092\u52b9\u7387\u5316\u3057\u305f\u3044\u4eba\u304c\u3059\u3050\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u3059\uff1a #8220;`vba Sub \u81ea\u52d5\u96c6\u8a08\u30de\u30af\u30ed(<\/p>\n","protected":false},"author":2,"featured_media":590,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-591","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced"],"_links":{"self":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/comments?post=591"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/591\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/590"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}