{"id":340,"date":"2024-12-29T02:33:34","date_gmt":"2024-12-28T17:33:34","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2024\/12\/%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91%e9%ab%98%e5%ba%a6%e3%81%aa%e3%82%a8%e3%83%a9%e3%83%bc%e6%a4%9c%e5%87%ba%ef%bc%86%e8%87%aa%e5%8b%95%e4%bf%ae%e6%ad%a3%e3%83%9e\/"},"modified":"2024-12-29T02:33:34","modified_gmt":"2024-12-28T17:33:34","slug":"%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91%e9%ab%98%e5%ba%a6%e3%81%aa%e3%82%a8%e3%83%a9%e3%83%bc%e6%a4%9c%e5%87%ba%ef%bc%86%e8%87%aa%e5%8b%95%e4%bf%ae%e6%ad%a3%e3%83%9e","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2024\/12\/%e3%80%90excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%e3%80%91%e9%ab%98%e5%ba%a6%e3%81%aa%e3%82%a8%e3%83%a9%e3%83%bc%e6%a4%9c%e5%87%ba%ef%bc%86%e8%87%aa%e5%8b%95%e4%bf%ae%e6%ad%a3%e3%83%9e\/","title":{"rendered":"\u3010Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\u3011\u9ad8\u5ea6\u306a\u30a8\u30e9\u30fc\u691c\u51fa\uff06\u81ea\u52d5\u4fee\u6b63\u30de\u30af\u30ed\u3067\u696d\u52d9\u52b9\u7387\u3092\u5287\u7684\u30a2\u30c3\u30d7\uff017\u3064\u306e\u6d3b\u7528\u6cd5\u3068\u62e1\u5f35\u306e\u30d2\u30f3\u30c8"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u9ad8\u5ea6\u306a\u30a8\u30e9\u30fc\u691c\u51fa\u3068\u81ea\u52d5\u4fee\u6b63\u30de\u30af\u30ed<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u30c7\u30fc\u30bf\u5165\u529b\u30a8\u30e9\u30fc\u3092\u81ea\u52d5\u691c\u51fa\u3057\u4fee\u6b63\u3059\u308b\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002Excel\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\u306f\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&#8220;`vba<br \/>\nSub ErrorDetectionAndCorrection()<br \/>\n    Dim ws As Worksheet<br \/>\n    Dim rng As Range<br \/>\n    Dim cell As Range<\/p>\n<p>    Set ws = ActiveSheet<br \/>\n    Set rng = ws.UsedRange<\/p>\n<p>    For Each cell In rng<br \/>\n        If IsError(cell.Value) Then<br \/>\n            Select Case cell.Value<br \/>\n                Case CVErr(xlErrDiv0)<br \/>\n                    cell.Value = 0<br \/>\n                Case CVErr(xlErrNA)<br \/>\n                    cell.Value = &#8220;N\/A&#8221;<br \/>\n                Case CVErr(xlErrName)<br \/>\n                    cell.Value = &#8220;\u540d\u524d\u30a8\u30e9\u30fc&#8221;<br \/>\n                Case CVErr(xlErrNull)<br \/>\n                    cell.Value = &#8220;NULL&#8221;<br \/>\n                Case CVErr(xlErrNum)<br \/>\n                    cell.Value = 0<br \/>\n                Case CVErr(xlErrRef)<br \/>\n                    cell.Value = &#8220;\u53c2\u7167\u30a8\u30e9\u30fc&#8221;<br \/>\n                Case CVErr(xlErrValue)<br \/>\n                    cell.Value = 0<br \/>\n            End Select<br \/>\n        End If<br \/>\n    Next cell<\/p>\n<p>    MsgBox &#8220;\u30a8\u30e9\u30fc\u691c\u51fa\u3068\u4fee\u6b63\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002&#8221;, vbInformation<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<h3>1. \u30a8\u30e9\u30fc\u691c\u51fa\u306e\u91cd\u8981\u6027<\/h3>\n<p>Excel \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3057\u305f\u30a8\u30e9\u30fc\u691c\u51fa\u306f\u3001\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6271\u3046\u4e0a\u3067\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u624b\u52d5\u3067\u306e\u30c1\u30a7\u30c3\u30af\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u3001\u898b\u843d\u3068\u3057\u3082\u767a\u751f\u3057\u3084\u3059\u3044\u3067\u3059\u304c\u3001\u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u52b9\u7387\u7684\u304b\u3064\u6b63\u78ba\u306b\u30a8\u30e9\u30fc\u3092\u898b\u3064\u3051\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u5185\u306e\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u30a8\u30e9\u30fc\u3092\u542b\u3080\u30bb\u30eb\u3092\u7279\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u3092\u4fdd\u3061\u3001\u5f8c\u7d9a\u306e\u5206\u6790\u3084\u51e6\u7406\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u81ea\u52d5\u4fee\u6b63\u6a5f\u80fd\u306e\u5b9f\u88c5<\/h3>\n<p>\u30a8\u30e9\u30fc\u3092\u691c\u51fa\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u81ea\u52d5\u7684\u306b\u4fee\u6b63\u3059\u308b\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u4f5c\u696d\u52b9\u7387\u304c\u3055\u3089\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002\u3053\u306e Excel \u30de\u30af\u30ed\u306f\u3001\u691c\u51fa\u3055\u308c\u305f\u30a8\u30e9\u30fc\u306e\u7a2e\u985e\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u4fee\u6b63\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30bc\u30ed\u9664\u7b97\u30a8\u30e9\u30fc\uff08#DIV\/0!\uff09\u306e\u5834\u5408\u306f0\u306b\u3001N\/A \u30a8\u30e9\u30fc\uff08#N\/A\uff09\u306e\u5834\u5408\u306f &#8220;N\/A&#8221; \u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a8\u30e9\u30fc\u3092\u542b\u3080\u30bb\u30eb\u304c\u9069\u5207\u306a\u5024\u3084\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u7f6e\u304d\u63db\u3048\u3089\u308c\u3001\u30c7\u30fc\u30bf\u306e\u53ef\u8aad\u6027\u3068\u4f7f\u3044\u3084\u3059\u3055\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<h3>3. \u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3068\u62e1\u5f35\u6027<\/h3>\n<p>\u3053\u306eExcel \u30de\u30af\u30ed\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30cb\u30fc\u30ba\u306b\u5408\u308f\u305b\u3066\u67d4\u8edf\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u7279\u5b9a\u306e\u30a8\u30e9\u30fc\u30bf\u30a4\u30d7\u306b\u5bfe\u3059\u308b\u51e6\u7406\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u8ffd\u52a0\u306e\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u88c5\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u306e\u30de\u30af\u30ed\u3092\u3055\u3089\u306b\u767a\u5c55\u3055\u305b\u3001\u30a8\u30e9\u30fc\u306e\u691c\u51fa\u3068\u4fee\u6b63\u3060\u3051\u3067\u306a\u304f\u3001\u30c7\u30fc\u30bf\u306e\u691c\u8a3c\u3084\u6574\u5f62\u3001\u30ec\u30dd\u30fc\u30c8\u751f\u6210\u306a\u3069\u306e\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001Excel \u3092\u4f7f\u7528\u3057\u305f\u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u5168\u4f53\u3092\u81ea\u52d5\u5316\u3057\u3001\u52b9\u7387\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u691c\u51fa\u3068\u81ea\u52d5\u4fee\u6b63\u306f\u3001Excel \u306e\u9ad8\u5ea6\u306a\u4f7f\u7528\u6cd5\u306e\u4e00\u3064\u3067\u3059\u304c\u3001\u3053\u308c\u3089\u306e\u6280\u8853\u3092\u7fd2\u5f97\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u5206\u6790\u306e\u8cea\u3092\u5411\u4e0a\u3055\u305b\u3001\u696d\u52d9\u306e\u52b9\u7387\u5316\u3092\u56f3\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Excel \u30de\u30af\u30ed\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5358\u7d14\u4f5c\u696d\u304b\u3089\u89e3\u653e\u3055\u308c\u3001\u3088\u308a\u5275\u9020\u7684\u3067\u4ed8\u52a0\u4fa1\u5024\u306e\u9ad8\u3044\u696d\u52d9\u306b\u96c6\u4e2d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u9ad8\u5ea6\u306a\u30a8\u30e9\u30fc\u691c\u51fa\u3068\u81ea\u52d5\u4fee\u6b63\u30de\u30af\u30ed \u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u306f\u3001\u30c7\u30fc\u30bf\u5165\u529b\u30a8\u30e9\u30fc\u3092\u81ea\u52d5\u691c\u51fa\u3057\u4fee\u6b63\u3059\u308b\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002Excel\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\u306f\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055<\/p>\n","protected":false},"author":2,"featured_media":339,"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-340","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\/340","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=340"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/339"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}