{"id":2143,"date":"2015-06-02T10:42:31","date_gmt":"2015-06-02T01:42:31","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2143"},"modified":"2015-07-09T08:57:19","modified_gmt":"2015-07-08T23:57:19","slug":"unionp","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/unionp\/","title":{"rendered":"\uff12\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\uff11\u3064\u306b\u307e\u3068\u3081\u3066\u53c2\u7167\uff08Union \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Union \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p><strong>Union \u30e1\u30bd\u30c3\u30c9<\/strong>\u306f\u3001\uff12\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\uff11\u3064\u306b\u307e\u3068\u3081\u3066\u53c2\u7167\u3057\u307e\u3059\u3002\u307e\u3068\u3081\u305f\u30bb\u30eb\u306b\u540d\u524d\u3092\u3064\u3051\u3066\u6271\u3046\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n  <strong>\u623b\u308a\u5024<\/strong>\u306f\u3001<strong>\u30bb\u30eb\u7bc4\u56f2\u3092\u8868\u3059 Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3067\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>Object<\/em>.<strong>Union<\/strong> ( <em>arg1<\/em>, <em>arg2<\/em> [, <em>arg3<\/em>, &#8230; , <em>arg30<\/em> ] )<\/p>\n<\/div>\n<br \/>\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;<span class=\"red\"><strong>Application \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\n<li>arg1,arg2, &#8230; arg30&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30bb\u30eb\u7bc4\u56f2\u3092\u8868\u3059<strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3067\u6700\u5927\uff13\uff10\u307e\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\uff08 arg1, arg2 \u306f\u7701\u7565\u4e0d\u53ef\u3002arg3 &#8230; arg30 \u306f\u7701\u7565\u53ef\uff09\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">Union \u30e1\u30bd\u30c3\u30c9\u3067\u3001\u307e\u3068\u3081\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u30bb\u30eb\u7bc4\u56f2\u306f\u3001\u540c\u4e00\u30b7\u30fc\u30c8\u4e0a\u306e\u30bb\u30eb\u7bc4\u56f2\u306e\u307f\u3067\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/><br \/>\n<h2>Union \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=\"Union \u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Union()\r\n\r\n    Dim myUnion\r\n    \r\n    '\u307e\u3068\u3081\u305f\u30bb\u30eb\u7bc4\u56f2\u306b\u540d\u524d\u3092\u4ed8\u3051\u308b\r\n    Set myUnion = Union(Range(\"A2:A16\"), Range(\"A3:E8\"))\r\n    \r\n    '\u9078\u629e\r\n    myUnion.Select\r\n    \r\n    '\u307e\u3068\u3081\u305f\u7bc4\u56f2\u306e\u30bb\u30eb\u6570\u3092\u8868\u793a\r\n    MsgBox Application.Union(Cells(1, 1), Cells(3, 3), Range(\"c1:F1\")).Count\r\n\r\nEnd Sub\r\n\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\/union01.jpg?ssl=1\" rel=\"lightbox[2143]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/union01.jpg?resize=400%2C217&#038;ssl=1\" alt=\"Union \u30e1\u30bd\u30c3\u30c9\u3000\u4f8b\" width=\"400\" height=\"217\" class=\"alignnone size-medium wp-image-2144\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/union01.jpg?resize=400%2C217&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/union01.jpg?resize=580%2C315&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/union01.jpg?w=686&amp;ssl=1 686w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Union \u30e1\u30bd\u30c3\u30c9 Union \u30e1\u30bd\u30c3\u30c9\u306f\u3001\uff12\u3064\u4ee5\u4e0a\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\uff11\u3064\u306b\u307e\u3068\u3081\u3066 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2148,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[301,380,63,38,269],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/union01-400x2171.jpg?fit=400%2C217&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s4Ye9i-unionp","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2143"}],"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=2143"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2143\/revisions"}],"predecessor-version":[{"id":2542,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2143\/revisions\/2542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2148"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}