{"id":2193,"date":"2015-06-06T09:16:28","date_gmt":"2015-06-06T00:16:28","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2193"},"modified":"2015-06-17T09:26:37","modified_gmt":"2015-06-17T00:26:37","slug":"copymethod","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/copymethod\/","title":{"rendered":"\u30bb\u30eb\u30fb\u30bb\u30eb\u7bc4\u56f2\u3092\u30b3\u30d4\u30fc\u3059\u308b\uff08Copy \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Copy \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p><strong>Copy \u30e1\u30bd\u30c3\u30c9<\/strong>\u306f\u3001\u30bb\u30eb\u7bc4\u56f2\u3092\u30b3\u30d4\u30fc\u3057\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306b\u30da\u30fc\u30b9\u30c8\u3057\u307e\u3059\u3002\u30da\u30fc\u30b9\u30c8\u5148\u306e\u6307\u5b9a\u3092\u7701\u7565\u3059\u308b\u3068\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3055\u308c\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>Object<\/em>.<strong>Copy<\/strong> <em>destination<\/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>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\n<li>destination&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30da\u30fc\u30b9\u30c8\u5148\u306e\u30bb\u30eb\u7bc4\u56f2\u3002\u7701\u7565\u3059\u308b\u3068\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><span class=\"blue\">\u5f15\u6570 <em>destination<\/em><\/span> \u306b\u306f\u3001\u30da\u30fc\u30b9\u30c8\u5148\u306e<span class=\"red\"><strong>\u30bb\u30eb\u7bc4\u56f2<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n  \uff08\u4f8b\uff09Range(&#8220;A1:C2&#8221;), Range(Cells(2,2),Cells(5,5)) \u306a\u3069<br \/>\n  \u307e\u305f\u306f\u3001<span class=\"red\"><strong>\u30da\u30fc\u30b9\u30c8\u5148\u306e\u30bb\u30eb\u7bc4\u56f2\u306e\u8d77\u70b9\u3068\u306a\u308b\u30bb\u30eb\uff08\u7bc4\u56f2\u5185\u306e\u5de6\u4e0a\u30bb\u30eb\uff09<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n  \uff08\u4f8b\uff09Range(&#8220;A1&#8221;), Cells(1,1) \u306a\u3069<\/p>\n<p class=\"caution4\"><span class=\"blue\"><strong>Copy \u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u3067\u30b3\u30d4\u30fc\u3055\u308c\u308b\u5185\u5bb9\u306f\u3001<span class=\"red\">\u5024<\/span>\u30fb<span class=\"red\">\u66f8\u5f0f<\/span>\u30fb<span class=\"red\">\u7f6b\u7dda<\/span>\u306a\u3069\u3067\u3059\uff08\u30bb\u30eb\u5e45\u306f\u30b3\u30d4\u30fc\u3055\u308c\u307e\u305b\u3093\uff09\u3002<br \/>\n\uff08 \u203b \u7279\u5b9a\u306e\u8981\u7d20\u306e\u307f\uff08\u300c\u30bb\u30eb\u306e\u5024\u306e\u307f\u300d\u300c\u30bb\u30eb\u306e\u66f8\u5f0f\u306e\u307f\u300d\u306a\u3069\uff09\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/pastespecialmethod\/\">PasteSpecial \u30e1\u30bd\u30c3\u30c9<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\uff09<\/p>\n<\/div>\n<br \/>\n<h2>Copy \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=\"Copy \u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Copy()\r\n\r\n    '\u300cA1\u300d\u304b\u3089\u300cE4\u300d\u306e\u7bc4\u56f2\u3092\u30b3\u30d4\u30fc\u3001\r\n    '\u300cG1\u300d\u304b\u3089\u300cK4\u300d\u306e\u7bc4\u56f2\u3078\u30da\u30fc\u30b9\u30c8\r\n    ActiveSheet.Range(\"A1:E4\").Copy Range(\"G1:K4\")\r\n\r\n    '\u300cA5\u300d\u304b\u3089\u300cE5\u300d\u306e\u7bc4\u56f2\u3092\u30b3\u30d4\u30fc\u3001\r\n    '\u300cG7\u300d\u30bb\u30eb\u3092\u8d77\u70b9\u3068\u3057\u305f\u7bc4\u56f2\u3078\u30da\u30fc\u30b9\u30c8\r\n    ActiveSheet.Range(\"A5:E5\").Copy Range(\"G7\")\r\n        \r\n    '\u300cA1\u300d\u30bb\u30eb\u3092\u542b\u3080\u300c\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u7bc4\u56f2\u300d\u3092\u30b3\u30d4\u30fc\r\n    '\u300cA10\u300d\u30bb\u30eb\u3092\u8d77\u70b9\u3068\u3057\u305f\u7bc4\u56f2\u3078\u30da\u30fc\u30b9\u30c8\r\n    Range(\"A1\").CurrentRegion.Copy Cells(10, 1)\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\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod01.jpg?ssl=1\" rel=\"lightbox[2193]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod01.jpg?resize=400%2C181&#038;ssl=1\" alt=\"Copy \u30e1\u30bd\u30c3\u30c9 \u4f8b\uff11\" width=\"400\" height=\"181\" class=\"alignnone size-medium wp-image-2199\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod01.jpg?resize=400%2C181&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod01.jpg?resize=580%2C262&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod01.jpg?w=901&amp;ssl=1 901w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod02.jpg?ssl=1\" rel=\"lightbox[2193]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod02.jpg?resize=400%2C181&#038;ssl=1\" alt=\"Copy \u30e1\u30bd\u30c3\u30c9 \u4f8b\uff12\" width=\"400\" height=\"181\" class=\"alignnone size-medium wp-image-2200\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod02.jpg?resize=400%2C181&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod02.jpg?resize=580%2C263&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod02.jpg?w=901&amp;ssl=1 901w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Copy \u30e1\u30bd\u30c3\u30c9 Copy \u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30bb\u30eb\u7bc4\u56f2\u3092\u30b3\u30d4\u30fc\u3057\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[306,270,63,38,307,269],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/copymethod01-400x1811.jpg?fit=400%2C181&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-zn","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2193"}],"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=2193"}],"version-history":[{"count":7,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2193\/revisions"}],"predecessor-version":[{"id":2309,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2193\/revisions\/2309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2212"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}