{"id":645,"date":"2025-05-14T00:49:11","date_gmt":"2025-05-13T15:49:11","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/05\/excel%e3%83%9e%e3%82%af%e3%83%ad%e3%81%ae%e9%81%94%e4%ba%ba%e3%81%b8%ef%bc%9avba%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%81%a7%e5%87%a6%e7%90%86\/"},"modified":"2025-05-14T00:49:11","modified_gmt":"2025-05-13T15:49:11","slug":"excel%e3%83%9e%e3%82%af%e3%83%ad%e3%81%ae%e9%81%94%e4%ba%ba%e3%81%b8%ef%bc%9avba%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%81%a7%e5%87%a6%e7%90%86","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/05\/excel%e3%83%9e%e3%82%af%e3%83%ad%e3%81%ae%e9%81%94%e4%ba%ba%e3%81%b8%ef%bc%9avba%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%81%a7%e5%87%a6%e7%90%86\/","title":{"rendered":"Excel\u30de\u30af\u30ed\u306e\u9054\u4eba\u3078\uff1aVBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u3067\u51e6\u7406\u901f\u5ea6\u3092100\u500d\u306b\u3059\u308b\u79d8\u6280"},"content":{"rendered":"<h2>\u4e0a\u7d1a\u8005\u5411\u3051VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306e\u6975\u610f<\/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\u3005\u306b\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 PerformanceMonitor()<br \/>\n    Dim startTime As Double<br \/>\n    Dim endTime As Double<br \/>\n    Dim elapsedTime As Double<\/p>\n<p>    startTime = Timer<\/p>\n<p>    &#8216; \u3053\u3053\u306b\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3057\u305f\u3044\u30b3\u30fc\u30c9\u3092\u633f\u5165<\/p>\n<p>    endTime = Timer<br \/>\n    elapsedTime = endTime &#8211; startTime<\/p>\n<p>    MsgBox &#8220;\u51e6\u7406\u6642\u9593: &#8221; &#038; Format(elapsedTime, &#8220;0.000&#8221;) &#038; &#8221; \u79d2&#8221;<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u7279\u5b9a\u306e\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u6642\u9593\u3092\u6e2c\u5b9a\u3057\u3001\u7d50\u679c\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3067\u8868\u793a\u3057\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u306e\u6027\u80fd\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>1. VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306e\u91cd\u8981\u6027<\/h3>\n<p>Excel \u30de\u30af\u30ed\u3092\u52b9\u7387\u7684\u306b\u6d3b\u7528\u3059\u308b\u306b\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30de\u30af\u30ed\u306e\u5b9f\u884c\u6642\u9593\u3092\u6b63\u78ba\u306b\u6e2c\u5b9a\u3057\u3001\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6700\u9069\u5316\u306e\u4f59\u5730\u304c\u3042\u308b\u7b87\u6240\u3092\u898b\u3064\u3051\u51fa\u3057\u3001\u5168\u4f53\u7684\u306a\u30de\u30af\u30ed\u306e\u6027\u80fd\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6271\u3046\u5834\u5408\u3084\u3001\u8907\u96d1\u306a\u8a08\u7b97\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u304c\u91cd\u8981\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u6570\u767e\u4e07\u884c\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u30de\u30af\u30ed\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30de\u30af\u30ed\u306e\u5b9f\u884c\u306b\u6570\u6642\u9593\u304b\u304b\u3063\u3066\u3044\u308b\u3068\u3057\u305f\u3089\u3001\u3069\u306e\u90e8\u5206\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u306e\u304b\u3092\u77e5\u308b\u3053\u3068\u304c\u6539\u5584\u306e\u7b2c\u4e00\u6b69\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>2. \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306e\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n<p>VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u3066\u554f\u984c\u7b87\u6240\u3092\u7279\u5b9a\u3057\u305f\u3089\u3001\u6b21\u306f\u305d\u306e\u6700\u9069\u5316\u3067\u3059\u3002\u4ee5\u4e0b\u306b\u3044\u304f\u3064\u304b\u306e\u52b9\u679c\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u307e\u3059\uff1a<\/p>\n<p>1. \u30eb\u30fc\u30d7\u306e\u6700\u9069\u5316\uff1aFor Each \u30eb\u30fc\u30d7\u306e\u4ee3\u308f\u308a\u306b For&#8230;Next \u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3059\u308b<br \/>\n2. \u753b\u9762\u66f4\u65b0\u306e\u4e00\u6642\u505c\u6b62\uff1aApplication.ScreenUpdating = False \u3092\u4f7f\u7528<br \/>\n3. \u8a08\u7b97\u306e\u4e00\u6642\u505c\u6b62\uff1aApplication.Calculation = xlCalculationManual \u3092\u4f7f\u7528<br \/>\n4. \u914d\u5217\u306e\u6d3b\u7528\uff1a\u30bb\u30eb\u7bc4\u56f2\u306e\u5024\u3092\u914d\u5217\u306b\u683c\u7d0d\u3057\u3066\u51e6\u7406\u3059\u308b<\/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\u5b9f\u884c\u901f\u5ea6\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u969b\u306b\u753b\u9762\u66f4\u65b0\u3092\u4e00\u6642\u505c\u6b62\u3059\u308b\u3068\u3001\u51e6\u7406\u901f\u5ea6\u304c\u5287\u7684\u306b\u5411\u4e0a\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>3. \u7d99\u7d9a\u7684\u306a\u6539\u5584\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n<p>VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306f\u4e00\u5ea6\u304d\u308a\u306e\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u7d99\u7d9a\u7684\u306b\u884c\u3046\u3053\u3068\u3067\u3001\u30de\u30af\u30ed\u306e\u6027\u80fd\u3092\u5e38\u306b\u6700\u9069\u306a\u72b6\u614b\u306b\u4fdd\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u5fc3\u304c\u3051\u307e\u3057\u3087\u3046\uff1a<\/p>\n<p>1. \u5b9a\u671f\u7684\u306a\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\uff1a\u4ed6\u306e\u958b\u767a\u8005\u3068\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3057\u3001\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u5f97\u308b<br \/>\n2. \u30e2\u30b8\u30e5\u30fc\u30eb\u5316\uff1a\u6a5f\u80fd\u3054\u3068\u306b\u30b3\u30fc\u30c9\u3092\u5206\u5272\u3057\u3001\u518d\u5229\u7528\u6027\u3092\u9ad8\u3081\u308b<br \/>\n3. \u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\uff1a\u9069\u5207\u306a\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3001\u5b89\u5b9a\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b<br \/>\n4. \u30b3\u30e1\u30f3\u30c8\u306e\u6d3b\u7528\uff1a\u30b3\u30fc\u30c9\u306e\u76ee\u7684\u3084\u8907\u96d1\u306a\u90e8\u5206\u306b\u8aac\u660e\u3092\u52a0\u3048\u308b<\/p>\n<p>\u3053\u308c\u3089\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u5b88\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u3001\u52b9\u7387\u7684\u306aExcel \u30de\u30af\u30ed\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306f\u3001\u5f8c\u3067\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u308a\u5909\u66f4\u3057\u305f\u308a\u3059\u308b\u969b\u306b\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306f\u3001Excel \u30de\u30af\u30ed\u306e\u958b\u767a\u306b\u304a\u3044\u3066\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u9069\u5207\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u696d\u52d9\u306e\u52b9\u7387\u5316\u3084\u751f\u7523\u6027\u306e\u5411\u4e0a\u306b\u5927\u304d\u304f\u8ca2\u732e\u3059\u308b\u3067\u3057\u3087\u3046\u3002\u5e38\u306b\u6539\u5584\u3092\u5fc3\u304c\u3051\u3001\u3088\u308a\u52b9\u679c\u7684\u306a\u30de\u30af\u30ed\u958b\u767a\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7d1a\u8005\u5411\u3051VBA\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306e\u6975\u610f 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\u3005\u306b\u3001\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 #8220;`vba Sub Perfor<\/p>\n","protected":false},"author":2,"featured_media":644,"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-645","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\/645","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=645"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/645\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/644"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}