{"id":2401,"date":"2015-07-01T08:30:02","date_gmt":"2015-06-30T23:30:02","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2401"},"modified":"2015-08-25T21:14:38","modified_gmt":"2015-08-25T12:14:38","slug":"intersect","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/intersect\/","title":{"rendered":"\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306e\u5171\u901a\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u53d6\u5f97\uff08Intersect \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Intersect \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p><strong>Intersect \u30e1\u30bd\u30c3\u30c9<\/strong>\u306f\u3001\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306e\u3046\u3061\u3001\u5171\u901a\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u8868\u3059 <strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3067\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>result<\/em> = <em>Object<\/em>.<strong>Intersect<\/strong> ( <em>Arg1<\/em>, <em>Arg2<\/em> [, <em>Arg3<\/em>, &#8230; , <em>Arg30<\/em> ] )<\/p>\n<\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/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 <span class=\"red\"><strong>Application \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span><\/li>\n<li>Arg1 &#8230; Arg30&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;  \u4efb\u610f\u306e\u30bb\u30eb\u7bc4\u56f2\uff08Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08<em>Arg1<\/em>\u3001<em>Arg2<\/em> \u306f\u5fc5\u9808\u3001<em>Arg3<\/em> \uff5e <em>Arg30<\/em> \u306f\u3001\u7701\u7565\u53ef\uff09\u3002\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5f15\u6570\u3067\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306e\u3046\u3061\u3001\u91cd\u8907\u3057\u3066\u3044\u308b\u30bb\u30eb\u7bc4\u56f2\uff08<strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff09\u3002\u91cd\u8907\u3057\u3066\u3044\u308b\u90e8\u5206\u304c\u306a\u3044\u5834\u5408\u306f\u3001<strong>Nothing<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/div>\n<br \/><br \/>\n<h2>Intersect \u30e1\u30bd\u30c3\u30c9\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=\"Intersect \u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Intersect()\r\n\r\n\r\n    Dim myRng1, myRng2, myRng3\r\n    \r\n    Set myRng1 = Range(\"A1:E10\")\r\n    Set myRng2 = Range(\"B5:B20\")\r\n    Set myRng3 = Range(\"A6:C10\")\r\n    \r\n    'myRng1 \u306e\u7bc4\u56f2\u3092\u80cc\u666f\u8272\u3092\u7dd1\u8272\u306b\r\n    myRng1.Interior.Color = vbGreen\r\n    'myRng2 \u306e\u7bc4\u56f2\u3092\u80cc\u666f\u8272\u3092?\u8272\u306b\r\n    myRng2.Interior.Color = vbYellow\r\n    'myRng3 \u306e\u7bc4\u56f2\u3092\u80cc\u666f\u8272\u3092\u9752\u8272\u306b\r\n    myRng3.Interior.Color = vbBlue\r\n    \r\n    '\u4e0a\u8a18\u7bc4\u56f2\u306e\u91cd\u306a\u308b\u90e8\u5206\u306e\u80cc\u666f\u8272\u3092\u8d64\u8272\u306b\r\n    Application.Intersect(myRng1, myRng2, myRng3).Interior.Color = vbRed\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:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/intersect01.jpg?ssl=1\" rel=\"lightbox[2401]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/intersect01.jpg?resize=400%2C388&#038;ssl=1\" alt=\"Intersect \u30e1\u30bd\u30c3\u30c9 \u4f8b\" width=\"400\" height=\"388\" class=\"alignnone size-medium wp-image-2406\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/intersect01.jpg?resize=400%2C388&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/intersect01.jpg?w=419&amp;ssl=1 419w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Intersect \u30e1\u30bd\u30c3\u30c9 Intersect \u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u30bb\u30eb &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[301,349,63,38,269],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/intersect01-400x388.jpg?fit=400%2C388&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-CJ","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2401"}],"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=2401"}],"version-history":[{"count":8,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2401\/revisions"}],"predecessor-version":[{"id":3326,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2401\/revisions\/3326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2409"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}