{"id":2030,"date":"2015-05-26T06:54:10","date_gmt":"2015-05-25T21:54:10","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2030"},"modified":"2015-05-26T06:54:10","modified_gmt":"2015-05-25T21:54:10","slug":"areascollection","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/areascollection\/","title":{"rendered":"\u975e\u9023\u7d9a\u306e\u30bb\u30eb\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\uff08Areas \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff09"},"content":{"rendered":"<h2>Areas \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u306e\u4f7f\u3044\u65b9<\/h2>\n<div class=\"m30-l\">\n<p>\u8907\u6570\u306e\u96e2\u308c\u305f\u4f4d\u7f6e\u306b\u3042\u308b\u30bb\u30eb\u7bc4\u56f2\u3092\u9078\u629e\u3057\u305f\u5834\u5408\u306b\u3001\u305d\u306e\u30bb\u30eb\u9818\u57df\u304c\u3044\u304f\u3064\u3042\u308b\u304b\u8abf\u3079\u305f\u308a\u3001\u305d\u308c\u305e\u308c\u306e\u30bb\u30eb\u9818\u57df\u306b\u5bfe\u3057\u3066\u306e\u51e6\u7406\u3092\u884c\u3063\u305f\u308a\u3059\u308b\u306e\u306b\u3001<span class=\"blue\">Areas \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/span>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>Areas.Item \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p><em>Object<\/em>.<strong>Areas<\/strong>[ .<strong>Item<\/strong> ] ( <em>index<\/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>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u30fb\u30bb\u30eb\u7bc4\u56f2\uff08Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09<\/li>\n<li>index&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u9818\u57df\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u306f\u3001\u9818\u57df\u304c\u9078\u629e\u3055\u308c\u305f\u9806\u5e8f\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>Areas\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong>\u306b\u306f\u3001\u9078\u629e\u7bc4\u56f2\u5185\u306e\u5404\u30bb\u30eb\u9818\u57df\u306b\u5bfe\u5fdc\u3059\u308b<strong>Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u304c\u542b\u307e\u308c\u307e\u3059\u3002<strong>Areas\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong>\u304b\u3089<strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<strong>Areas.Item \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\uff08<strong>Item<\/strong> \u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306a\u306e\u3067\u3001\u7701\u7565\u53ef\u80fd\u3067\u3059\u3002\uff09\n<\/p>\n<br \/>\n<h3>Areas.Count \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>area_count<\/em> = <em>Object<\/em>.<strong>Areas<\/strong>.<strong>Count<\/strong><\/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>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u30fb\u30bb\u30eb\u7bc4\u56f2\uff08Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09<\/li>\n<li>area_count&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u3001\u9023\u7d9a\u3057\u3066\u3044\u306a\u3044\u30bb\u30eb\u7bc4\u56f2\u306e\u6570\u3092\u793a\u3057\u307e\u3059\u3002\u9023\u7d9a\u3057\u305f 1 \u3064\u306e\u7bc4\u56f2\u306e\u307f\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f 1\u3001\u9023\u7d9a\u3057\u3066\u3044\u306a\u3044 2 \u3064\u306e\u30bb\u30eb\u7bc4\u56f2\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u305f\u3089 2 \u3068\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/div>\n<br \/><br \/>\n<h2>Areas \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\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=\"\u975e\u9023\u7d9a\u306e\u30bb\u30eb\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Areas()\r\n\r\n    Dim myArea, i\r\n\r\n    Range(\"A1:A11,C1,E1,F1\").Select\r\n    \r\n    With Selection.Areas\r\n    \r\n        If .Count > 1 Then\r\n            \r\n            '\u975e\u9023\u7d9a\u306e\u30bb\u30eb\u7bc4\u56f2\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306e\u51e6\u7406\r\n            For i = 1 To .Count\r\n            \r\n                With .Item(i).Font\r\n                    \r\n                    .Bold = True\u3000\u3000\u3000'\u30d5\u30a9\u30f3\u30c8\u3092\u592a\u5b57\r\n                    .Color = vbRed\u3000\u3000'\u30d5\u30a9\u30f3\u30c8\u306e\u8272\u3092\u8d64\r\n            \r\n                End With\r\n            \r\n            Next i\r\n            \r\n        End If\r\n    \r\n    End With\r\n\r\nEnd Sub\r\n\u3000\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30de\u30af\u30ed\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col01.jpg?ssl=1\" rel=\"lightbox[2030]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col01.jpg?resize=400%2C207&#038;ssl=1\" alt=\"Areas \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u4f8b1\" width=\"400\" height=\"207\" class=\"alignnone size-medium wp-image-2034\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col01.jpg?resize=400%2C207&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col01.jpg?resize=580%2C299&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col01.jpg?w=612&amp;ssl=1 612w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u30de\u30af\u30ed\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col02.jpg?ssl=1\" rel=\"lightbox[2030]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col02.jpg?resize=400%2C210&#038;ssl=1\" alt=\"Areas \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u4f8b2\" width=\"400\" height=\"210\" class=\"alignnone size-medium wp-image-2035\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col02.jpg?resize=400%2C210&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col02.jpg?resize=580%2C304&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col02.jpg?w=610&amp;ssl=1 610w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Areas \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u306e\u4f7f\u3044\u65b9 \u8907\u6570\u306e\u96e2\u308c\u305f\u4f4d\u7f6e\u306b\u3042\u308b\u30bb\u30eb\u7bc4\u56f2\u3092\u9078\u629e\u3057\u305f\u5834\u5408 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2051,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[276,279,277,278,63,38,269,275],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/areas_col01-400x2071.jpg?fit=400%2C207&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-wK","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2030"}],"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=2030"}],"version-history":[{"count":7,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2030\/revisions"}],"predecessor-version":[{"id":2050,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2030\/revisions\/2050"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2051"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}