{"id":5064,"date":"2016-02-10T08:53:15","date_gmt":"2016-02-09T23:53:15","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5064"},"modified":"2016-02-10T08:53:15","modified_gmt":"2016-02-09T23:53:15","slug":"%e5%88%97%e6%8c%99%e5%9e%8b%e5%a4%89%e6%95%b0%ef%bc%88enum-%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\/%e5%88%97%e6%8c%99%e5%9e%8b%e5%a4%89%e6%95%b0%ef%bc%88enum-%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":"\u5217\u6319\u578b\u5909\u6570\uff08Enum \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09"},"content":{"rendered":"<h2>\u5217\u6319\u578b\u5909\u6570\u3092\u4f7f\u3046<\/h2>\n<div class=\"m30-l\">\n<p>\u5217\u6319\u578b\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001<strong>Enum \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u3092\u4f7f\u3063\u3066\u3001\u5ba3\u8a00\u3092\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u69cb\u6587\u3011<\/strong><\/p>\n<p>    [ <strong>Public<\/strong> | <strong>Private<\/strong> ] <strong>Enum<\/strong> <em>enumname<\/em><br \/>\n    \u3000\u3000<em>membername1<\/em> [ = <em>long1<\/em> ]<br \/>\n    \u3000\u3000<em>membername2<\/em> [ = <em>long2<\/em> ]<br \/>\n    \u3000\u3000<em>membername3<\/em> [ = <em>long3<\/em> ]<br \/>\n    \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u30fb\u30fb\u30fb<br \/>\n    <strong>End Enum<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>enumname&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5b9a\u7fa9\u3059\u308b\u5217\u6319\u578b\u5909\u6570\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<li>membername1,2,3\u2026&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5217\u6319\u578b <em>enumname<\/em> \u306e\u30e1\u30f3\u30d0\u30fc\u3068\u306a\u308b\u5b9a\u6570\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u8907\u6570\u6307\u5b9a\u53ef\u3001\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<li>long1,2,3\u2026&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u9577\u6574\u6570\u578b\uff08Long\uff09\u306e\u5024\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u5148\u982d\u306e\u5b9a\u6570\u306e\u5024\uff08<em>long1<\/em>\uff09\u306e\u6307\u5b9a\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u3001\u305d\u306e\u5024\u306f\u30010 \u3068\u306a\u308a\u307e\u3059\u30022 \u756a\u76ee\u4ee5\u964d\u306e\u5b9a\u6570\u306e\u5024\uff08<em>long2,3,\u2026<\/em>\uff09\u306e\u6307\u5b9a\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u3001\u305d\u306e\u5024\u306f\u3001\u300c\u76f4\u524d\u306e <em>membername<\/em> \u306e\u5024 + 1 \u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<p class=\"caution4\">\u30ad\u30fc\u30ef\u30fc\u30c9 <strong>Public<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u305d\u306e\u5b9a\u6570\u306f\u3001\u3059\u3079\u3066\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u3069\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u304b\u3089\u3082\u53c2\u7167\u3067\u304d\u307e\u3059\u3002\u4e00\u65b9\u3001\u30ad\u30fc\u30ef\u30fc\u30c9 <strong>Private<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u5ba3\u8a00\u304c\u884c\u308f\u308c\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u3067\u3057\u304b\u53c2\u7167\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<strong>Public<\/strong>\u3001<strong>Private<\/strong> \u3092\u7701\u7565\u3057\u305f\u5834\u5408\u3001<strong>Public<\/strong> \u3092\u6307\u5b9a\u3057\u305f\u3082\u306e\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>Enum \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=\"Enum \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nEnum RegData\r\n\r\n    ID = 1\r\n    Name = 2\r\n    Pref\u3000\u3000\u3000'\u5024\u306e\u6307\u5b9a\u3092\u7701\u7565\u3059\u308b\u3068\u3001\u3053\u3053\u3067\u306f\u300c3\u300d\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002\r\n    \r\nEnd Enum\r\n\r\n\r\nSub Sample_Enum()\r\n\r\n    Dim str As String\r\n    Dim i As Long\r\n    \r\n    For i = 1 To Range(\"A1\").CurrentRegion.Rows.Count\r\n        \r\n        str = str & Cells(i, RegData.ID) & vbTab _\r\n                  & Cells(i, RegData.Name) & vbTab _\r\n                  & Cells(i, RegData.Pref) & vbCrLf\r\n    \r\n    Next i\r\n\r\n    MsgBox str\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/enum01.jpg?ssl=1\" rel=\"lightbox[5064]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/enum01.jpg?resize=580%2C294&#038;ssl=1\" alt=\"Enum \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\" width=\"580\" height=\"294\" class=\"alignnone size-large wp-image-5065\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/enum01.jpg?resize=580%2C294&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/enum01.jpg?resize=400%2C203&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/enum01.jpg?w=615&amp;ssl=1 615w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5217\u6319\u578b\u5909\u6570\u3092\u4f7f\u3046 \u5217\u6319\u578b\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001Enum \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u3001\u5ba3 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5099,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[37],"tags":[803,63,38],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/enum01-580x294-1.jpg?fit=580%2C294&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1jG","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5064"}],"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=5064"}],"version-history":[{"count":9,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5064\/revisions"}],"predecessor-version":[{"id":5098,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5064\/revisions\/5098"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5099"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}