{"id":2847,"date":"2015-08-01T01:29:38","date_gmt":"2015-07-31T16:29:38","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2847"},"modified":"2015-08-01T01:29:38","modified_gmt":"2015-07-31T16:29:38","slug":"mergeunmerge","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/mergeunmerge\/","title":{"rendered":"\u30bb\u30eb\u7bc4\u56f2\u3092\u7d50\u5408\u30fb\u7d50\u5408\u3092\u89e3\u9664\uff08Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u30bb\u30eb\u3092\u7d50\u5408\u3059\u308b\u306b\u306f\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306b\u5bfe\u3057\u3066\u3001<strong>Merge \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u89e3\u9664\u3059\u308b\u306b\u306f\u3001<strong>UnMerge \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>m_object<\/em>.<strong>Merge<\/strong><\/p>\n<p>    <em>u_object<\/em>.<strong>UnMerge<\/strong><\/p><\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>m_object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u7d50\u5408\u3057\u305f\u3044\u30bb\u30eb\u7bc4\u56f2\uff08<strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>u_object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u7d50\u5408\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u307e\u305f\u306f\u3001\u305d\u306e\u7bc4\u56f2\u5185\u306e\u30bb\u30eb\u306e\u3046\u3061\u3069\u308c\u304b 1 \u3064\u306e\u30bb\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/><br \/>\n<p class=\"caution4\"><span class=\"red\"><strong>\u30bb\u30eb\u306e\u7d50\u5408\u30fb\u7d50\u5408\u306e\u89e3\u9664<\/strong><\/span>\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/mergecells\/\">MergeCells \u30d7\u30ed\u30d1\u30c6\u30a3<\/a> \u3067\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n      \u307e\u305f\u3001\u30bb\u30eb\u304c\u7d50\u5408\u30bb\u30eb\u306e\u4e00\u90e8\u3067\u3042\u308b\u5834\u5408\u3001\u305d\u306e\u7d50\u5408\u30bb\u30eb\u306e\u7bc4\u56f2\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/mergearea\/\">MergeArea \u30d7\u30ed\u30d1\u30c6\u30a3<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9 \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=\"Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Merge()\r\n\r\n\r\n    '\u30bb\u30eb\u7bc4\u56f2\u300cB1:D5\u300d\u3092\u7d50\u5408\uff08\u203b MergeCells \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\uff09\r\n    Range(\"B1:D5\").MergeCells = True\r\n\r\n\r\n    '\u7d50\u5408\u6e08\u307f\u306e\u30bb\u30eb\u306e\u4e00\u90e8\u300cB2\u300d\u30bb\u30eb\u3092\u3082\u3068\u306b\u7d50\u5408\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5168\u4f53\u3092\u53d6\u5f97\u3059\u308b\r\n    '\uff08\u203b MergeArea \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\uff09\r\n    Dim myRng As Range\r\n    Set myRng = Range(\"B2\").MergeArea.Address\u3000\u3000\u3000\u3000'\uff1c\u3053\u3053\u307e\u3067\uff1e\r\n\r\n\r\n    '\u7d50\u5408\u6e08\u306e\u30bb\u30eb\u7bc4\u56f2 myRng \u306e\u7d50\u5408\u3092\u89e3\u9664\uff1aUnMerge \u30e1\u30bd\u30c3\u30c9\r\n    myRng.UnMerge\r\n\r\n\r\n    '\u30bb\u30eb\u7bc4\u56f2\u300cA1:A5\u300d\u3092\u7d50\u5408\uff1aMerge \u30e1\u30bd\u30c3\u30c9\r\n    Range(\"A1:A5\").Merge\r\n\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\uff1c\u3053\u3053\u307e\u3067\uff1e\u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge01.jpg?ssl=1\" rel=\"lightbox[2847]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge01.jpg?resize=400%2C262&#038;ssl=1\" alt=\"Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9 \u4f8b1\" width=\"400\" height=\"262\" class=\"alignnone size-medium wp-image-2848\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge01.jpg?resize=400%2C262&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge01.jpg?w=472&amp;ssl=1 472w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><br \/>\n<br \/><\/p>\n<p>\u6700\u5f8c\u307e\u3067\u5b9f\u884c\u3057\u305f\u7d50\u679c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge02.jpg?ssl=1\" rel=\"lightbox[2847]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge02.jpg?resize=400%2C261&#038;ssl=1\" alt=\"Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9 \u4f8b2\" width=\"400\" height=\"261\" class=\"alignnone size-medium wp-image-2849\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge02.jpg?resize=400%2C261&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/mergeunmerge02.jpg?w=472&amp;ssl=1 472w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9 \u30bb\u30eb\u3092\u7d50\u5408\u3059\u308b\u306b\u306f\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":"\u30bb\u30eb\u7bc4\u56f2\u3092\u7d50\u5408\u30fb\u7d50\u5408\u3092\u89e3\u9664\uff08Merge \u30e1\u30bd\u30c3\u30c9\u30fbUnMerge \u30e1\u30bd\u30c3\u30c9\uff09"},"categories":[268],"tags":[458,344,342,270,459,63,38,269],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/mergeunmerge01-400x262.jpg?fit=400%2C262&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-JV","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2847"}],"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=2847"}],"version-history":[{"count":3,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2847\/revisions"}],"predecessor-version":[{"id":2891,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2847\/revisions\/2891"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2892"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}