{"id":585,"date":"2025-03-14T00:33:35","date_gmt":"2025-03-13T15:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/03\/%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91%e3%83%93%e3%83%83%e3%82%b0%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e7%9e%ac%e6%99%82%e3%81%ab%e5%87%a6%e7%90%86%ef%bc%81%e3%83%81\/"},"modified":"2025-03-14T00:33:35","modified_gmt":"2025-03-13T15:33:35","slug":"%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91%e3%83%93%e3%83%83%e3%82%b0%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e7%9e%ac%e6%99%82%e3%81%ab%e5%87%a6%e7%90%86%ef%bc%81%e3%83%81","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/03\/%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91%e3%83%93%e3%83%83%e3%82%b0%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e7%9e%ac%e6%99%82%e3%81%ab%e5%87%a6%e7%90%86%ef%bc%81%e3%83%81\/","title":{"rendered":"\u3010Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\u3011\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u3092\u77ac\u6642\u306b\u51e6\u7406\uff01\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u30de\u30af\u30ed\u3067\u52b9\u7387\u30a2\u30c3\u30d7"},"content":{"rendered":"<h2>\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u52b9\u7387\u7684\u306a\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b3\u30fc\u30c9\u3092VBA\u30a8\u30c7\u30a3\u30bf\u306b\u30b3\u30d4\u30fc\u30da\u30fc\u30b9\u30c8\u3057\u3066\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub ChunkProcessing()<br \/>\n    Dim lastRow As Long, i As Long, chunkSize As Long<br \/>\n    Dim startTime As Double, endTime As Double<\/p>\n<p>    lastRow = Cells(Rows.Count, &#8220;A&#8221;).End(xlUp).Row<br \/>\n    chunkSize = 1000 &#8216; \u30c1\u30e3\u30f3\u30af\u30b5\u30a4\u30ba\u3092\u8a2d\u5b9a<\/p>\n<p>    startTime = Timer<\/p>\n<p>    For i = 1 To lastRow Step chunkSize<br \/>\n        &#8216; \u3053\u3053\u306b\u30c1\u30e3\u30f3\u30af\u5358\u4f4d\u306e\u51e6\u7406\u3092\u8a18\u8ff0<br \/>\n        Range(&#8220;A&#8221; &#038; i &#038; &#8220;:A&#8221; &#038; Application.Min(i + chunkSize &#8211; 1, lastRow)).Value = _<br \/>\n        Range(&#8220;A&#8221; &#038; i &#038; &#8220;:A&#8221; &#038; Application.Min(i + chunkSize &#8211; 1, lastRow)).Value<br \/>\n    Next i<\/p>\n<p>    endTime = Timer<br \/>\n    MsgBox &#8220;\u51e6\u7406\u6642\u9593: &#8221; &#038; Format(endTime &#8211; startTime, &#8220;0.00&#8221;) &#038; &#8221; \u79d2&#8221;<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<h3>1. \u30c1\u30e3\u30f3\u30af\u51e6\u7406\u306e\u57fa\u672c\u6982\u5ff5<\/h3>\n<p>\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u3068\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u5c0f\u3055\u306a\u584a\uff08\u30c1\u30e3\u30f3\u30af\uff09\u306b\u5206\u5272\u3057\u3066\u51e6\u7406\u3059\u308b\u624b\u6cd5\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u6291\u3048\u3064\u3064\u3001\u52b9\u7387\u7684\u306b\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Excel\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u901f\u5ea6\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u306e\u4e3b\u306a\u5229\u70b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<p>1. \u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u524a\u6e1b<br \/>\n2. \u51e6\u7406\u306e\u5b89\u5b9a\u6027\u5411\u4e0a<br \/>\n3. \u9032\u6357\u72b6\u6cc1\u306e\u628a\u63e1\u304c\u5bb9\u6613<\/p>\n<h3>2. VBA\u3092\u6d3b\u7528\u3057\u305f\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u306e\u5b9f\u88c5<\/h3>\n<p>\u4e0a\u8a18\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3067\u306f\u3001VBA\uff08Visual Basic for Applications\uff09\u3092\u4f7f\u7528\u3057\u3066\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002VBA\u306fExcel\u306b\u7d44\u307f\u8fbc\u307e\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3001\u8907\u96d1\u306a\u51e6\u7406\u3084\u81ea\u52d5\u5316\u3092\u884c\u3046\u306e\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u4e3b\u8981\u306a\u90e8\u5206\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<p>1. \u30c7\u30fc\u30bf\u306e\u6700\u7d42\u884c\u3092\u53d6\u5f97<br \/>\n2. \u30c1\u30e3\u30f3\u30af\u30b5\u30a4\u30ba\u306e\u8a2d\u5b9a<br \/>\n3. For-Next\u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3057\u305f\u30c1\u30e3\u30f3\u30af\u5358\u4f4d\u306e\u51e6\u7406<\/p>\n<p>\u30c1\u30e3\u30f3\u30af\u30b5\u30a4\u30ba\u306f\u3001\u30c7\u30fc\u30bf\u91cf\u3084\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u9069\u5207\u306a\u30c1\u30e3\u30f3\u30af\u30b5\u30a4\u30ba\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u51e6\u7406\u901f\u5ea6\u3068\u5b89\u5b9a\u6027\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306e\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n<p>\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306f\u3001\u4ee5\u4e0b\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3055\u3089\u306a\u308b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\uff1a<\/p>\n<p>1. \u30b9\u30af\u30ea\u30fc\u30f3\u66f4\u65b0\u306e\u505c\u6b62\uff1aApplication.ScreenUpdating = False\u3092\u4f7f\u7528<br \/>\n2. \u81ea\u52d5\u8a08\u7b97\u306e\u7121\u52b9\u5316\uff1aApplication.Calculation = xlCalculationManual\u3092\u4f7f\u7528<br \/>\n3. \u30a4\u30d9\u30f3\u30c8\u306e\u7121\u52b9\u5316\uff1aApplication.EnableEvents = False\u3092\u4f7f\u7528<\/p>\n<p>\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u3092\u51e6\u7406\u306e\u524d\u5f8c\u3067\u884c\u3046\u3053\u3068\u3067\u3001\u4e0d\u8981\u306a\u753b\u9762\u66f4\u65b0\u3084\u8a08\u7b97\u3092\u6291\u5236\u3057\u3001\u51e6\u7406\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u51e6\u7406\u6642\u9593\u306e\u8a08\u6e2c\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30c1\u30e3\u30f3\u30af\u30b5\u30a4\u30ba\u3084\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u306e\u6700\u9069\u5316\u3092\u56f3\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001Timer\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u51e6\u7406\u6642\u9593\u3092\u8a08\u6e2c\u3057\u3001\u7d50\u679c\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3067\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Excel\u30de\u30af\u30ed\u3092\u6d3b\u7528\u3057\u305f\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u306e\u5b9f\u88c5\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u4e0a\u7d1a\u8005\u306b\u3068\u3063\u3066\u975e\u5e38\u306b\u6709\u7528\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3092\u7fd2\u5f97\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u5206\u6790\u3092\u52b9\u7387\u7684\u306b\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u3001\u696d\u52d9\u306e\u5927\u5e45\u306a\u52b9\u7387\u5316\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u308b\u3053\u3068\u3067\u3001\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u6975\u610f\u3092\u8eab\u306b\u3064\u3051\u3001Excel\u3092\u4f7f\u3063\u305f\u9ad8\u5ea6\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u30b9\u30ad\u30eb\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u52b9\u7387\u7684\u306a\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9 \u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b3\u30fc\u30c9\u3092VBA\u30a8\u30c7\u30a3\u30bf\u306b\u30b3\u30d4\u30fc\u30da\u30fc\u30b9\u30c8\u3057\u3066\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002 #82<\/p>\n","protected":false},"author":2,"featured_media":584,"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-585","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\/585","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=585"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/584"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}