{"id":634,"date":"2025-04-29T04:49:10","date_gmt":"2025-04-28T19:49:10","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/04\/%e3%80%90%e5%8d%b3%e5%ae%9f%e8%b7%b5%e5%8f%af%e8%83%bd%e3%80%911%e5%88%86%e3%81%a7%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%99%e3%82%8bexcel%e3%83%9e%e3%82%af%e3%83%ad%ef%bc%81%e7%be%8e%e3%81%97\/"},"modified":"2025-04-29T04:49:10","modified_gmt":"2025-04-28T19:49:10","slug":"%e3%80%90%e5%8d%b3%e5%ae%9f%e8%b7%b5%e5%8f%af%e8%83%bd%e3%80%911%e5%88%86%e3%81%a7%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%99%e3%82%8bexcel%e3%83%9e%e3%82%af%e3%83%ad%ef%bc%81%e7%be%8e%e3%81%97","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/04\/%e3%80%90%e5%8d%b3%e5%ae%9f%e8%b7%b5%e5%8f%af%e8%83%bd%e3%80%911%e5%88%86%e3%81%a7%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%81%99%e3%82%8bexcel%e3%83%9e%e3%82%af%e3%83%ad%ef%bc%81%e7%be%8e%e3%81%97\/","title":{"rendered":"\u3010\u5373\u5b9f\u8df5\u53ef\u80fd\u30111\u5206\u3067\u30de\u30b9\u30bf\u30fc\u3059\u308bExcel\u30de\u30af\u30ed\uff01\u7f8e\u3057\u304f\u6574\u5f62\u3055\u308c\u305f\u30b7\u30fc\u30c8\u3092\u77ac\u6642\u306b\u4f5c\u6210\u3059\u308b7\u3064\u306e\u79d8\u8a23"},"content":{"rendered":"<h2>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\u4eba\u304c\u3059\u3050\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9<\/h2>\n<p>&#8220;`vba<br \/>\nSub \u81ea\u52d5\u30d5\u30a9\u30fc\u30de\u30c3\u30c8()<br \/>\n    Dim ws As Worksheet<br \/>\n    Dim rng As Range<\/p>\n<p>    Set ws = ActiveSheet<br \/>\n    Set rng = ws.UsedRange<\/p>\n<p>    With rng<br \/>\n        .Font.Name = &#8220;Arial&#8221;<br \/>\n        .Font.Size = 11<br \/>\n        .HorizontalAlignment = xlCenter<br \/>\n        .VerticalAlignment = xlCenter<br \/>\n        .Borders.LineStyle = xlContinuous<br \/>\n        .AutoFilter<br \/>\n    End With<\/p>\n<p>    ws.Cells.EntireColumn.AutoFit<br \/>\n    ws.Cells.EntireRow.AutoFit<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u30b7\u30fc\u30c8\u306e\u4f7f\u7528\u7bc4\u56f2\u306b\u5bfe\u3057\u3066\u3001\u30d5\u30a9\u30f3\u30c8\u8a2d\u5b9a\u3001\u30bb\u30eb\u914d\u7f6e\u3001\u7f6b\u7dda\u3001\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u30fc\u9069\u7528\u3001\u5217\u5e45\u3068\u884c\u9ad8\u306e\u81ea\u52d5\u8abf\u6574\u3092\u4e00\u62ec\u3067\u884c\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u5165\u529b\u5f8c\u306e\u6574\u5f62\u4f5c\u696d\u3092\u5927\u5e45\u306b\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1. \u30b3\u30fc\u30c9\u54c1\u8cea\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u91cd\u8981\u6027<\/h3>\n<p>Excel\u4e0a\u7d1a\u8005\u306b\u3068\u3063\u3066\u3001\u30de\u30af\u30ed\u3084VBA\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u7ba1\u7406\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u30b3\u30fc\u30c9\u54c1\u8cea\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u306f\u3001\u30b3\u30fc\u30c9\u306e\u8907\u96d1\u3055\u3001\u4fdd\u5b88\u6027\u3001\u52b9\u7387\u6027\u306a\u3069\u3092\u6570\u5024\u5316\u3057\u3066\u8a55\u4fa1\u3059\u308b\u6307\u6a19\u306e\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u7406\u89e3\u3057\u3001\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u9ad8\u54c1\u8cea\u3067\u7ba1\u7406\u3057\u3084\u3059\u3044Excel\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u6ce8\u76ee\u3059\u308b\u3053\u3068\u304c\u5927\u5207\u3067\u3059\uff1a<\/p>\n<p>&#8211; \u30b3\u30fc\u30c9\u306e\u884c\u6570\uff1a\u77ed\u3059\u304e\u305a\u3001\u9577\u3059\u304e\u306a\u3044\u30d0\u30e9\u30f3\u30b9\u306e\u53d6\u308c\u305f\u30b3\u30fc\u30c9<br \/>\n&#8211; \u95a2\u6570\u306e\u8907\u96d1\u5ea6\uff1a\u4e00\u3064\u306e\u95a2\u6570\u304c\u3042\u307e\u308a\u306b\u8907\u96d1\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u6ce8\u610f<br \/>\n&#8211; \u5909\u6570\u306e\u547d\u540d\u898f\u5247\uff1a\u610f\u5473\u306e\u308f\u304b\u308a\u3084\u3059\u3044\u5909\u6570\u540d\u3092\u4f7f\u7528<br \/>\n&#8211; \u30b3\u30e1\u30f3\u30c8\u306e\u9069\u5207\u3055\uff1a\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0<\/p>\n<p>\u3053\u308c\u3089\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u610f\u8b58\u3057\u306a\u304c\u3089\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u3067\u3001\u4ed6\u306e\u4eba\u304c\u8aad\u307f\u3084\u3059\u304f\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u3084\u3059\u3044Excel\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u30b3\u30fc\u30c9\u54c1\u8cea\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306e\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n<p>Excel \u30de\u30af\u30ed\u306e\u54c1\u8cea\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u52b9\u679c\u7684\u3067\u3059\uff1a<\/p>\n<p>1. \u30e2\u30b8\u30e5\u30fc\u30eb\u5316\uff1a\u5927\u304d\u306a\u51e6\u7406\u3092\u5c0f\u3055\u306a\u95a2\u6570\u306b\u5206\u5272\u3057\u3001\u518d\u5229\u7528\u6027\u3092\u9ad8\u3081\u308b<br \/>\n2. \u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\uff1aOn Error\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3001\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306e\u51e6\u7406\u3092\u9069\u5207\u306b\u884c\u3046<br \/>\n3. \u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7\u7ba1\u7406\uff1a\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30b9\u30b3\u30fc\u30d7\u3067\u5909\u6570\u3092\u5ba3\u8a00\u3057\u3001\u4e0d\u8981\u306a\u5e72\u6e09\u3092\u9632\u3050<br \/>\n4. \u5b9a\u6570\u306e\u6d3b\u7528\uff1a\u983b\u7e41\u306b\u4f7f\u7528\u3059\u308b\u5024\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3001\u5909\u66f4\u306e\u5bb9\u6613\u3055\u3068\u53ef\u8aad\u6027\u3092\u5411\u4e0a<\/p>\n<p>\u3053\u308c\u3089\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u610f\u8b58\u7684\u306b\u53d6\u308a\u5165\u308c\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5805\u7262\u3067\u7ba1\u7406\u3057\u3084\u3059\u3044Excel\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u30b3\u30fc\u30c9\u54c1\u8cea\u30e1\u30c8\u30ea\u30af\u30b9\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u6d3b\u7528<\/h3>\n<p>Excel VBA\u306e\u30b3\u30fc\u30c9\u54c1\u8cea\u3092\u52b9\u7387\u7684\u306b\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u5c02\u7528\u306e\u30c4\u30fc\u30eb\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u6709\u52b9\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\uff1a<\/p>\n<p>&#8211; MZ-Tools\uff1aVBA\u30a8\u30c7\u30a3\u30bf\u306b\u7d71\u5408\u3055\u308c\u3001\u30b3\u30fc\u30c9\u5206\u6790\u3084\u6700\u9069\u5316\u3092\u652f\u63f4<br \/>\n&#8211; Rubberduck\uff1a\u9ad8\u5ea6\u306a\u30b3\u30fc\u30c9\u89e3\u6790\u3068\u54c1\u8cea\u30c1\u30a7\u30c3\u30af\u6a5f\u80fd\u3092\u63d0\u4f9b<br \/>\n&#8211; Code Cleaner\uff1a\u4e0d\u8981\u306a\u30b3\u30fc\u30c9\u306e\u524a\u9664\u3084\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u8abf\u6574\u3092\u81ea\u52d5\u5316<\/p>\n<p>\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u3092\u5ba2\u89b3\u7684\u306b\u8a55\u4fa1\u3057\u3001\u6539\u5584\u70b9\u3092\u5bb9\u6613\u306b\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30c1\u30fc\u30e0\u958b\u767a\u306e\u5834\u5408\u306f\u3001\u5171\u901a\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u3092\u8a2d\u5b9a\u3057\u3001\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3092\u7528\u3044\u3066\u898f\u7d04\u9075\u5b88\u3092\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>Excel\u30de\u30af\u30ed\u306e\u54c1\u8cea\u7ba1\u7406\u306f\u3001\u5358\u306b\u52d5\u4f5c\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3060\u3051\u3067\u306a\u304f\u3001\u9577\u671f\u7684\u306a\u4fdd\u5b88\u6027\u3084\u62e1\u5f35\u6027\u3092\u8003\u616e\u3059\u308b\u4e0a\u3067\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u4e0a\u8a18\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u610f\u8b58\u3057\u306a\u304c\u3089\u3001\u7d99\u7d9a\u7684\u306b\u30b3\u30fc\u30c9\u54c1\u8cea\u306e\u5411\u4e0a\u306b\u53d6\u308a\u7d44\u3080\u3053\u3068\u3067\u3001\u3088\u308a\u52b9\u7387\u7684\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044Excel\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<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\u4eba\u304c\u3059\u3050\u306b\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9 #8220;`vba Sub \u81ea\u52d5\u30d5\u30a9\u30fc\u30de\u30c3\u30c8() Dim ws As Worksheet Dim rng As Ra<\/p>\n","protected":false},"author":2,"featured_media":633,"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-634","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\/634","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=634"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/634\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/633"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}