{"id":358,"date":"2025-01-01T02:33:35","date_gmt":"2024-12-31T17:33:35","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/01\/%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91vba%e3%83%91%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%b3%e3%82%b9%e6%9c%80%e9%81%a9%e5%8c%96%e3%83%86%e3%82%af%e3%83%8b%e3%83%83\/"},"modified":"2025-01-01T02:33:35","modified_gmt":"2024-12-31T17:33:35","slug":"%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91vba%e3%83%91%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%b3%e3%82%b9%e6%9c%80%e9%81%a9%e5%8c%96%e3%83%86%e3%82%af%e3%83%8b%e3%83%83","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/01\/%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91vba%e3%83%91%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%b3%e3%82%b9%e6%9c%80%e9%81%a9%e5%8c%96%e3%83%86%e3%82%af%e3%83%8b%e3%83%83\/","title":{"rendered":"\u3010Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\u3011VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af5\u9078\uff1a\u30b3\u30fc\u30c9\u52b9\u7387\u5316\u3067\u751f\u7523\u6027\u5411\u4e0a"},"content":{"rendered":"<h2>VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\uff01\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30b3\u30fc\u30c9\u52b9\u7387\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/h2>\n<p>Excel\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\u3078\u3002\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u9ad8\u901f\u3067\u51e6\u7406\u3059\u308b\u969b\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub FastDataProcessing()<br \/>\n    Application.ScreenUpdating = False<br \/>\n    Application.Calculation = xlCalculationManual<\/p>\n<p>    &#8216; \u3053\u3053\u306b\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0<\/p>\n<p>    Application.Calculation = xlCalculationAutomatic<br \/>\n    Application.ScreenUpdating = True<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<h3>1. \u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u6700\u9069\u5316<\/h3>\n<p>Excel \u30de\u30af\u30ed\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u6700\u521d\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u6700\u9069\u5316\u3067\u3059\u3002\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6271\u3046\u969b\u3001\u30e1\u30e2\u30ea\u306e\u52b9\u7387\u7684\u306a\u4f7f\u7528\u304c\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30fb\u5909\u6570\u306e\u9069\u5207\u306a\u5ba3\u8a00\uff1a\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u6570\u306e\u578b\u3092\u660e\u793a\u7684\u306b\u5ba3\u8a00\u3057\u3001\u30e1\u30e2\u30ea\u306e\u7121\u99c4\u9063\u3044\u3092\u9632\u304e\u307e\u3059\u3002<br \/>\n\u30fb\u914d\u5217\u306e\u6d3b\u7528\uff1a\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u969b\u306f\u3001\u30bb\u30eb\u7bc4\u56f2\u3092\u914d\u5217\u306b\u8aad\u307f\u8fbc\u3093\u3067\u51e6\u7406\u3059\u308b\u3053\u3068\u3067\u3001\u51e6\u7406\u901f\u5ea6\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306e\u89e3\u653e\uff1a\u4f7f\u7528\u6e08\u307f\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306f\u660e\u793a\u7684\u306b\u89e3\u653e\u3057\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<h3>2. \u30eb\u30fc\u30d7\u51e6\u7406\u306e\u52b9\u7387\u5316<\/h3>\n<p>Excel \u30de\u30af\u30ed\u3067\u306f\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u304c\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30eb\u30fc\u30d7\u306e\u6700\u9069\u5316\u306f\u3001\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u901f\u5ea6\u3092\u5927\u304d\u304f\u5de6\u53f3\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u610f\u8b58\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30fbFor Each\u30eb\u30fc\u30d7\u306e\u6d3b\u7528\uff1a\u53ef\u80fd\u306a\u9650\u308a\u3001For Each\u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u901a\u5e38\u306eFor\u30eb\u30fc\u30d7\u3088\u308a\u3082\u9ad8\u901f\u3067\u3059\u3002<br \/>\n\u30fb\u30eb\u30fc\u30d7\u5185\u306e\u51e6\u7406\u306e\u6700\u5c0f\u5316\uff1a\u30eb\u30fc\u30d7\u5185\u3067\u5b9f\u884c\u3059\u308b\u51e6\u7406\u306f\u5fc5\u8981\u6700\u5c0f\u9650\u306b\u6291\u3048\u3001\u53ef\u80fd\u306a\u9650\u308a\u30eb\u30fc\u30d7\u306e\u5916\u3067\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u30fb\u65e9\u671f\u7d42\u4e86\u6761\u4ef6\u306e\u8a2d\u5b9a\uff1a\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u51e6\u7406\u3059\u308b\u969b\u3001\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u3089\u5373\u5ea7\u306b\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b\u4ed5\u7d44\u307f\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<h3>3. \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u306e\u6700\u9069\u5316<\/h3>\n<p>Excel \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3092\u9069\u5207\u306b\u7ba1\u7406\u3059\u308b\u3053\u3068\u3067\u3001\u30de\u30af\u30ed\u306e\u5b9f\u884c\u901f\u5ea6\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30fb\u753b\u9762\u66f4\u65b0\u306e\u7121\u52b9\u5316\uff1aApplication.ScreenUpdating = False \u3092\u4f7f\u7528\u3057\u3066\u3001\u51e6\u7406\u4e2d\u306e\u753b\u9762\u66f4\u65b0\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u81ea\u52d5\u8a08\u7b97\u306e\u7121\u52b9\u5316\uff1aApplication.Calculation = xlCalculationManual \u3092\u4f7f\u7528\u3057\u3066\u3001\u5927\u898f\u6a21\u306a\u8a08\u7b97\u3092\u4f34\u3046\u51e6\u7406\u4e2d\u306f\u81ea\u52d5\u8a08\u7b97\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u30a4\u30d9\u30f3\u30c8\u306e\u7121\u52b9\u5316\uff1aApplication.EnableEvents = False \u3092\u4f7f\u7528\u3057\u3066\u3001\u4e0d\u8981\u306a\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u9069\u5207\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001Excel \u30de\u30af\u30ed\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3068\u4fdd\u5b88\u6027\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308b\u3053\u3068\u3082\u5fd8\u308c\u305a\u306b\u3002\u6700\u9069\u5316\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306f\u3001\u52b9\u7387\u7684\u3067\u3042\u308b\u3068\u540c\u6642\u306b\u3001\u4ed6\u306e\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3082\u7406\u89e3\u3057\u3084\u3059\u3044\u3082\u306e\u3067\u3042\u308b\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u7d1a\u8005\u306e\u65b9\u3005\u306f\u3001\u3053\u308c\u3089\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u6d3b\u7528\u3057\u3066\u3001\u3088\u308a\u52b9\u7387\u7684\u3067\u9ad8\u901f\u306aExcel \u30de\u30af\u30ed\u3092\u958b\u767a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u306f\u3001\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u8907\u96d1\u306a\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u306e\u81ea\u52d5\u5316\u306b\u304a\u3044\u3066\u3001\u7279\u306b\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u5e38\u306b\u65b0\u3057\u3044\u6700\u9069\u5316\u624b\u6cd5\u3092\u5b66\u3073\u3001\u5b9f\u8df5\u3059\u308b\u3053\u3068\u3067\u3001Excel \u30de\u30af\u30ed\u306e\u771f\u306e\u529b\u3092\u5f15\u304d\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\uff01\u4e0a\u7d1a\u8005\u306e\u305f\u3081\u306e\u30b3\u30fc\u30c9\u52b9\u7387\u5316\u30c6\u30af\u30cb\u30c3\u30af Excel\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\u3078\u3002\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u9ad8\u901f\u3067\u51e6\u7406\u3059<\/p>\n","protected":false},"author":2,"featured_media":357,"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-358","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\/358","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=358"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/358\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/357"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}