{"id":976,"date":"2015-03-25T20:10:02","date_gmt":"2015-03-25T11:10:02","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=976"},"modified":"2015-03-26T12:18:34","modified_gmt":"2015-03-26T03:18:34","slug":"%e7%b9%b0%e8%bf%94%e3%81%97%e5%87%a6%e7%90%86%ef%bc%88for-next-%e3%82%b9%e3%83%86%e3%83%bc%e3%83%88%e3%83%a1%e3%83%b3%e3%83%88%ef%bc%89","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/%e7%b9%b0%e8%bf%94%e3%81%97%e5%87%a6%e7%90%86%ef%bc%88for-next-%e3%82%b9%e3%83%86%e3%83%bc%e3%83%88%e3%83%a1%e3%83%b3%e3%83%88%ef%bc%89\/","title":{"rendered":"\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08For&#8230;Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09"},"content":{"rendered":"<h2>For&#8230;Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u3044\u65b9<\/h2>\n<div class=\"m30-l\">\n<br \/><\/p>\n<div class=\"kkbox\"><strong>\u3010\u69cb\u6587\u3011<\/strong><\/p>\n<p><strong>For<\/strong> <em>counter<\/em> = <em>start<\/em> <strong>To<\/strong> <em>end<\/em> [ <strong>Step<\/strong> <em>step<\/em> ]<\/p>\n<p>\u3000\u3000[ <em>statements<\/em> ]<\/p>\n<p><strong>Next<\/strong> [ <em>counter<\/em> ]<\/p>\n<\/div>\n<h3>\u3010\u9805\u76ee\u306e\u8aac\u660e\u3011<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>counter&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u51e6\u7406\u56de\u6570\u3092\u4fdd\u6301\u3059\u308b\u5909\u6570\u3002<\/li>\n<li>start&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<em>counter<\/em> \u306e\u521d\u671f\u5024\u3002<\/li>\n<li>end&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<em>counter<\/em> \u306e\u7d42\u4e86\u5024\u3002<\/li>\n<li>step&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;1\u56de\u306e\u30eb\u30fc\u30d7\u3054\u3068\u306b\u3001<em>counter<\/em> \u306b\u52a0\u3048\u308b\u5024\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<li>statements&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;For&#8230;Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3067\u6307\u5b9a\u3057\u305f\u56de\u6570\u3060\u3051\u5b9f\u884c\u3055\u308c\u307e\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<\/ul>\n<br \/><br \/>\n<p class=\"caution3\"><span class=\"red\"><strong>Step<\/strong> <em>step<\/em><\/span> \u3092\u7701\u7565\u3057\u305f\u5834\u5408\u3001\u5f15\u6570 <em>counter<\/em> \u306b\u306f 1\u56de \u306e\u30eb\u30fc\u30d7\u3054\u3068\u306b\u300c1\u300d\u304c\u52a0\u7b97\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"caution3\"><strong>For&#8230;Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u304b\u3089\u629c\u3051\u51fa\u3059\u65b9\u6cd5\u306b\u3001<span class=\"red\"><strong>Exit For \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong><\/span> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001<strong>For&#8230;Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306f\u30cd\u30b9\u30c8 (\u5165\u308c\u5b50) \u69cb\u9020\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u305d\u306e\u5834\u5408\u306b Exit For \u304c\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u306f\u3001\u305d\u306e Exit For \u3092\u56f2\u3093\u3067\u3044\u308b <strong>1 \u756a\u5185\u5074\u306e\u30eb\u30fc\u30d7<\/strong>\u304b\u3089\u629c\u3051\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p class=\"caution7\">\u3082\u3057\u7121\u9650\u30eb\u30fc\u30d7\u306e\u72b6\u614b\u306b\u9665\u3063\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f\u3001<span class=\"red\"><strong>[ECS] \u30ad\u30fc<\/strong><\/span>\u3092\u62bc\u3057\u7d9a\u3051\u308b\u304b\u3001\u305d\u308c\u3067\u623b\u3089\u306a\u3044\u5834\u5408\u306f\u3001<span class=\"red\"><strong>[Ctrl] + [Alt] + [Delete]<\/strong><\/span> \u3092\u62bc\u3057\u3066 Windows \u306e\u30bf\u30b9\u30af\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u8868\u793a\u3057\u3066\u3001Excel \u3092\u5f37\u5236\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>For&#8230;Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">VBA\u30bd\u30fc\u30b9\u4f8b<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"For...Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\n\r\nSub sample_for_next()\r\n\r\n    Dim counter\r\n    Dim i\r\n    \r\n    counter = 0\r\n    \r\n    For i = 0 To 20 Step 6\r\n        \r\n        counter = counter + 1\r\n        \r\n        If counter > 21 Then Exit For\r\n        \r\n    Next\r\n    \r\n    MsgBox counter & \" \u56de\u30eb\u30fc\u30d7\u3057\u307e\u3057\u305f\u3002\"\r\n\r\nEnd Sub\r\n\r\n\u3000\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/03\/for_next.jpg?ssl=1\" rel=\"lightbox[976]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/03\/for_next.jpg?resize=186%2C178&#038;ssl=1\" alt=\"for_next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u4f8b\" width=\"186\" height=\"178\" class=\"alignnone size-full wp-image-983\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>For&#8230;Next \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u3044\u65b9 \u3010\u69cb\u6587\u3011 For coun &#8230; <\/p>\n","protected":false},"author":1,"featured_media":983,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":"\u30d6\u30ed\u30b0\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002"},"categories":[48],"tags":[58,38,49,56],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/03\/for_next.jpg?fit=186%2C178&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-fK","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/976"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=976"}],"version-history":[{"count":8,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/976\/revisions"}],"predecessor-version":[{"id":992,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/976\/revisions\/992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/983"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}