{"id":2252,"date":"2015-06-12T09:04:15","date_gmt":"2015-06-12T00:04:15","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2252"},"modified":"2015-08-26T01:15:31","modified_gmt":"2015-08-25T16:15:31","slug":"celldeletem","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/celldeletem\/","title":{"rendered":"\u30bb\u30eb\u3092\u524a\u9664\u3059\u308b\uff08Delete \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Delete \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p><strong>Delete \u30e1\u30bd\u30c3\u30c9<\/strong>\u3067\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u30fb\u30bb\u30eb\u7bc4\u56f2\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>  <em>Object<\/em>.<strong>Delete<\/strong> ( <em>shift<\/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>shift&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u524a\u9664\u5f8c\u306e\u30b7\u30d5\u30c8\u65b9\u5411\u3092\u8868\u3059\u5b9a\u6570\uff08\u4e0b\u8868\u53c2\u7167\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u3001\u30bb\u30eb\u7bc4\u56f2\u306e\u5f62\u72b6\u306b\u9069\u5fdc\u3057\u305f\u65b9\u5411\u306b\u30b7\u30d5\u30c8\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/><br \/>\n<p class=\"caution4\"><strong>\u5f15\u6570 <em>shift<\/em> \u306b\u6307\u5b9a\u3059\u308b\u5024\uff08\u30b7\u30d5\u30c8\u65b9\u5411\u3092\u8868\u3059\u5b9a\u6570\uff1aXlDeleteShiftDirection \u5217\u6319\uff09<\/strong><\/p>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlShiftToLeft<\/td>\n<td width=\"80\" align = \"center\">-4159<\/td>\n<td width=\"320\" >\u5de6\u65b9\u5411<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlShiftUp<\/td>\n<td width=\"80\" align = \"center\">-4162<\/td>\n<td width=\"320\" >\u4e0a\u65b9\u5411<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >\u7701\u7565<\/td>\n<td width=\"80\" align = \"center\"><\/td>\n<td width=\"320\" >\u30bb\u30eb\u7bc4\u56f2\u306e\u5f62\u306b\u5fdc\u3058\u3066\u30b7\u30d5\u30c8\u65b9\u5411\u304c\u81ea\u52d5\u7684\u306b\u6c7a\u5b9a<\/td>\n<\/tr>\n<\/table>\n<br \/><br \/>\n<\/div>\n<br \/><br \/><br \/>\n<h2>Delete \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=\"Delete \u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Delete()\r\n\r\n    '\u30bb\u30eb\u300cB4\u300d\u304b\u3089\u300cG4\u300d\u3092\u524a\u9664\r\n    Range(\"B4:G4\").Delete (xlShiftUp)\r\n    \r\n    'E\u5217\u3092\u524a\u9664\r\n    Range(\"E:E\").Delete (xlShiftToLeft)\r\n    \r\n    '4\u884c\u76ee\u3092\u524a\u9664\r\n    Range(\"4:4\").Delete\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\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete01.png?ssl=1\" rel=\"lightbox[2252]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete01.png?resize=400%2C201&#038;ssl=1\" alt=\"Delete \u30e1\u30bd\u30c3\u30c9 \u4f8b1\" width=\"400\" height=\"201\" class=\"alignnone size-medium wp-image-2254\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete01.png?resize=400%2C201&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete01.png?resize=580%2C291&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete01.png?w=681&amp;ssl=1 681w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete02.png?ssl=1\" rel=\"lightbox[2252]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete02.png?resize=400%2C196&#038;ssl=1\" alt=\"Delete \u30e1\u30bd\u30c3\u30c9 \u4f8b2\" width=\"400\" height=\"196\" class=\"alignnone size-medium wp-image-2255\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete02.png?resize=400%2C196&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete02.png?resize=580%2C285&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete02.png?w=684&amp;ssl=1 684w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Delete \u30e1\u30bd\u30c3\u30c9 Delete \u30e1\u30bd\u30c3\u30c9\u3067\u3001\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u30fb\u30bb\u30eb\u7bc4\u56f2\u3092\u524a\u9664\u3057 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[318,270,63,38,269,319],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/06\/celldelete01-400x2011.png?fit=400%2C201&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-Ak","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2252"}],"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=2252"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2252\/revisions"}],"predecessor-version":[{"id":3359,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2252\/revisions\/3359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2266"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}