{"id":436,"date":"2025-01-14T02:33:35","date_gmt":"2025-01-13T17:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/01\/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%e9%9d%9e%e5%90%8c%e6%9c%9f%e5%87%a6%e7%90%86%e3%83%9e%e3%82%af%e3%83%ad%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87\/"},"modified":"2025-01-14T02:33:35","modified_gmt":"2025-01-13T17: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%e9%9d%9e%e5%90%8c%e6%9c%9f%e5%87%a6%e7%90%86%e3%83%9e%e3%82%af%e3%83%ad%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/01\/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%e9%9d%9e%e5%90%8c%e6%9c%9f%e5%87%a6%e7%90%86%e3%83%9e%e3%82%af%e3%83%ad%e3%81%a7%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87\/","title":{"rendered":"Excel\u30de\u30b9\u30bf\u30fc\u3078\u306e\u9053\uff1a\u975e\u540c\u671f\u51e6\u7406\u30de\u30af\u30ed\u3067\u696d\u52d9\u52b9\u7387\u309210\u500d\u306b\uff01"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u5373\u52b9\u6027\u306e\u3042\u308b\u9ad8\u5ea6\u306a\u975e\u540c\u671f\u51e6\u7406\u30de\u30af\u30ed<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u975e\u540c\u671f\u3067\u884c\u3046\u4f8b\u3067\u3059\u3002\u3059\u3050\u306b\u8a66\u3057\u3066\u696d\u52d9\u52b9\u7387\u5316\u306b\u6d3b\u7528\u3067\u304d\u307e\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nSub AsyncDataProcessing()<br \/>\n    Dim wb As Workbook<br \/>\n    Set wb = ThisWorkbook<\/p>\n<p>    Application.ScreenUpdating = False<\/p>\n<p>    &#8216; \u975e\u540c\u671f\u51e6\u7406\u3092\u958b\u59cb<br \/>\n    Application.OnTime Now + TimeValue(&#8220;00:00:01&#8221;), &#8220;ProcessDataChunk&#8221;<\/p>\n<p>    MsgBox &#8220;\u975e\u540c\u671f\u51e6\u7406\u3092\u958b\u59cb\u3057\u307e\u3057\u305f\u3002\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002&#8221;<br \/>\nEnd Sub<\/p>\n<p>Sub ProcessDataChunk()<br \/>\n    &#8216; \u30c7\u30fc\u30bf\u51e6\u7406\u30ed\u30b8\u30c3\u30af\u3092\u3053\u3053\u306b\u8a18\u8ff0<br \/>\n    &#8216; \u4f8b: 1000\u884c\u305a\u3064\u51e6\u7406<br \/>\n    Static startRow As Long<br \/>\n    startRow = startRow + 1000<\/p>\n<p>    &#8216; \u51e6\u7406\u30ed\u30b8\u30c3\u30af\uff08\u3053\u3053\u3067\u306f\u5358\u7d14\u306a\u4f8b\uff09<br \/>\n    Range(&#8220;A&#8221; &#038; startRow &#038; &#8220;:A&#8221; &#038; (startRow + 999)).Value = &#8220;Processed&#8221;<\/p>\n<p>    &#8216; \u307e\u3060\u51e6\u7406\u3059\u308b\u30c7\u30fc\u30bf\u304c\u6b8b\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u6b21\u306e\u30c1\u30e3\u30f3\u30af\u3092\u51e6\u7406<br \/>\n    If startRow < Cells(Rows.Count, 1).End(xlUp).Row Then\n        Application.OnTime Now + TimeValue(\"00:00:01\"), \"ProcessDataChunk\"\n    Else\n        MsgBox \"\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\"\n        startRow = 0 ' \u30ea\u30bb\u30c3\u30c8\n    End If\nEnd Sub\n```\n\n\n\n<h3>1. \u975e\u540c\u671f\u51e6\u7406\u306e\u91cd\u8981\u6027<\/h3>\n<p>Excel \u30de\u30af\u30ed\u306b\u304a\u3051\u308b\u975e\u540c\u671f\u51e6\u7406\u306f\u3001\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u64cd\u4f5c\u3084\u6642\u9593\u306e\u304b\u304b\u308b\u51e6\u7406\u3092\u52b9\u7387\u7684\u306b\u884c\u3046\u305f\u3081\u306e\u91cd\u8981\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002\u901a\u5e38\u306e\u30de\u30af\u30ed\u5b9f\u884c\u3067\u306f\u3001\u51e6\u7406\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067Excel\u304c\u5fdc\u7b54\u3057\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u975e\u540c\u671f\u51e6\u7406\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306fExcel\u3092\u64cd\u4f5c\u3057\u306a\u304c\u3089\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u51e6\u7406\u3092\u9032\u884c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u7279\u306b\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u696d\u52d9\u3084\u3001\u8907\u6570\u306e\u30b7\u30fc\u30c8\u3084\u30d6\u30c3\u30af\u306b\u307e\u305f\u304c\u308b\u8907\u96d1\u306a\u8a08\u7b97\u3092\u884c\u3046\u5834\u5408\u306b\u6709\u52b9\u3067\u3059\u3002\u975e\u540c\u671f\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001\u4f5c\u696d\u306e\u4e2d\u65ad\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. Application.OnTime\u306e\u6d3b\u7528<\/h3>\n<p>\u4e0a\u8a18\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u306f\u3001`Application.OnTime`\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u6307\u5b9a\u3057\u305f\u6642\u9593\u306b\u7279\u5b9a\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046Excel\u306b\u6307\u793a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u9023\u7d9a\u7684\u306a\u51e6\u7406\u3092\u5c0f\u3055\u306a\u30c1\u30e3\u30f3\u30af\uff08\u584a\uff09\u306b\u5206\u5272\u3057\u3001\u305d\u308c\u305e\u308c\u3092\u77ed\u3044\u9593\u9694\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>`Application.OnTime`\u3092\u4f7f\u7528\u3059\u308b\u5229\u70b9\u306f\u3001Excel\u306e\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u3092\u30d6\u30ed\u30c3\u30af\u305b\u305a\u306b\u51e6\u7406\u3092\u9032\u3081\u3089\u308c\u308b\u3053\u3068\u3067\u3059\u3002\u5404\u30c1\u30e3\u30f3\u30af\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3059\u308b\u305f\u3073\u306b\u3001Excel\u306f\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u5fdc\u7b54\u3059\u308b\u6a5f\u4f1a\u3092\u5f97\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u9577\u6642\u9593\u306e\u51e6\u7406\u4e2d\u3067\u3082Excel\u306e\u64cd\u4f5c\u6027\u304c\u7dad\u6301\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>3. \u30a8\u30e9\u30fc\u51e6\u7406\u3068\u9032\u6357\u7ba1\u7406<\/h3>\n<p>\u975e\u540c\u671f\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306f\u3001\u9069\u5207\u306a\u30a8\u30e9\u30fc\u51e6\u7406\u3068\u9032\u6357\u7ba1\u7406\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u57fa\u672c\u7684\u306a\u4f8b\u3067\u3059\u304c\u3001\u5b9f\u969b\u306e\u958b\u767a\u3067\u306f\u4ee5\u4e0b\u306e\u70b9\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<p>&#8211; \u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\uff1a\u5404\u51e6\u7406\u30c1\u30e3\u30f3\u30af\u3067\u306e\u30a8\u30e9\u30fc\u3092\u9069\u5207\u306b\u6355\u6349\u3057\u3001\u30ed\u30b0\u306b\u8a18\u9332\u3059\u308b\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u3002<br \/>\n&#8211; \u9032\u6357\u8868\u793a\uff1a\u30e6\u30fc\u30b6\u30fc\u306b\u73fe\u5728\u306e\u51e6\u7406\u72b6\u6cc1\u3092\u77e5\u3089\u305b\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u3084\u30b9\u30c6\u30fc\u30bf\u30b9\u66f4\u65b0\u3092\u5b9f\u88c5\u3059\u308b\u3002<br \/>\n&#8211; \u4e2d\u65ad\u3068\u518d\u958b\uff1a\u30e6\u30fc\u30b6\u30fc\u304c\u51e6\u7406\u3092\u4e00\u6642\u505c\u6b62\u3057\u305f\u308a\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u518d\u958b\u3057\u305f\u308a\u3067\u304d\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u8981\u7d20\u3092\u7d44\u307f\u8fbc\u3080\u3053\u3068\u3067\u3001\u3088\u308a\u5805\u7262\u3067\u4f7f\u3044\u3084\u3059\u3044\u975e\u540c\u671f\u51e6\u7406\u30de\u30af\u30ed\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3057\u305f\u9ad8\u5ea6\u306a\u975e\u540c\u671f\u51e6\u7406\u306f\u3001\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u5206\u6790\u3084\u30ec\u30dd\u30fc\u30c8\u751f\u6210\u306a\u3069\u3001\u591a\u69d8\u306a\u696d\u52d9\u30b7\u30fc\u30f3\u3067\u5a01\u529b\u3092\u767a\u63ee\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u7d1a\u8005\u5411\u3051\u306e\u975e\u540c\u671f\u51e6\u7406\u30de\u30af\u30ed\u958b\u767a\u306f\u3001Excel\u306e\u80fd\u529b\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3057\u3001\u8907\u96d1\u306a\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u3092\u52b9\u7387\u5316\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u6280\u8853\u3092\u7fd2\u5f97\u3059\u308b\u3053\u3068\u3067\u3001Excel\u30e6\u30fc\u30b6\u30fc\u306f\u5358\u306a\u308b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u64cd\u4f5c\u3092\u8d85\u3048\u3066\u3001\u771f\u306e\u696d\u52d9\u6539\u9769\u3092\u5b9f\u73fe\u3059\u308b\u529b\u3092\u624b\u306b\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u5373\u52b9\u6027\u306e\u3042\u308b\u9ad8\u5ea6\u306a\u975e\u540c\u671f\u51e6\u7406\u30de\u30af\u30ed \u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u975e\u540c\u671f\u3067\u884c\u3046\u4f8b\u3067\u3059\u3002\u3059\u3050\u306b\u8a66\u3057\u3066\u696d\u52d9\u52b9\u7387\u5316\u306b\u6d3b\u7528\u3067\u304d\u307e\u3059\uff1a #8220;`vba Sub AsyncDataProces<\/p>\n","protected":false},"author":2,"featured_media":435,"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-436","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\/436","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=436"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/435"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}