{"id":1153,"date":"2015-04-03T10:54:55","date_gmt":"2015-04-03T01:54:55","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=1153"},"modified":"2015-04-03T10:56:14","modified_gmt":"2015-04-03T01:56:14","slug":"arrayfunction","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/arrayfunction\/","title":{"rendered":"Array \u95a2\u6570\uff08\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u306e\u914d\u5217\u3092\u4f5c\u6210\uff09"},"content":{"rendered":"<h2>Array \u95a2\u6570\u306e\u4f7f\u3044\u65b9<\/h2>\n<div class=\"m30-l\">\n<br \/><\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p><em>myArray<\/em> = <strong>Array<\/strong> ( <em>element<\/em> [, <em>elment<\/em>, <em>element<\/em> &#8230; ] )<\/p>\n<\/div>\n<br \/>\n<h3>\u3010\u5f15\u6570\u30fb\u623b\u308a\u5024\u306e\u8aac\u660e\u3011<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>element&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u914d\u5217 <em>myArray<\/em> \u306e\u8981\u7d20\u3068\u306a\u308a\u307e\u3059<\/li>\n<li>myArray&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u4f5c\u6210\u3055\u308c\u308b\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\uff08Variant\uff09\u306e\u914d\u5217<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">Array \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u6210\u3057\u305f\u914d\u5217\u306e<strong>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u6700\u5c0f\u5024\u306f\u3001\u901a\u5e38 0 <\/strong>\u3067\u3059\u304c\u3001<span class=\"red\"><strong>Option Base 1 \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3059\u308b\u3068<strong>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u6700\u5c0f\u5024\u306f 1 <\/strong>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>Array \u95a2\u6570\u306e\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=\"Array \u95a2\u6570\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub sample_array()\r\n\r\n    Dim myArray()\r\n    Dim i As Long\r\n    Dim strArray As String\r\n    \r\n    myArray = Array(100, 200, 300, 400, 500)\r\n    \r\n   \r\n    For i = LBound(myArray) To UBound(myArray)\r\n    \r\n        strArray = strArray & \"myArray(\" & i & \") = \" & myArray(i) & Chr(13)\r\n    \r\n    Next i\r\n    \r\n    MsgBox strArray\r\n    \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:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/array01.jpg?ssl=1\" rel=\"lightbox[1153]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/array01.jpg?resize=174%2C250&#038;ssl=1\" alt=\"Array \u95a2\u6570\uff081\uff09\" width=\"174\" height=\"250\" class=\"alignnone size-full wp-image-1155\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/>\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\uff08Option Base 1 \u3092\u6307\u5b9a\uff09<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Array \u95a2\u6570\u306e\u4f7f\u7528\u4f8b\uff08Option Base 1 \u3092\u6307\u5b9a\uff09\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nOption Base 1\r\n\r\n\r\nSub sample_array()\r\n\r\n    Dim myArray()\r\n    Dim i As Long\r\n    Dim strArray As String\r\n    \r\n    myArray = Array(100, 200, 300, 400, 500)\r\n    \r\n   \r\n    For i = LBound(myArray) To UBound(myArray)\r\n    \r\n        strArray = strArray & \"myArray(\" & i & \") = \" & myArray(i) & Chr(13)\r\n    \r\n    Next i\r\n    \r\n    MsgBox strArray\r\n    \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:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/array02.jpg?ssl=1\" rel=\"lightbox[1153]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/array02.jpg?resize=174%2C250&#038;ssl=1\" alt=\"Array \u95a2\u6570\uff082\uff09\" width=\"174\" height=\"250\" class=\"alignnone size-full wp-image-1156\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Array \u95a2\u6570\u306e\u4f7f\u3044\u65b9 \u3010\u66f8\u5f0f\u3011 myArray = Array ( elem &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1155,"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\uff01"},"categories":[37],"tags":[67,64,63,38],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/array01.jpg?fit=174%2C250&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-iB","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1153"}],"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=1153"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1153\/revisions"}],"predecessor-version":[{"id":1160,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1153\/revisions\/1160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/1155"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}