{"id":659,"date":"2025-05-29T00:49:10","date_gmt":"2025-05-28T15:49:10","guid":{"rendered":"https:\/\/hajidai.com\/excel\/2025\/05\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%9290%e3%82%a2%e3%83%83%e3%83%97%e3%81%99%e3%82%8b%e9%9d%a9%e6%96%b0%e7%9a%84%e3%83%9e%e3%82%af\/"},"modified":"2025-05-29T00:49:10","modified_gmt":"2025-05-28T15:49:10","slug":"excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%9290%e3%82%a2%e3%83%83%e3%83%97%e3%81%99%e3%82%8b%e9%9d%a9%e6%96%b0%e7%9a%84%e3%83%9e%e3%82%af","status":"publish","type":"post","link":"https:\/\/hajidai.com\/excel\/2025\/05\/excel%e4%b8%8a%e7%b4%9a%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81%e6%a5%ad%e5%8b%99%e5%8a%b9%e7%8e%87%e3%82%9290%e3%82%a2%e3%83%83%e3%83%97%e3%81%99%e3%82%8b%e9%9d%a9%e6%96%b0%e7%9a%84%e3%83%9e%e3%82%af\/","title":{"rendered":"Excel\u4e0a\u7d1a\u8005\u5fc5\u898b\uff01\u696d\u52d9\u52b9\u7387\u309290%\u30a2\u30c3\u30d7\u3059\u308b\u9769\u65b0\u7684\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u81ea\u52d5\u30c6\u30b9\u30c8\u751f\u6210\u8853"},"content":{"rendered":"<h2>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u81ea\u52d5\u30c6\u30b9\u30c8\u751f\u6210<\/h2>\n<p>\u307e\u305a\u306f\u3001Excel\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\u304c\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 AutoTestGenerator()<br \/>\n    Dim ws As Worksheet<br \/>\n    Dim lastRow As Long<br \/>\n    Dim i As Long<\/p>\n<p>    Set ws = ThisWorkbook.Sheets(&#8220;TestData&#8221;)<br \/>\n    lastRow = ws.Cells(ws.Rows.Count, &#8220;A&#8221;).End(xlUp).Row<\/p>\n<p>    For i = 2 To lastRow<br \/>\n        ws.Cells(i, &#8220;C&#8221;).Formula = &#8220;=IF(B&#8221; &#038; i &#038; &#8220;=VLOOKUP(A&#8221; &#038; i &#038; &#8220;,ExpectedResults!A:B,2,FALSE),&#8221;&#8221;Pass&#8221;&#8221;,&#8221;&#8221;Fail&#8221;&#8221;)&#8221;<br \/>\n    Next i<\/p>\n<p>    MsgBox &#8220;\u81ea\u52d5\u30c6\u30b9\u30c8\u304c\u751f\u6210\u3055\u308c\u307e\u3057\u305f\u3002&#8221;, vbInformation<br \/>\nEnd Sub<br \/>\n&#8220;`<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306f\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306e\u5404\u884c\u306b\u5bfe\u3057\u3066\u81ea\u52d5\u7684\u306b\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>1. \u30b3\u30fc\u30c9\u81ea\u52d5\u30c6\u30b9\u30c8\u751f\u6210\u306e\u91cd\u8981\u6027<\/h3>\n<p>Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3059\u308b\u4e0a\u7d1a\u8005\u306b\u3068\u3063\u3066\u3001\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u30c6\u30b9\u30c8\u751f\u6210\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5927\u898f\u6a21\u306a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3084\u8907\u96d1\u306a\u8a08\u7b97\u3092\u542b\u3080\u30ef\u30fc\u30af\u30d6\u30c3\u30af\u306e\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<p>&#8211; \u30a8\u30e9\u30fc\u306e\u65e9\u671f\u767a\u898b\uff1a\u624b\u52d5\u30c1\u30a7\u30c3\u30af\u3067\u306f\u898b\u9003\u3057\u3084\u3059\u3044\u5fae\u7d30\u306a\u30a8\u30e9\u30fc\u3092\u81ea\u52d5\u7684\u306b\u691c\u51fa\u3067\u304d\u307e\u3059\u3002<br \/>\n&#8211; \u6642\u9593\u306e\u7bc0\u7d04\uff1a\u7e70\u308a\u8fd4\u3057\u884c\u308f\u308c\u308b\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u5927\u5e45\u306a\u6642\u9593\u77ed\u7e2e\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n&#8211; \u4e00\u8cab\u6027\u306e\u78ba\u4fdd\uff1a\u4eba\u70ba\u7684\u306a\u30df\u30b9\u3092\u6392\u9664\u3057\u3001\u5e38\u306b\u540c\u3058\u57fa\u6e96\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>2. \u52b9\u679c\u7684\u306a\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u8a2d\u8a08<\/h3>\n<p>\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u751f\u6210\u3059\u308b\u969b\u306f\u3001\u52b9\u679c\u7684\u306a\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u8a2d\u8a08\u304c\u9375\u3068\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30dd\u30a4\u30f3\u30c8\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff1a<\/p>\n<p>&#8211; \u5883\u754c\u5024\u30c6\u30b9\u30c8\uff1a\u30c7\u30fc\u30bf\u306e\u6700\u5c0f\u5024\u3001\u6700\u5927\u5024\u3001\u305d\u3057\u3066\u305d\u306e\u5883\u754c\u4ed8\u8fd1\u306e\u5024\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<br \/>\n&#8211; \u30a8\u30c3\u30b8\u30b1\u30fc\u30b9\uff1a\u901a\u5e38\u3068\u306f\u7570\u306a\u308b\u7279\u6b8a\u306a\u30b1\u30fc\u30b9\u3084\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305d\u3046\u306a\u72b6\u6cc1\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<br \/>\n&#8211; \u7db2\u7f85\u6027\uff1a\u53ef\u80fd\u306a\u9650\u308a\u591a\u304f\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u30ab\u30d0\u30fc\u3059\u308b\u3088\u3046\u306b\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u8a2d\u8a08\u3057\u307e\u3059\u3002<\/p>\n<p>Excel \u30de\u30af\u30ed\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u81ea\u52d5\u7684\u306b\u751f\u6210\u3057\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5805\u7262\u306a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u30c6\u30b9\u30c8\u7d50\u679c\u306e\u5206\u6790\u3068\u6539\u5584<\/h3>\n<p>\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306f\u3001\u7d50\u679c\u306e\u5206\u6790\u3068\u6539\u5584\u304c\u91cd\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u8e0f\u3080\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\uff1a<\/p>\n<p>1. \u5931\u6557\u3057\u305f\u30c6\u30b9\u30c8\u306e\u7279\u5b9a\uff1a\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u3001\u5931\u6557\u3057\u305f\u30b1\u30fc\u30b9\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002<br \/>\n2. \u6839\u672c\u539f\u56e0\u306e\u5206\u6790\uff1a\u5404\u5931\u6557\u30b1\u30fc\u30b9\u306b\u3064\u3044\u3066\u3001\u306a\u305c\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u306e\u304b\u3092\u8a73\u7d30\u306b\u8abf\u67fb\u3057\u307e\u3059\u3002<br \/>\n3. \u30b3\u30fc\u30c9\u306e\u4fee\u6b63\uff1a\u5206\u6790\u7d50\u679c\u306b\u57fa\u3065\u3044\u3066\u3001Excel \u30de\u30af\u30ed\u3084\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u8a08\u7b97\u5f0f\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<br \/>\n4. \u518d\u30c6\u30b9\u30c8\uff1a\u4fee\u6b63\u5f8c\u3001\u518d\u5ea6\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u6539\u5584\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b5\u30a4\u30af\u30eb\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u3067\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u54c1\u8cea\u3092\u7d99\u7d9a\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u81ea\u52d5\u30c6\u30b9\u30c8\u751f\u6210\u306f\u3001Excel\u4e0a\u7d1a\u8005\u304c\u7fd2\u5f97\u3059\u3079\u304d\u91cd\u8981\u306a\u30b9\u30ad\u30eb\u306e\u4e00\u3064\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u3088\u308a\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u3001\u52b9\u7387\u7684\u306a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u7d50\u679c\u3068\u3057\u3066\u696d\u52d9\u306e\u5927\u5e45\u306a\u52b9\u7387\u5316\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u5b9f\u88c5\u306f\u6700\u521d\u306f\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u304c\u3001\u9577\u671f\u7684\u306b\u306f\u5927\u304d\u306a\u5229\u76ca\u3092\u3082\u305f\u3089\u3059\u6295\u8cc7\u3060\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u4e0a\u7d1a\u8005\u5411\u3051\uff1a\u696d\u52d9\u52b9\u7387\u5316\u306e\u305f\u3081\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u81ea\u52d5\u30c6\u30b9\u30c8\u751f\u6210 \u307e\u305a\u306f\u3001Excel\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\u304c\u3059\u3050\u306b\u8a66\u305b\u308b\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 #8220;`vba Sub<\/p>\n","protected":false},"author":2,"featured_media":658,"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-659","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\/659","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=659"}],"version-history":[{"count":0,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media\/658"}],"wp:attachment":[{"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hajidai.com\/excel\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}