{"id":3029,"date":"2015-08-16T17:09:39","date_gmt":"2015-08-16T08:09:39","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3029"},"modified":"2015-10-19T09:20:57","modified_gmt":"2015-10-19T00:20:57","slug":"clearmethod","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/clearmethod\/","title":{"rendered":"\u5bfe\u8c61\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30af\u30ea\u30a2\u3059\u308b\uff08Clear \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Clear \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u5bfe\u8c61\u3068\u306a\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u3092\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002<strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u306e\u5834\u5408\u3001<strong>\u6570\u5f0f\u3001\u5024\u3001\u66f8\u5f0f<\/strong>\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Clear<\/strong><\/p><\/div>\n<br \/>\n<h3>\u9805\u76ee\u306e\u8aac\u660e<\/h3>\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>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30bb\u30eb\u7bc4\u56f2\uff09\u3001ChartArea \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30b0\u30e9\u30d5\u30a8\u30ea\u30a2\uff09\u3001Legend \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u51e1\u4f8b\uff09,ComboBox \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30b3\u30f3\u30dc\u30dc\u30c3\u30af\u30b9\uff09,ListBox \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30ea\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\uff09,ErrObject \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30a8\u30e9\u30fc\uff09,SortFields \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u4e26\u3079\u66ff\u3048\u306e\u30ad\u30fc\u8a2d\u5b9a\uff09<\/strong><\/span> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u66f8\u5f0f\u306e\u307f\u524a\u9664\u3059\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/rangeclearformats\/\">ClearFormats \u30e1\u30bd\u30c3\u30c9<\/a> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p class=\"caution4\">\u30c7\u30fc\u30bf\u306e\u307f\u3092\u30af\u30ea\u30a2\u3059\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/clearcontents\/\">ClearContents \u30e1\u30bd\u30c3\u30c9<\/a> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Clear \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=\"Clear \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Clear1()\r\n\r\n    '\u30b0\u30e9\u30d5\u30a8\u30ea\u30a2\u3092\u30af\u30ea\u30a2\r\n    Sheet1.ChartObjects(1).Select\r\n    ActiveChart.ChartArea.Clear\r\n\r\nEnd Sub\r\n\r\nSub Sample_Clear2()\r\n\r\n    '\u30bb\u30eb\u7bc4\u56f2\u3092\u30af\u30ea\u30a2\r\n    Sheet1.Range(\"B2\").CurrentRegion.Select\r\n    Selection.Clear\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\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod01.jpg?ssl=1\" rel=\"lightbox[3029]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod01.jpg?resize=400%2C191&#038;ssl=1\" alt=\"Clear \u30e1\u30bd\u30c3\u30c9\u3000\u4f8b00\" width=\"400\" height=\"191\" class=\"alignnone size-medium wp-image-3030\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod01.jpg?resize=400%2C191&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod01.jpg?resize=580%2C277&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod01.jpg?w=1122&amp;ssl=1 1122w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Sub Sample_Clear1 \u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod02.jpg?ssl=1\" rel=\"lightbox[3029]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod02.jpg?resize=400%2C194&#038;ssl=1\" alt=\"Clear \u30e1\u30bd\u30c3\u30c9\u3000\u4f8b01\" width=\"400\" height=\"194\" class=\"alignnone size-medium wp-image-3031\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod02.jpg?resize=400%2C194&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod02.jpg?resize=580%2C281&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod02.jpg?w=1119&amp;ssl=1 1119w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Sub Sample_Clear2 \u5b9f\u884c<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod03.jpg?ssl=1\" rel=\"lightbox[3029]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod03.jpg?resize=400%2C194&#038;ssl=1\" alt=\"Clear \u30e1\u30bd\u30c3\u30c9\u3000\u4f8b03\" width=\"400\" height=\"194\" class=\"alignnone size-medium wp-image-3032\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod03.jpg?resize=400%2C194&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod03.jpg?resize=580%2C282&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod03.jpg?w=1115&amp;ssl=1 1115w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>Clear \u30e1\u30bd\u30c3\u30c9 \u5bfe\u8c61\u3068\u306a\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u3092\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002Range \u30aa\u30d6 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[37],"tags":[489,495,491,493,490,492,270,494,63,38],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/clearmethod01-400x1911.jpg?fit=400%2C191&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-MR","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3029"}],"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=3029"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3029\/revisions"}],"predecessor-version":[{"id":4092,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3029\/revisions\/4092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3132"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}