{"id":652,"date":"2025-05-20T00:49:10","date_gmt":"2025-05-19T15:49:10","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/05\/%e3%80%90%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91%e3%80%91excel%e3%83%9e%e3%82%af%e3%83%adx%e5%88%86%e6%95%a3%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%81%a7%e6%a5%ad%e5%8b%99%e9%9d%a9\/"},"modified":"2025-05-20T00:49:10","modified_gmt":"2025-05-19T15:49:10","slug":"%e3%80%90%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91%e3%80%91excel%e3%83%9e%e3%82%af%e3%83%adx%e5%88%86%e6%95%a3%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%81%a7%e6%a5%ad%e5%8b%99%e9%9d%a9","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/05\/%e3%80%90%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91%e3%80%91excel%e3%83%9e%e3%82%af%e3%83%adx%e5%88%86%e6%95%a3%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%81%a7%e6%a5%ad%e5%8b%99%e9%9d%a9\/","title":{"rendered":"\u3010\u4e0a\u7d1a\u8005\u5411\u3051\u3011Excel\u30de\u30af\u30ed\u00d7\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u696d\u52d9\u9769\u547d\uff01\u9a5a\u7570\u306e\u51e6\u7406\u901f\u5ea6\u3068\u52b9\u7387\u5316\u3092\u5b9f\u73fe"},"content":{"rendered":"<h2>\u4e0a\u7d1a\u8005\u5411\u3051\uff1aExcel\u30de\u30af\u30ed\u3067\u696d\u52d9\u52b9\u7387\u5316\uff01\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u9023\u643a\u3092\u5b9f\u73fe<\/h2>\n<p>\u307e\u305a\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\u4e0a\u7d1a\u8005\u306e\u65b9\u306b\u5411\u3051\u3066\u3001\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub ConnectDistributedCache()<br \/>\n    Dim conn As New ADODB.Connection<br \/>\n    Dim rs As New ADODB.Recordset<br \/>\n    Dim cacheServer As String<br \/>\n    Dim cacheKey As String<br \/>\n    Dim cacheValue As Variant<\/p>\n<p>    cacheServer = &#8220;your_cache_server_address&#8221;<br \/>\n    cacheKey = &#8220;your_cache_key&#8221;<\/p>\n<p>    conn.Open &#8220;Provider=MSDASQL;Driver={Redis ODBC Driver};Server=&#8221; &#038; cacheServer &#038; &#8220;;Port=6379;&#8221;<\/p>\n<p>    &#8216; \u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u5024\u3092\u53d6\u5f97<br \/>\n    Set rs = conn.Execute(&#8220;GET &#8221; &#038; cacheKey)<br \/>\n    If Not rs.EOF Then<br \/>\n        cacheValue = rs.Fields(0).Value<br \/>\n        MsgBox &#8220;\u30ad\u30e3\u30c3\u30b7\u30e5\u5024: &#8221; &#038; cacheValue<br \/>\n    Else<br \/>\n        MsgBox &#8220;\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u305b\u3093&#8221;<br \/>\n    End If<\/p>\n<p>    rs.Close<br \/>\n    conn.Close<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u3068\u9023\u643a\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u57fa\u672c\u7684\u306a\u4f8b\u3067\u3059\u3002\u5b9f\u969b\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u3001\u63a5\u7d9a\u60c5\u5831\u3084\u30ad\u30fc\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>1. \u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u306e\u6982\u8981\u3068\u5229\u70b9<\/h3>\n<p>\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u306f\u3001\u30c7\u30fc\u30bf\u3092\u8907\u6570\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u5206\u6563\u3057\u3066\u4fdd\u5b58\u3057\u3001\u9ad8\u901f\u306a\u30a2\u30af\u30bb\u30b9\u3092\u53ef\u80fd\u306b\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002Excel\u30de\u30af\u30ed\u3068\u9023\u643a\u3059\u308b\u3053\u3068\u3067\u3001\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u8907\u6570\u30e6\u30fc\u30b6\u30fc\u3067\u306e\u5171\u540c\u4f5c\u696d\u3092\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u5229\u70b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<br \/>\n&#8211; \u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u306e\u9ad8\u901f\u5316<br \/>\n&#8211; \u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u306e\u5206\u6563<br \/>\n&#8211; \u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u306e\u5411\u4e0a<\/p>\n<p>\u3053\u308c\u3089\u306e\u7279\u5fb4\u306b\u3088\u308a\u3001Excel\u3067\u306e\u5927\u898f\u6a21\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u8907\u96d1\u306a\u8a08\u7b97\u3092\u884c\u3046\u969b\u306b\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. Excel\u30de\u30af\u30ed\u3068\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u9023\u643a\u65b9\u6cd5<\/h3>\n<p>Excel\u30de\u30af\u30ed\u304b\u3089\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u4e3b\u306b\u4ee5\u4e0b\u306e\u624b\u9806\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<p>1. \u9069\u5207\u306a\u30c9\u30e9\u30a4\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u4f8b\uff1aRedis ODBC Driver\uff09<br \/>\n2. VBA\u3067ADODB\u3092\u4f7f\u7528\u3057\u305f\u63a5\u7d9a\u8a2d\u5b9a<br \/>\n3. \u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30af\u30a8\u30ea\u5b9f\u884c<br \/>\n4. \u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306eExcel\u30b7\u30fc\u30c8\u4e0a\u3067\u306e\u6d3b\u7528<\/p>\n<p>\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001ADODB\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3001\u7279\u5b9a\u306e\u30ad\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u5024\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u696d\u52d9\u3067\u306f\u3001\u3053\u308c\u3092\u3055\u3089\u306b\u767a\u5c55\u3055\u305b\u3066\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u66f8\u304d\u3084\u8907\u96d1\u306a\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u9023\u643a\u306e\u6d3b\u7528\u30b7\u30fc\u30f3<\/h3>\n<p>Excel\u30de\u30af\u30ed\u3068\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u306e\u9023\u643a\u306f\u3001\u69d8\u3005\u306a\u696d\u52d9\u30b7\u30fc\u30f3\u3067\u6d3b\u7528\u3067\u304d\u307e\u3059\uff1a<\/p>\n<p>&#8211; \u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u5206\u6790\uff1a\u5e02\u5834\u30c7\u30fc\u30bf\u3084 sensor \u30c7\u30fc\u30bf\u306a\u3069\u3092\u3001\u8907\u6570\u306eExcel\u30e6\u30fc\u30b6\u30fc\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u5171\u6709\u30fb\u5206\u6790<br \/>\n&#8211; \u5927\u898f\u6a21\u30c7\u30fc\u30bf\u51e6\u7406\uff1a\u901a\u5e38\u306eExcel\u306e\u51e6\u7406\u80fd\u529b\u3092\u8d85\u3048\u308b\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406<br \/>\n&#8211; \u8907\u6570\u62e0\u70b9\u3067\u306e\u5171\u540c\u4f5c\u696d\uff1a\u5730\u7406\u7684\u306b\u96e2\u308c\u305f\u62e0\u70b9\u9593\u3067\u30c7\u30fc\u30bf\u3092\u5373\u6642\u5171\u6709\u3057\u3001\u5354\u529b\u3057\u3066\u4f5c\u696d\u3092\u9032\u3081\u308b<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u91d1\u878d\u6a5f\u95a2\u3067\u306e\u5e02\u5834\u5206\u6790\u3084\u3001\u88fd\u9020\u696d\u3067\u306e\u751f\u7523\u7ba1\u7406\u306a\u3069\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u3068\u5927\u898f\u6a21\u30c7\u30fc\u30bf\u51e6\u7406\u304c\u6c42\u3081\u3089\u308c\u308b\u5834\u9762\u3067\u7279\u306b\u5a01\u529b\u3092\u767a\u63ee\u3057\u307e\u3059\u3002<\/p>\n<p>Excel\u30de\u30af\u30ed\u3068\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u306e\u9023\u643a\u306f\u3001\u4e0a\u7d1a\u8005\u306b\u3068\u3063\u3066\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u9069\u5207\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u307e\u3067\u56f0\u96e3\u3060\u3063\u305f\u51e6\u7406\u3084\u3001\u6642\u9593\u306e\u304b\u304b\u3063\u3066\u3044\u305f\u4f5c\u696d\u3092\u5927\u5e45\u306b\u52b9\u7387\u5316\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305c\u3072\u3001\u81ea\u8eab\u306e\u696d\u52d9\u306b\u5408\u308f\u305b\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3001\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7d1a\u8005\u5411\u3051\uff1aExcel\u30de\u30af\u30ed\u3067\u696d\u52d9\u52b9\u7387\u5316\uff01\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0\u9023\u643a\u3092\u5b9f\u73fe \u307e\u305a\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\u4e0a\u7d1a\u8005\u306e\u65b9\u306b\u5411\u3051\u3066\u3001\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 #8220;<\/p>\n","protected":false},"author":2,"featured_media":651,"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-652","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\/652","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=652"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/651"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}