{"id":3664,"date":"2015-09-15T08:45:34","date_gmt":"2015-09-14T23:45:34","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3664"},"modified":"2015-09-15T08:45:34","modified_gmt":"2015-09-14T23:45:34","slug":"rangeautofilter11","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/rangeautofilter11\/","title":{"rendered":"\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\uff08\u65e5\u4ed8\u30fb\u6642\u523b\u306e\u30b0\u30eb\u30fc\u30d7\u5316\uff09AutoFilter \u30e1\u30bd\u30c3\u30c9"},"content":{"rendered":"<h2>\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u65e5\u4ed8\u3084\u6642\u523b\u3067\u3001\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308b<\/h2>\n<div class=\"m30-l\">\n<p>Excel 2007 \u304b\u3089\u65e5\u4ed8\u30c7\u30fc\u30bf\u304c\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u3001\u300c\u5e74\u300d\u300c\u6708\u300d\u300c\u65e5\u300d\u3092\u6307\u5b9a\u3057\u3066\u30ec\u30b3\u30fc\u30c9\u306e\u62bd\u51fa\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u30de\u30af\u30ed\u3067\u884c\u3046\u306b\u306f\u3001<strong>AutoFilter \u30e1\u30bd\u30c3\u30c9<\/strong>\u3067\u3001\u5f15\u6570 <em>operator<\/em> \u306b\u3001<strong>xlFilterValues<\/strong> \u3092\u6307\u5b9a\u3057\u3001\u5f15\u6570 <em>criteria2<\/em> \u306b\u3001<strong>\u6761\u4ef6\u3092\u8868\u3059\u914d\u5217<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\uff08 \u6ce8\u610f\uff1a<strong><em>criteria1<\/em> \u3067\u306f\u306a\u304f <em>criteria2<\/em><\/strong> \uff09\uff08Excel 2007 \u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>AutoFilter<\/strong> ( [ <em>field<\/em>, <em>criteria1<\/em>, <em>operator<\/em>, <em>criteria2<\/em> ] )<\/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>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>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>field&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u5bfe\u8c61\u3068\u306a\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u756a\u53f7\u3092\u6574\u6570\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u5bfe\u8c61\u3068\u306a\u308b\u7bc4\u56f2\u306e\u6700\u3082\u5de6\u5074\u306e\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u304c\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u756a\u53f7 1 \u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\t\u8907\u6570\u306e\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u3092\u307e\u3068\u3081\u3066\u6271\u3044\u305f\u3044\u5834\u5408\u306f\u3001\u914d\u5217\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\t\u3000\uff08\u4f8b\uff09field := Array(1,3,6)<\/li>\n<li>criteria1&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u62bd\u51fa\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u4eca\u56de\u306f\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\uff09\u3002<\/li>\n<li>operator&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>xlFilterValues<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>criteria2&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u62bd\u51fa\u6761\u4ef6\u3092\u8868\u3059\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059<br \/>\n\t\u3000\u3010\u66f8\u5f0f\u3011<br \/>\n\t\u3000criteria2 := <strong>Array<\/strong> ( <em>num1<\/em>, <em>date1<\/em>, <em>num2<\/em>, <em>date2<\/em>, <em>num3<\/em>, <em>date3<\/em> &#8230;&#8230; )<br \/>\n\t\u3000<em>num<\/em>\uff08 0 \uff5e 5 \u306e\u6574\u6570\u5024\uff09 \u3068 <em>date<\/em> \uff08\u65e5\u4ed8\uff09\u304c\u30da\u30a2\u3068\u306a\u308a\u3001\u62bd\u51fa\u6761\u4ef6\u3092\u8868\u3057\u307e\u3059\uff08\u4e0b\u8868\u53c2\u7167\uff09\u3002<\/p>\n<table>\n<tr>\n<td align = \"center\" width=\"100\" bgcolor=\"#ffffccc\"><strong><em>num<\/em><\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u610f\u5473<\/strong><\/td>\n<\/tr>\n<tr>\n<td align = \"center\" width=\"100\">0<\/td>\n<td width=\"400\"><em>date<\/em> \u3067\u6307\u5b9a\u3057\u305f\u65e5\u4ed8\u306e\u5e74\uff08\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u306f\u65e5\u4ed8\u5f62\u5f0f\uff09<\/td>\n<\/tr>\n<tr>\n<td align = \"center\" width=\"100\">1<\/td>\n<td width=\"400\"><em>date<\/em> \u3067\u6307\u5b9a\u3057\u305f\u65e5\u4ed8\u306e\u6708\uff08\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u306f\u65e5\u4ed8\u5f62\u5f0f\uff09<\/td>\n<\/tr>\n<tr>\n<td align = \"center\" width=\"100\">2<\/td>\n<td width=\"400\"><em>date<\/em> \u3067\u6307\u5b9a\u3057\u305f\u65e5\u4ed8\u306e\u65e5\uff08\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u306f\u65e5\u4ed8\u5f62\u5f0f\uff09<\/td>\n<\/tr>\n<tr>\n<td align = \"center\" width=\"100\">3<\/td>\n<td width=\"400\"><em>date<\/em> \u3067\u6307\u5b9a\u3057\u305f\u6642\u523b\u306e\u6642\uff08\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u306f\u65e5\u4ed8\u5f62\u5f0f\uff09<\/td>\n<\/tr>\n<tr>\n<td align = \"center\" width=\"100\">4<\/td>\n<td width=\"400\"><em>date<\/em> \u3067\u6307\u5b9a\u3057\u305f\u6642\u523b\u306e\u5206\uff08\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u306f\u65e5\u4ed8\u5f62\u5f0f\uff09<\/td>\n<\/tr>\n<tr>\n<td align = \"center\" width=\"100\">5<\/td>\n<td width=\"400\"><em>date<\/em> \u3067\u6307\u5b9a\u3057\u305f\u6642\u523b\u306e\u79d2\uff08\u5bfe\u8c61\u3068\u306a\u308b\u30bb\u30eb\u306f\u65e5\u4ed8\u5f62\u5f0f\uff09<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u4e0a\u8a18\u3001<em>date<\/em> \u306b\u306f\u3001&#8221;2015\/7\/1&#8243; \u3084 &#8220;2015\/07\/01&#8243; \u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002\u300c0\u300d\uff08\u5e74\uff09\u3084\u300c1\u300d\uff08\u6708\uff09\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3067\u3082\u300c\u6708\u300d\u3084\u300c\u65e5\u300d\u306e\u90e8\u5206\u3092\u7701\u7565\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n      Excel 2013 \u3067\u306f\u3001\u65e5\u4ed8\u30ea\u30c6\u30e9\u30eb\uff08 #2015\/7\/1# \uff09\u3084\u3001\u65e5\u672c\u8a9e\uff08&#8221;7\u67081\u65e5&#8221;\uff09\u3067\u306e\u6307\u5b9a\u3067\u3082 OK \u3067\u3057\u305f\u3002\u305f\u3060\u3001&#8221;2015\u5e747\u67081\u65e5&#8221; \u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002&#8221;7\u67081\u65e52015\u5e74&#8221; \u3068\u6307\u5b9a\u3059\u308b\u3068 OK \u3067\u3057\u305f\u3002<\/p>\n<br \/>\n<p class=\"caution4\"><strong>AutoFilter \u30e1\u30bd\u30c3\u30c9<\/strong> \u306e\u5f15\u6570\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/rangeautofilter2\/\">\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\uff08AutoFilter \u30e1\u30bd\u30c3\u30c9\uff09<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u65e5\u4ed8\u3084\u6642\u523b\u3092\u4f7f\u7528\u3057\u3066\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308b\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\u3000\uff11<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"\u65e5\u4ed8\u3067\u62bd\u51fa \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample11_1_AutoFilter()\r\n    \r\n    '\u300c\u7d0d\u54c1\u65e5\u300d2015\u5e747\u6708\u30682015\u5e7412\u670815\u65e5\u306e\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\r\n    Range(\"A1\").AutoFilter Field:=10, _\r\n                           Operator:=xlFilterValues, _\r\n                           Criteria2:=Array(1, \"2015\/7\/1\", 2, \"2015\/12\/15\")\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:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_1.jpg?ssl=1\" rel=\"lightbox[3664]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_1.jpg?resize=580%2C246&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\uff11\uff11_\uff11\" width=\"580\" height=\"246\" class=\"alignnone size-large wp-image-3666\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_1.jpg?resize=580%2C246&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_1.jpg?resize=400%2C170&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_1.jpg?w=1339&amp;ssl=1 1339w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_1.jpg?w=1160&amp;ssl=1 1160w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_2.jpg?ssl=1\" rel=\"lightbox[3664]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_2.jpg?resize=580%2C246&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\uff11\uff11_\uff12\" width=\"580\" height=\"246\" class=\"alignnone size-large wp-image-3667\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_2.jpg?resize=580%2C246&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_2.jpg?resize=400%2C170&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_2.jpg?w=1338&amp;ssl=1 1338w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_2.jpg?w=1160&amp;ssl=1 1160w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><br \/>\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\u3000\uff12<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"\u65e5\u4ed8\u30fb\u6642\u523b\u3067\u62bd\u51fa \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample11_2_AutoFilter()\r\n    \r\n    '\u300c\u53d6\u5f97\u65e5\u6642\u300d2014\/8\/10\u30012014\/8\/11 0:05\u30012014\/8\/11 0:15 \u306e\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\r\n    Range(\"A1\").AutoFilter Field:=4, _\r\n                           Operator:=xlFilterValues, _\r\n                           Criteria2:=Array(2, \"2014\/8\/10\", _\r\n                                            4, \"2014\/8\/11 0:5:59\", _\r\n                                            4, \"2014\/8\/11 0:15:0\")\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:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_1.jpg?ssl=1\" rel=\"lightbox[3664]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_1.jpg?resize=570%2C570&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\uff11\uff11_\uff13\" width=\"570\" height=\"570\" class=\"alignnone size-full wp-image-3668\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_1.jpg?w=570&amp;ssl=1 570w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_1.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_1.jpg?resize=400%2C400&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_1.jpg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"(max-width: 570px) 100vw, 570px\" 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\/09\/autofilter11_02_2.jpg?ssl=1\" rel=\"lightbox[3664]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_2.jpg?resize=569%2C568&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\uff11\uff11_\uff14\" width=\"569\" height=\"568\" class=\"alignnone size-full wp-image-3669\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_2.jpg?w=569&amp;ssl=1 569w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_2.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_2.jpg?resize=400%2C400&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_02_2.jpg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"(max-width: 569px) 100vw, 569px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u65e5\u4ed8\u3084\u6642\u523b\u3067\u3001\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308b Excel 2007 \u304b\u3089\u65e5\u4ed8 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3715,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[546,270,63,38,269],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter11_01_1-580x2461.jpg?fit=580%2C246&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-X6","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3664"}],"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=3664"}],"version-history":[{"count":3,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3664\/revisions"}],"predecessor-version":[{"id":3714,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3664\/revisions\/3714"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3715"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}