{"id":370,"date":"2025-01-03T02:33:34","date_gmt":"2025-01-02T17:33:34","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/01\/%e3%80%90%e9%a9%9a%e7%95%b0%e3%81%ae%e6%a5%ad%e5%8b%99%e9%9d%a9%e5%91%bd%e3%80%91excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e9%80%a3%e6%90%ba\/"},"modified":"2025-01-03T02:33:34","modified_gmt":"2025-01-02T17:33:34","slug":"%e3%80%90%e9%a9%9a%e7%95%b0%e3%81%ae%e6%a5%ad%e5%8b%99%e9%9d%a9%e5%91%bd%e3%80%91excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e9%80%a3%e6%90%ba","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/01\/%e3%80%90%e9%a9%9a%e7%95%b0%e3%81%ae%e6%a5%ad%e5%8b%99%e9%9d%a9%e5%91%bd%e3%80%91excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e9%80%a3%e6%90%ba\/","title":{"rendered":"\u3010\u9a5a\u7570\u306e\u696d\u52d9\u9769\u547d\u3011Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\uff01\u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed\u3067\u5b9f\u73fe\u3059\u308b\u6b21\u4e16\u4ee3\u306e\u81ea\u52d5\u5316\u30c6\u30af\u30cb\u30c3\u30af"},"content":{"rendered":"<h2>\u6b21\u4e16\u4ee3\u306e\u696d\u52d9\u81ea\u52d5\u5316\uff01\u4e0a\u7d1a\u8005\u304c\u6311\u6226\u3059\u308b\u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed<\/h2>\n<h3>\u3059\u3050\u306b\u8a66\u305b\u308b\u4e0a\u7d1a\u8005\u5411\u3051\u30de\u30af\u30ed\u30b3\u30fc\u30c9<\/h3>\n<p>\u4ee5\u4e0b\u306f\u3001\u6a5f\u68b0\u5b66\u7fd2\u3092\u6d3b\u7528\u3057\u3066\u30c7\u30fc\u30bf\u5206\u6790\u3092\u884c\u3046Excel \u30de\u30af\u30ed\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nSub MachineLearningAnalysis()<br \/>\n    &#8216; Python\u306e\u74b0\u5883\u8a2d\u5b9a<br \/>\n    Dim PyPath As String<br \/>\n    PyPath = &#8220;C:\\Path\\To\\Python\\python.exe&#8221;<\/p>\n<p>    &#8216; Python\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c<br \/>\n    Dim WshShell As Object<br \/>\n    Set WshShell = CreateObject(&#8220;WScript.Shell&#8221;)<br \/>\n    WshShell.Run PyPath &#038; &#8221; C:\\Path\\To\\ML_Script.py&#8221;, 1, True<\/p>\n<p>    &#8216; \u7d50\u679c\u306e\u53d6\u308a\u8fbc\u307f<br \/>\n    Sheets(&#8220;Results&#8221;).Range(&#8220;A1&#8221;).Value = &#8220;\u5206\u6790\u7d50\u679c&#8221;<br \/>\n    Sheets(&#8220;Results&#8221;).Range(&#8220;A2&#8221;).Value = Application.WorksheetFunction.WebService(&#8220;http:\/\/localhost:5000\/get_results&#8221;)<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001Python\u3067\u4f5c\u6210\u3057\u305f\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u3092Excel\u304b\u3089\u547c\u3073\u51fa\u3057\u3001\u7d50\u679c\u3092\u53d6\u308a\u8fbc\u3080\u3082\u306e\u3067\u3059\u3002<\/p>\n<h3>1. Excel \u30de\u30af\u30ed\u3068\u6a5f\u68b0\u5b66\u7fd2\u306e\u9023\u643a<\/h3>\n<p>Excel \u30de\u30af\u30ed\u3068\u6a5f\u68b0\u5b66\u7fd2\u3092\u9023\u643a\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u5f93\u6765\u306eExcel\u306e\u6a5f\u80fd\u3092\u5927\u5e45\u306b\u62e1\u5f35\u3057\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u5206\u6790\u3084\u4e88\u6e2c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u9023\u643a\u306b\u3088\u308a\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3057\u3001\u8907\u96d1\u306a\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3064\u3051\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u8ca9\u58f2\u30c7\u30fc\u30bf\u306e\u5206\u6790\u3084\u9700\u8981\u4e88\u6e2c\u3001\u9867\u5ba2\u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u696d\u52d9\u306b\u304a\u3044\u3066\u3001\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u7cbe\u5ea6\u306e\u9ad8\u3044\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u8907\u96d1\u306a\u6a5f\u68b0\u5b66\u7fd2\u306e\u77e5\u8b58\u304c\u306a\u304f\u3066\u3082\u3001\u305d\u306e\u6069\u6075\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed\u306e\u5b9f\u88c5\u65b9\u6cd5<\/h3>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<p>1. Python\u306a\u3069\u306e\u6a5f\u68b0\u5b66\u7fd2\u7528\u8a00\u8a9e\u3067\u30e2\u30c7\u30eb\u3092\u4f5c\u6210<br \/>\n2. \u30e2\u30c7\u30eb\u3092API\uff08\u6ce8\uff1a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\u3068\u3057\u3066\u516c\u958b<br \/>\n3. Excel VBA\u304b\u3089API\u3092\u547c\u3073\u51fa\u3059\u30de\u30af\u30ed\u3092\u4f5c\u6210<br \/>\n4. \u7d50\u679c\u3092Excel\u30b7\u30fc\u30c8\u306b\u8868\u793a<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001Excel\u30e6\u30fc\u30b6\u30fc\u306f\u6163\u308c\u89aa\u3057\u3093\u3060\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3044\u306a\u304c\u3089\u3001\u9ad8\u5ea6\u306a\u5206\u6790\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30e2\u30c7\u30eb\u306e\u66f4\u65b0\u3084\u6539\u826f\u3082\u3001Excel\u5074\u306e\u5909\u66f4\u306a\u3057\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u67d4\u8edf\u6027\u306e\u9ad8\u3044\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed\u306e\u6d3b\u7528\u4f8b<\/h3>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed\u306e\u5177\u4f53\u7684\u306a\u6d3b\u7528\u4f8b\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u6319\u3052\u3089\u308c\u307e\u3059\uff1a<\/p>\n<p>1. \u58f2\u4e0a\u4e88\u6e2c\uff1a\u904e\u53bb\u306e\u58f2\u4e0a\u30c7\u30fc\u30bf\u3068\u69d8\u3005\u306a\u8981\u56e0\uff08\u5b63\u7bc0\u3001\u30a4\u30d9\u30f3\u30c8\u3001\u7d4c\u6e08\u6307\u6a19\u306a\u3069\uff09\u3092\u57fa\u306b\u3001\u5c06\u6765\u306e\u58f2\u4e0a\u3092\u4e88\u6e2c<br \/>\n2. \u7570\u5e38\u691c\u77e5\uff1a\u5927\u91cf\u306e\u53d6\u5f15\u30c7\u30fc\u30bf\u304b\u3089\u4e0d\u6b63\u3084\u7570\u5e38\u3092\u81ea\u52d5\u7684\u306b\u691c\u51fa<br \/>\n3. \u30c6\u30ad\u30b9\u30c8\u5206\u6790\uff1a\u9867\u5ba2\u306e\u58f0\u3084\u793e\u5185\u6587\u66f8\u3092\u5206\u6790\u3057\u3001\u91cd\u8981\u306a\u30ad\u30fc\u30ef\u30fc\u30c9\u3084\u611f\u60c5\u3092\u62bd\u51fa<\/p>\n<p>\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092Excel \u30de\u30af\u30ed\u3068\u3057\u3066\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u65e5\u5e38\u7684\u306a\u696d\u52d9\u306e\u4e2d\u3067\u9ad8\u5ea6\u306a\u5206\u6790\u3092\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6708\u6b21\u30ec\u30dd\u30fc\u30c8\u306e\u4f5c\u6210\u6642\u306b\u58f2\u4e0a\u4e88\u6e2c\u3092\u81ea\u52d5\u3067\u884c\u3063\u305f\u308a\u3001\u65e5\u3005\u306e\u53d6\u5f15\u30c7\u30fc\u30bf\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u7570\u5e38\u3092\u691c\u51fa\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed\u306f\u3001Excel\u306e\u53ef\u80fd\u6027\u3092\u5927\u304d\u304f\u5e83\u3052\u308b\u6b21\u4e16\u4ee3\u306e\u696d\u52d9\u81ea\u52d5\u5316\u30c4\u30fc\u30eb\u3067\u3059\u3002\u9069\u5207\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u696d\u52d9\u52b9\u7387\u306e\u5927\u5e45\u306a\u5411\u4e0a\u3068\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u610f\u601d\u6c7a\u5b9a\u652f\u63f4\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u305d\u306e\u5c0e\u5165\u306b\u306f\u4e00\u5b9a\u306e\u6280\u8853\u7684\u77e5\u8b58\u3068\u6e96\u5099\u304c\u5fc5\u8981\u3067\u3042\u308b\u305f\u3081\u3001\u6bb5\u968e\u7684\u306b\u53d6\u308a\u7d44\u3080\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u5c0f\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u59cb\u3081\u3001\u5f90\u3005\u306b\u898f\u6a21\u3092\u62e1\u5927\u3057\u3066\u3044\u304f\u3053\u3068\u3067\u3001\u6700\u5927\u9650\u306e\u52b9\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b21\u4e16\u4ee3\u306e\u696d\u52d9\u81ea\u52d5\u5316\uff01\u4e0a\u7d1a\u8005\u304c\u6311\u6226\u3059\u308b\u6a5f\u68b0\u5b66\u7fd2\u9023\u643a\u30de\u30af\u30ed \u3059\u3050\u306b\u8a66\u305b\u308b\u4e0a\u7d1a\u8005\u5411\u3051\u30de\u30af\u30ed\u30b3\u30fc\u30c9 \u4ee5\u4e0b\u306f\u3001\u6a5f\u68b0\u5b66\u7fd2\u3092\u6d3b\u7528\u3057\u3066\u30c7\u30fc\u30bf\u5206\u6790\u3092\u884c\u3046Excel \u30de\u30af\u30ed\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\uff1a #8220;`vba Sub Machin<\/p>\n","protected":false},"author":2,"featured_media":369,"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-370","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\/370","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=370"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/369"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}