{"id":596,"date":"2025-03-19T00:33:35","date_gmt":"2025-03-18T15:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/03\/%e3%80%8c%e6%a5%ad%e5%8b%99%e9%9d%a9%e5%91%bd%ef%bc%81%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91excel%e3%83%9e%e3%82%af%e3%83%ad%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8b%e9%a9%9a%e7%95%b0\/"},"modified":"2025-03-19T00:33:35","modified_gmt":"2025-03-18T15:33:35","slug":"%e3%80%8c%e6%a5%ad%e5%8b%99%e9%9d%a9%e5%91%bd%ef%bc%81%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91excel%e3%83%9e%e3%82%af%e3%83%ad%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8b%e9%a9%9a%e7%95%b0","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/03\/%e3%80%8c%e6%a5%ad%e5%8b%99%e9%9d%a9%e5%91%bd%ef%bc%81%e4%b8%8a%e7%b4%9a%e8%80%85%e5%90%91%e3%81%91excel%e3%83%9e%e3%82%af%e3%83%ad%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8b%e9%a9%9a%e7%95%b0\/","title":{"rendered":"\u300c\u696d\u52d9\u9769\u547d\uff01\u4e0a\u7d1a\u8005\u5411\u3051Excel\u30de\u30af\u30ed\u3067\u5b9f\u73fe\u3059\u308b\u9a5a\u7570\u306e\u52b9\u7387\u5316\u30c6\u30af\u30cb\u30c3\u30af\u300d"},"content":{"rendered":"<h2>\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306eExcel\u30de\u30af\u30ed\u30b3\u30fc\u30c9<\/h2>\n<p>\u4ee5\u4e0b\u306f\u3001\u30c7\u30fc\u30bf\u306e\u81ea\u52d5\u51e6\u7406\u3092\u884c\u3046\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306e\u4f8b\u3067\u3059\u3002\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u30c7\u30fc\u30bf\u3092\u5206\u6790\u3057\u3001\u6761\u4ef6\u306b\u5408\u81f4\u3059\u308b\u3082\u306e\u3092\u5225\u306e\u30b7\u30fc\u30c8\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub DataProcessing()<br \/>\n    Dim ws1 As Worksheet, ws2 As Worksheet<br \/>\n    Dim lastRow As Long, i As Long<\/p>\n<p>    Set ws1 = ThisWorkbook.Sheets(&#8220;\u30c7\u30fc\u30bf&#8221;)<br \/>\n    Set ws2 = ThisWorkbook.Sheets(&#8220;\u7d50\u679c&#8221;)<\/p>\n<p>    lastRow = ws1.Cells(ws1.Rows.Count, &#8220;A&#8221;).End(xlUp).Row<\/p>\n<p>    For i = 2 To lastRow<br \/>\n        If ws1.Cells(i, &#8220;C&#8221;).Value > 1000 Then<br \/>\n            ws1.Rows(i).Copy Destination:=ws2.Cells(ws2.Rows.Count, &#8220;A&#8221;).End(xlUp).Offset(1, 0)<br \/>\n        End If<br \/>\n    Next i<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u77ac\u6642\u306b\u51e6\u7406\u3057\u3001\u6761\u4ef6\u306b\u5408\u81f4\u3059\u308b\u30c7\u30fc\u30bf\u306e\u307f\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1. \u30b0\u30ea\u30c3\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u57fa\u672c\u6982\u5ff5<\/h3>\n<p>\u30b0\u30ea\u30c3\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u8907\u6570\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3092\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u63a5\u7d9a\u3057\u3001\u5927\u898f\u6a21\u306a\u8a08\u7b97\u51e6\u7406\u3092\u5206\u6563\u3057\u3066\u884c\u3046\u6280\u8853\u3067\u3059\u3002Excel\u3067\u3053\u306e\u6982\u5ff5\u3092\u5fdc\u7528\u3059\u308b\u3068\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u8907\u96d1\u306a\u8a08\u7b97\u3092\u52b9\u7387\u7684\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3084\u30d6\u30c3\u30af\u306b\u5206\u6563\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u4e00\u5143\u7ba1\u7406\u3057\u3001\u540c\u6642\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5f93\u6765\u306e\u65b9\u6cd5\u3067\u306f\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u305f\u4f5c\u696d\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u4e26\u5217\u51e6\u7406\u306b\u3088\u308b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/h3>\n<p>\u30b0\u30ea\u30c3\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6838\u5fc3\u306f\u4e26\u5217\u51e6\u7406\u306b\u3042\u308a\u307e\u3059\u3002Excel\u3067\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f\u3001VBA\u3092\u4f7f\u7528\u3057\u3066\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u4e26\u5217\u51e6\u7406\u3092\u5b9f\u73fe\u3059\u308bExcel \u30de\u30af\u30ed\u306e\u4e00\u4f8b\u3067\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nSub ParallelProcessing()<br \/>\n    Dim i As Long<br \/>\n    For i = 1 To 10<br \/>\n        Application.OnTime Now + TimeSerial(0, 0, i), &#8220;ProcessTask&#8221; &#038; i<br \/>\n    Next i<br \/>\nEnd Sub<\/p>\n<p>Sub ProcessTask1()<br \/>\n    &#8216; \u30bf\u30b9\u30af1\u306e\u51e6\u7406<br \/>\nEnd Sub<\/p>\n<p>&#8216; ProcessTask2 \u304b\u3089 ProcessTask10 \u307e\u3067\u540c\u69d8\u306b\u5b9a\u7fa9<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f10\u500b\u306e\u30bf\u30b9\u30af\u3092\u540c\u6642\u306b\u5b9f\u884c\u3057\u3001\u5404\u30bf\u30b9\u30af\u30921\u79d2\u9593\u9694\u3067\u958b\u59cb\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8907\u6570\u306e\u51e6\u7406\u3092\u4e26\u884c\u3057\u3066\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u5168\u4f53\u7684\u306a\u51e6\u7406\u6642\u9593\u3092\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u3068\u8ca0\u8377\u5206\u6563<\/h3>\n<p>\u30b0\u30ea\u30c3\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u304a\u3044\u3066\u91cd\u8981\u306a\u306e\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u52b9\u7387\u7684\u306a\u7ba1\u7406\u3068\u8ca0\u8377\u306e\u9069\u5207\u306a\u5206\u6563\u3067\u3059\u3002Excel\u3067\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f\u3001\u4f7f\u7528\u53ef\u80fd\u306a\u30ea\u30bd\u30fc\u30b9\uff08\u30e1\u30e2\u30ea\u3001CPU\u7b49\uff09\u3092\u628a\u63e1\u3057\u3001\u30bf\u30b9\u30af\u3092\u9069\u5207\u306b\u5272\u308a\u5f53\u3066\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30bd\u30fc\u30b9\u4f7f\u7528\u72b6\u6cc1\u3092\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3057\u3001\u8ca0\u8377\u306b\u5fdc\u3058\u3066\u51e6\u7406\u3092\u52d5\u7684\u306b\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u3092\u76e3\u8996\u3057\u3001\u9ad8\u8ca0\u8377\u6642\u306b\u306f\u51e6\u7406\u3092\u4e00\u6642\u505c\u6b62\u3059\u308b\u306a\u3069\u306e\u5bfe\u7b56\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p>\n<p>&#8220;`vba<br \/>\nPrivate Declare PtrSafe Function GetSystemMemoryInfo Lib &#8220;kernel32&#8221; Alias &#8220;GlobalMemoryStatusEx&#8221; (ByRef lpBuffer As MEMORYSTATUSEX) As Long<\/p>\n<p>Private Type MEMORYSTATUSEX<br \/>\n    dwLength As Long<br \/>\n    dwMemoryLoad As Long<br \/>\n    ullTotalPhys As Currency<br \/>\n    ullAvailPhys As Currency<br \/>\n    ullTotalPageFile As Currency<br \/>\n    ullAvailPageFile As Currency<br \/>\n    ullTotalVirtual As Currency<br \/>\n    ullAvailVirtual As Currency<br \/>\n    ullAvailExtendedVirtual As Currency<br \/>\nEnd Type<\/p>\n<p>Sub CheckMemoryUsage()<br \/>\n    Dim memInfo As MEMORYSTATUSEX<br \/>\n    memInfo.dwLength = LenB(memInfo)<br \/>\n    GetSystemMemoryInfo memInfo<\/p>\n<p>    If memInfo.dwMemoryLoad > 90 Then<br \/>\n        MsgBox &#8220;\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u304c90%\u3092\u8d85\u3048\u3066\u3044\u307e\u3059\u3002\u51e6\u7406\u3092\u4e00\u6642\u505c\u6b62\u3057\u307e\u3059\u3002&#8221;<br \/>\n        &#8216; \u51e6\u7406\u3092\u4e00\u6642\u505c\u6b62\u3059\u308b\u30b3\u30fc\u30c9\u3092\u3053\u3053\u306b\u8a18\u8ff0<br \/>\n    End If<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Excel \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b0\u30ea\u30c3\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6982\u5ff5\u3092\u53d6\u308a\u5165\u308c\u305f\u9ad8\u5ea6\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u696d\u52d9\u52b9\u7387\u5316\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3089\u306e\u6280\u8853\u3092\u9069\u5207\u306b\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u3001VBA\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6df1\u3044\u7406\u89e3\u3068\u7d4c\u9a13\u304c\u5fc5\u8981\u3067\u3059\u3002\u6bb5\u968e\u7684\u306b\u5b66\u7fd2\u3092\u9032\u3081\u3001\u5f90\u3005\u306b\u9ad8\u5ea6\u306a\u6280\u8853\u3092\u8eab\u306b\u3064\u3051\u3066\u3044\u304f\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306eExcel\u30de\u30af\u30ed\u30b3\u30fc\u30c9 \u4ee5\u4e0b\u306f\u3001\u30c7\u30fc\u30bf\u306e\u81ea\u52d5\u51e6\u7406\u3092\u884c\u3046\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306e\u4f8b\u3067\u3059\u3002\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u30c7\u30fc\u30bf\u3092\u5206\u6790\u3057\u3001\u6761\u4ef6\u306b\u5408\u81f4\u3059\u308b\u3082\u306e\u3092\u5225\u306e\u30b7\u30fc\u30c8\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002 #8220;<\/p>\n","protected":false},"author":2,"featured_media":595,"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-596","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\/596","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=596"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/596\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/595"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}