{"id":2018,"date":"2011-07-15T23:58:56","date_gmt":"2011-07-15T14:58:56","guid":{"rendered":"http:\/\/oichinote.com\/plus\/2011\/07\/15\/vba%e3%81%a7%e4%ba%88%e5%91%8a%e7%84%a1%e3%81%8f%e7%b5%82%e4%ba%86%e3%81%99%e3%82%8b%e3%83%90%e3%82%b0%e3%81%ab%e6%82%a9%e3%81%be%e3%81%95%e3%82%8c%e3%81%be%e3%81%97%e3%81%9f%e8%bf%bd%e8%a8%98\/"},"modified":"2011-07-15T23:58:56","modified_gmt":"2011-07-15T14:58:56","slug":"vba-9c75","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2011\/07\/vba-9c75.html","title":{"rendered":"VBA\u3067\u4e88\u544a\u7121\u304f\u7d42\u4e86\u3059\u308b\u30d0\u30b0\u306b\u60a9\u307e\u3055\u308c\u307e\u3057\u305f[\u8ffd\u8a18\u3042\u308a]"},"content":{"rendered":"<p>Excel\u306eVBA(Visual Basic)\u3067\u3001\u983c\u307e\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u79c1\u306f\u3001Excel\u3067VBA\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u305f\u4e8b\u306f\u307b\u3068\u3093\u3069\u7121\u304f\u3066\u3001Google\u3067\u691c\u7d22\u3057\u307e\u304f\u308a\u306a\u304c\u3089\u4f5c\u308a\u4e0a\u3052\u307e\u3057\u305f\u3002<\/p>\n<p>\u3084\u3063\u3068\u3001\u6700\u7d42\u30c7\u30d0\u30c3\u30b0\u3092\u7d42\u308f\u3089\u305b\u3001\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002\u3075\u3045\u301c\u3002<\/p>\n<p>\u6700\u5f8c\u306e\u30d0\u30b0\u306f\u3001\u624b\u5f37\u304b\u3063\u305f\u3067\u3059\u3002\u307b\u307c\u5b8c\u6210\u3060\u3068\u601d\u3063\u3066\u3001\u3044\u308d\u3044\u308d\u306a\u30c7\u30fc\u30bf\u3067\u8a66\u3057\u3066\u3044\u305f\u6642\u306b\u767a\u898b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u958b\u767a\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001Excel\u306e\u8868\u3092\u884c\u3054\u3068\u306b\u89e3\u6790\u3057\u3066\u3001\u305d\u306e\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u3068\u8a00\u3046\u7269\u3067\u3057\u305f\u3002<\/p>\n<p>\u306a\u305c\u304b\u3001\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u51e6\u7406\u3057\u305f\u6642\u3001\u307e\u3060\u884c\u304c\u6b8b\u3063\u3066\u3044\u308b\u306e\u306b\u3001\u7a81\u7136\u89e3\u6790\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u5168\u304f\u51fa\u307e\u305b\u3093\u3002\u4f55\u6545\u3060\u301c\u3002<\/p>\n<p>\u5909\u6570\u306e\u30a6\u30aa\u30c3\u30c1\u5f0f\u3092\u8ffd\u52a0\u3057\u3001\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3092\u3057\u3066\u3001\u9042\u306b\u898b\u3064\u3051\u307e\u3057\u305f!! \u6b21\u306e\u69d8\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u3002<\/p>\n<pre><span style=\"color: #33FF00\">Sub<\/span> foo(a)\n&nbsp; &nbsp; &lt;\u51e6\u74061&gt;\n&nbsp; &nbsp; <span style=\"color: #33FF00\">If<\/span> (a &gt; 0) <span style=\"color: #33FF00\">Then<\/span>\n&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;\u51e6\u74062&gt;\n&nbsp; &nbsp; <span style=\"color: #33FF00\">Else<\/span>\n&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;\u51e6\u74063&gt;\n&nbsp; &nbsp; <span style=\"color: #ff0000\">End<\/span>\n&nbsp; &nbsp; <span style=\"color: #33FF00\">End <\/span><span style=\"color: #33FF00\">If<\/span>\n&nbsp; &nbsp; &lt;\u51e6\u74064&gt;\n<span style=\"color: #33FF00\">End <\/span><span style=\"color: #33FF00\">Sub<\/span><\/pre>\n<p>\u308f\u304b\u308a\u307e\u3059\u304b? \u9593\u9055\u3048\u3066\u3001End If\u306e\u524d\u306b\u3001End\u3068\u5165\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u3002\u6587\u6cd5\u3068\u3057\u3066\u306f\u6b63\u3057\u3044\u304b\u3089\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>End If\u306e\u9670\u306b\u96a0\u308c\u3066\u3044\u3066\u3001End\u304c\u898b\u3048\u306a\u304b\u3063\u305f&#8230;\u3002<\/p>\n<p>Visual Basic\u306e\u30a8\u30c7\u30a3\u30bf\u3063\u3066\u3001\u95a2\u6570\u7b49\u306e\u5f15\u6570\u5019\u88dc\u3092\u81ea\u52d5\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u3059\u3054\u3044\u3068\u601d\u3063\u305f\u306e\u306f\u3001\u81ea\u5206\u3067\u5b9a\u7fa9\u3057\u305fSubroutine\u3067\u3082\u3001\u5f15\u6570\u5019\u88dc\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3059\u3002\u4fbf\u5229\u301c\u3002<\/p>\n<p>\u3067\u3082\u3001\u30a8\u30c7\u30a3\u30bf\u306e\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u3068\u601d\u308f\u308c\u308b\u3001\u81ea\u52d5\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u7121\u3055\u305d\u3046\u306a\u611f\u3058\u3067\u3059\u3002\u81ea\u5206\u3067\u3001TAB\u30ad\u30fc\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u5165\u308c\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30a8\u30e9\u30fc\u3001\u300c\u5fc5\u8981\u306e\u7121\u3044\u6240\u306bEnd\u3092\u5165\u308c\u3066\u3057\u307e\u3063\u305f\u306e\u5dfb\u300d\u3082\u3001\u81ea\u52d5\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u3066\u3044\u305f\u3089\u3001\u3082\u3063\u3068\u65e9\u304f\u6c17\u304c\u4ed8\u3044\u305f\u304b\u3082\u301c\u3002<\/p>\n<p>(\u8ffd\u8a18 2011-07-16 22:28)<\/p>\n<p>\u300c\u81ea\u52d5\u30a4\u30f3\u30c7\u30f3\u30c8\u300d\u306f\u52b9\u3044\u3066\u3044\u307e\u3057\u305f\u3002\u3067\u3059\u304c\u3001\u4f7f\u3044\u306b\u304f\u3044\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Emacs\u306ePerl Mode\u3060\u3068\u3001\u305d\u306e\u884c\u306e\u3069\u3053\u306b\u30ab\u30fc\u30bd\u30eb\u304c\u3042\u3063\u3066\u3082\u3001TAB\u3092\u62bc\u305b\u3070\u3001\u9069\u5207\u306a\u4f4d\u7f6e\u306b\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u63c3\u3048\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>VBA\u306e\u30a8\u30c7\u30a3\u30bf\u306f\u3001\u305d\u3046\u3044\u3046\u4e8b\u306f\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u554f\u984c\u306e\u7b87\u6240\u306f\u3001\u4ed6\u306e\u7b87\u6240\u304b\u3089\u30b3\u30d4\u30fc&amp;\u30da\u30fc\u30b9\u30c8\u3057\u3066\u304d\u3066\u3044\u307e\u3057\u305f\u3002\u4f55\u6545\u3001End\u3060\u3051\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u3001\u4e0d\u601d\u8b70\u306a\u306e\u3067\u3059\u304c&#8230;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u306eVBA(Visual Basic)\u3067\u3001\u983c\u307e\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u79c1\u306f\u3001Excel\u3067VBA\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u305f\u4e8b\u306f\u307b\u3068\u3093\u3069\u7121\u304f\u3066\u3001Google\u3067\u691c\u7d22\u3057\u307e\u304f\u308a\u306a\u304c\u3089\u4f5c\u308a\u4e0a\u3052\u307e\u3057\u305f\u3002 \u3084\u3063\u3068\u3001\u6700\u7d42\u30c7\u30d0\u30c3\u30b0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eVBA\u3067\u4e88\u544a\u7121\u304f\u7d42\u4e86\u3059\u308b\u30d0\u30b0\u306b\u60a9\u307e\u3055\u308c\u307e\u3057\u305f[\u8ffd\u8a18\u3042\u308a]\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-2018","post","type-post","status-publish","format-standard","hentry","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":12209,"url":"https:\/\/oichinote.com\/plus\/2014\/06\/improbe-my-applescript-with-record.html","url_meta":{"origin":2018,"position":0},"title":"AppleScript\u6539\u826f\u301c\u300c\u3060\u3093\u3060\u3093\u300d\u305d\u3057\u3066\u300c\u304a\u304a\u304d\u306b\u300d","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e746\u670822\u65e5","format":false,"excerpt":"\u4ee5\u524d\u3001\u6b21\u306e\u8a18\u4e8b\u3067AppleScript\u3092\u66f8\u3044\u3066\u3001AppleScript\u306e\u52c9\u5f37\u3092\u3057\u307e\u3057\u305f\u3002 Apple\u2026","rel":"","context":"AppleScript","block_context":{"text":"AppleScript","link":"https:\/\/oichinote.com\/plus\/category\/applescript"},"img":{"alt_text":"\u7a76\u6975\u306e\u9078\u629e","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/06\/20140622select-manakana.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":12176,"url":"https:\/\/oichinote.com\/plus\/2014\/06\/gather-files-whose-kind-is-png-on-applescript.html","url_meta":{"origin":2018,"position":1},"title":"AppleScript\u3067\u30d5\u30a9\u30eb\u30c0\u968e\u5c64\u4ee5\u4e0b\u3059\u3079\u3066\u306e\u6307\u5b9a\u7a2e\u985e\u306e\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u301c\u6307\u5b9akind\u6551\u51fa\u4f5c\u6226","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e746\u670819\u65e5","format":false,"excerpt":"AppleScript\u3067\u3001\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u968e\u5c64\u4ee5\u4e0b(\u4e0b\u4f4d\u30d5\u30a9\u30eb\u30c0\u3082\u542b\u3080)\u306b\u5165\u3063\u3066\u3044\u308b\u3001\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u2026","rel":"","context":"AppleScript","block_context":{"text":"AppleScript","link":"https:\/\/oichinote.com\/plus\/category\/applescript"},"img":{"alt_text":"\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u53d6\u5f97","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/06\/20140619applescript-gather.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16961,"url":"https:\/\/oichinote.com\/plus\/2016\/01\/crayon-syntax-highlighter.html","url_meta":{"origin":2018,"position":2},"title":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u8868\u793a\u3092Crayon Syntax Highlighter\u306b\u4e57\u308a\u63db\u3048\u307e\u3057\u305f","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2016\u5e741\u670826\u65e5","format":false,"excerpt":"\u30d6\u30ed\u30b0\u4e2d\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306a\u3069\u3092\u6574\u5f62\u3057\u3066\u8868\u793a\u3055\u305b\u308b\u6642\u3001Syntax Highlighter\u2026","rel":"","context":"AppleScript","block_context":{"text":"AppleScript","link":"https:\/\/oichinote.com\/plus\/category\/applescript"},"img":{"alt_text":"Search Regex\u3067crayon\u306b\u7f6e\u304d\u63db\u3048","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2016\/01\/20160126search-regex.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":13681,"url":"https:\/\/oichinote.com\/plus\/2014\/12\/the-end-of-year-2014.html","url_meta":{"origin":2018,"position":3},"title":"\u5e74\u672b\u30e2\u30fc\u30c9","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e7412\u670821\u65e5","format":false,"excerpt":"\u300c\u5fd9\u3057\u3044\u300d\u3063\u3066\u8a00\u3046\u3068\u3001\u300c\u5fc3\u300d\u304c\u300c\u4ea1\u304f\u306a\u308b\u300d\u306e\u3067\u3001\u4f7f\u308f\u306a\u3044\u69d8\u306b\u3057\u3088\u3046\u3068\u3001\u3055\u3060\u307e\u3055\u3057\u3055\u3093\u304c\u304a\u8a71\u3057\u3057\u3066\u3044\u307e\u2026","rel":"","context":"\u65e5\u8a18\u30fb\u30b3\u30e9\u30e0\u30fb\u3064\u3076\u3084\u304d","block_context":{"text":"\u65e5\u8a18\u30fb\u30b3\u30e9\u30e0\u30fb\u3064\u3076\u3084\u304d","link":"https:\/\/oichinote.com\/plus\/category\/column"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20384,"url":"https:\/\/oichinote.com\/plus\/2017\/05\/the-book-of-basic-sp-5030.html","url_meta":{"origin":2018,"position":4},"title":"MZ-80K2\u306eBASIC SP-5030\u89e3\u8aac\u66f8","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e745\u670821\u65e5","format":false,"excerpt":"MZ-80K2\u6301\u3063\u3066\u307e\u3057\u305f\u3002MZ-80K2\u3092\u691c\u7d22\u3057\u305f\u3089\u3001\u6b21\u306e\u8a18\u4e8b\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002\u8a18\u4e8b\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u5185\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"MZ-80 SP-5030\u89e3\u8aac\u66f8","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/05\/20170520mz-80-basic-manual.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1777,"url":"https:\/\/oichinote.com\/plus\/2010\/11\/visiovisual-b-1.html","url_meta":{"origin":2018,"position":5},"title":"Visio\u3067Visual Basic\u306e\u5236\u9650\u306b\u5f15\u3063\u304b\u304b\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2010\u5e7411\u670818\u65e5","format":false,"excerpt":"Visio\u3067Visual Basic\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3093\u3067\u3044\u305f\u3089\u3001Visual Basic\u306e\u5236\u9650\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/2018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=2018"}],"version-history":[{"count":0,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/2018\/revisions"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=2018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=2018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=2018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}