{"id":4529,"date":"2015-12-13T17:04:32","date_gmt":"2015-12-13T08:04:32","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4529"},"modified":"2015-12-13T17:08:42","modified_gmt":"2015-12-13T08:08:42","slug":"gosubsubroutine","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/gosubsubroutine\/","title":{"rendered":"\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185\u306e\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u3078\u79fb\u52d5\uff08GoSub&#8230;Return \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09"},"content":{"rendered":"<h2>GoSub&#8230;Return \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/h2>\n<div class=\"m30-l\">\n<p><strong>GoSub \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u306f\u3001\u6307\u5b9a\u3057\u305f\u30e9\u30d9\u30eb\u306e\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u3078\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5236\u5fa1\u3092\u79fb\u3057\u307e\u3059\u3002<strong>Return \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u306f\u3001\u5236\u5fa1\u3092\u5143\u306b\u623b\u3057\u3001<strong>GoSub \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u306e\u6b21\u306e\u884c\u304b\u3089\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u69cb\u6587\u3011<\/strong><\/p>\n<p>    <strong>GoSub<\/strong> <em>subroutine<\/em><br \/>\n    \u3000\u3000<em>statements<\/em><\/p>\n<p>    <em>subroutine<\/em>:<br \/>\n    \u3000\u3000<em>statements<\/em><br \/>\n    \u3000\u3000<strong>Return<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>subroutine&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>statements&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5b9f\u884c\u3059\u308b\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong><span class=\"red\">GoSub \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/span> \u3068 <span class=\"red\">GoTo \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/span> \u306e\u9055\u3044\u306b\u3064\u3044\u3066<\/strong><br \/>\n      <strong>GoSub \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306e\u5834\u5408\u3001\u6307\u5b9a\u3055\u308c\u305f\u30e9\u30d9\u30eb\u3078\u30b8\u30e3\u30f3\u30d7\u3057\u305f\u5f8c\u3001\u3082\u3068\u306e\u51e6\u7406\u306b\u623b\u308b\u306e\u306b\u5bfe\u3057\u3066\u3001<strong>GoTo \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306e\u5834\u5408\u306f\u3001\u884c\u304d\u3063\u3071\u306a\u3057\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n      \uff08 \u203b <strong>GoTo \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306e\u8a73\u7d30\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/gotosubroutine\/\">\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185\u306e\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u3078\u79fb\u52d5\uff08GoTo \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>GoSub&#8230;Return \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"GoSub...Return \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_GoSub()\r\n    \r\n    Dim num\r\n    num = InputBox(\"\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\r\n    \r\n    If num > 0 Then\r\n        GoSub MyRoutine\r\n    End If\r\n    MsgBox num\r\n    Exit Sub\r\n\r\nMyRoutine:\r\n    num = 100 \/ num\r\nReturn\r\n    \r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/gosubsubroutine01.jpg?resize=429%2C150&#038;ssl=1\" alt=\"GoSub \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c801\" width=\"429\" height=\"150\" class=\"alignnone size-full wp-image-4530\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/gosubsubroutine01.jpg?w=429&amp;ssl=1 429w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/gosubsubroutine01.jpg?resize=400%2C140&amp;ssl=1 400w\" sizes=\"(max-width: 429px) 100vw, 429px\" data-recalc-dims=\"1\" \/><\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/gosubsubroutine02.jpg?resize=168%2C155&#038;ssl=1\" alt=\"GoSub \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c802\" width=\"168\" height=\"155\" class=\"alignnone size-full wp-image-4531\" data-recalc-dims=\"1\" \/><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>GoSub&#8230;Return \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 GoSub \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4530,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[48],"tags":[711,63,38,49],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/gosubsubroutine01.jpg?fit=429%2C150&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1b3","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4529"}],"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=4529"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4529\/revisions"}],"predecessor-version":[{"id":4540,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4529\/revisions\/4540"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4530"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}