{"id":5025,"date":"2016-02-04T11:09:04","date_gmt":"2016-02-04T02:09:04","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5025"},"modified":"2016-02-04T11:09:04","modified_gmt":"2016-02-04T02:09:04","slug":"cutcopymode","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/cutcopymode\/","title":{"rendered":"\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u3001\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u306e\u53d6\u5f97\u30fb\u89e3\u9664\uff08CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u3001\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u306e\u53d6\u5f97\u3068\u8a2d\u5b9a<\/h2>\n<div class=\"m30-l\">\n<p><strong>CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u3092\u4f7f\u3046\u3068\u3001\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u307e\u305f\u306f\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u306e\u72b6\u614b\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n    \u8a2d\u5b9a\u306e\u5834\u5408\u306f\u3001<strong>True<\/strong> \u304a\u3088\u3073 <strong>False<\/strong> \u306e\u3044\u305a\u308c\u304b\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u3044\u305a\u308c\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u307e\u305f\u306f\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u306e\u72b6\u614b\u304c\u89e3\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>result<\/em> = <em>object<\/em>.<strong>CutCopyMode<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>CutCopyMode<\/strong> = <em>boolean<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\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>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>False<\/strong> \u307e\u305f\u306f\u3001<strong>XlCutCopyMode \u5217\u6319\u578b<\/strong> \u306e\u5024\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#ffffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlCopy<\/td>\n<td width=\"50\" align = \"center\">1<\/td>\n<td width=\"400\">\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">xlCut<\/td>\n<td width=\"50\" align = \"center\">2<\/td>\n<td width=\"400\">\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>boolean&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>True<\/strong> \u307e\u305f\u306f\u3001<strong>False<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3044\u305a\u308c\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u307e\u305f\u306f\u30b3\u30d4\u30fc \u30e2\u30fc\u30c9\u3092\u89e3\u9664\u3057\u3001\u70b9\u6ec5\u3057\u3066\u3044\u308b\u67a0\u7dda\u3092\u53d6\u308a\u9664\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution8\"><strong>CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u306f\u3001\u623b\u308a\u5024\u3068\u8a2d\u5b9a\u5024\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3 \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=\"CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_copy()\r\n\r\n    '\u30bb\u30eb\u7bc4\u56f2\u300cA1:E6\u300d\u3092\u30b3\u30d4\u30fc\r\n    Worksheets(\"Sheet1\").Range(\"A1:E6\").Copy\r\n    \r\nEnd Sub\r\n\r\nSub Sample_cut()\r\n\r\n    '\u30bb\u30eb\u7bc4\u56f2\u300cA1:E6\u300d\u3092\u5207\u308a\u53d6\u308a\r\n    Worksheets(\"Sheet1\").Range(\"A1:E6\").Cut\r\n    \r\nEnd Sub\r\n\r\nSub Sample_CutCopyMode1()\r\n\r\n    '\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u30fb\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u306e\u72b6\u614b\u3092\u53d6\u5f97\r\n    \r\n    Select Case Application.CutCopyMode\r\n    \r\n    Case xlCopy\r\n        MsgBox \"\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\"\r\n    \r\n    Case xlCut\r\n        MsgBox \"\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\"\r\n    \r\n    Case Else\r\n        MsgBox \"\u3069\u3061\u3089\u3067\u3082\u3042\u308a\u307e\u305b\u3093\"\r\n    \r\n    End Select\r\n\r\nEnd Sub\r\n\r\nSub Sample_CutCopyMode2()\r\n\r\n    '\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u307e\u305f\u306f\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u3092\u89e3\u9664\r\n    Application.CutCopyMode = True\r\n        \r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><strong>Sample_copy<\/strong> \u3092 \u5b9f\u884c\u5f8c\u3001<strong>Sample_CutCopyMode1<\/strong> \u3092\u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode01-1.jpg?ssl=1\" rel=\"lightbox[5025]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode01-1.jpg?resize=517%2C345&#038;ssl=1\" alt=\"CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3 01\" width=\"517\" height=\"345\" class=\"alignnone size-full wp-image-5027\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode01-1.jpg?w=517&amp;ssl=1 517w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode01-1.jpg?resize=400%2C267&amp;ssl=1 400w\" sizes=\"(max-width: 517px) 100vw, 517px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><strong>Sample_cut<\/strong> \u3092 \u5b9f\u884c\u5f8c\u3001<strong>Sample_CutCopyMode1<\/strong> \u3092\u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode02.jpg?ssl=1\" rel=\"lightbox[5025]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode02.jpg?resize=517%2C347&#038;ssl=1\" alt=\"CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3 02\" width=\"517\" height=\"347\" class=\"alignnone size-full wp-image-5028\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode02.jpg?w=517&amp;ssl=1 517w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode02.jpg?resize=400%2C268&amp;ssl=1 400w\" sizes=\"(max-width: 517px) 100vw, 517px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u3001\u3044\u305a\u308c\u304b\u3092\u5b9f\u884c\u5f8c\u306b\u3001<strong>Sample_CutCopyMode2<\/strong> \u3092\u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode03.jpg?ssl=1\" rel=\"lightbox[5025]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode03.jpg?resize=519%2C345&#038;ssl=1\" alt=\"CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3 03\" width=\"519\" height=\"345\" class=\"alignnone size-full wp-image-5029\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode03.jpg?w=519&amp;ssl=1 519w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode03.jpg?resize=400%2C266&amp;ssl=1 400w\" sizes=\"(max-width: 519px) 100vw, 519px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5207\u308a\u53d6\u308a\u30e2\u30fc\u30c9\u3001\u30b3\u30d4\u30fc\u30e2\u30fc\u30c9\u306e\u53d6\u5f97\u3068\u8a2d\u5b9a CutCopyMode \u30d7\u30ed\u30d1\u30c6\u30a3 \u3092 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5027,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[787],"tags":[301,792,63,793,38,697],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/cutcopymode01-1.jpg?fit=517%2C345&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1j3","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5025"}],"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=5025"}],"version-history":[{"count":3,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5025\/revisions"}],"predecessor-version":[{"id":5048,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5025\/revisions\/5048"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5027"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}