{"id":3513,"date":"2015-09-08T08:40:19","date_gmt":"2015-09-07T23:40:19","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3513"},"modified":"2015-09-08T08:41:58","modified_gmt":"2015-09-07T23:41:58","slug":"rangeautofilter3","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/rangeautofilter3\/","title":{"rendered":"\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\uff08\u62bd\u51fa\u6761\u4ef6\u3067\u4f7f\u7528\u3067\u304d\u308b\u6f14\u7b97\u5b50\u30fb\u8a18\u53f7\uff09AutoFilter \u30e1\u30bd\u30c3\u30c9"},"content":{"rendered":"<h2>AutoFilter \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\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> ] )<\/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\u3068\u306a\u308b\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\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<br \/>\n<h3>\u62bd\u51fa\u6761\u4ef6\u3067\u4f7f\u7528\u3067\u304d\u308b\u6f14\u7b97\u5b50\u30fb\u8a18\u53f7<\/h3>\n<div class=\"m30-l\">\n<table>\n<tr>\n<td align = \"center\" width=\"100\" bgcolor=\"#ffffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"550\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">=<\/td>\n<td width=\"550\">criteria1 := <strong>&#8220;=100&#8221;<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08100 \u3068\u7b49\u3057\u3044\u5024\u3092\u62bd\u51fa\uff09<br \/><strong>&#8220;=&#8221;<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068<strong>\u7a7a\u767d\u30bb\u30eb\u3092\u62bd\u51fa\u3057\u307e\u3059<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">&lt;&gt;<\/td>\n<td width=\"550\">criteria1 := <strong>&#8220;&lt;&gt;\u5c71&#8221;<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08\u300c\u5c71\u300d\u3092\u542b\u307e\u306a\u3044\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\uff09<br \/><strong>&#8220;&lt;&gt;&#8221;<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068<strong>\u7a7a\u767d\u30bb\u30eb\u4ee5\u5916\u3092\u62bd\u51fa\u3057\u307e\u3059<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">&lt;<\/td>\n<td width=\"550\">criteria1 := <strong>&#8220;&lt;100&#8221;<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08100 \u3088\u308a\u5c0f\u3055\u3044\u5024\u3092\u62bd\u51fa\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">&lt;=<\/td>\n<td width=\"550\">criteria1 := <strong>&#8220;&lt;=100&#8221;<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08100 \u4ee5\u4e0b\u306e\u5024\u3092\u62bd\u51fa\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">&gt;<\/td>\n<td width=\"550\">criteria1 := <strong>&#8220;&gt;100&#8221;<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08100 \u3088\u308a\u5927\u304d\u3044\u5024\u3092\u62bd\u51fa\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">&gt;=<\/td>\n<td width=\"550\">criteria1 := <strong>&#8220;&gt;=100&#8221;<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08100 \u4ee5\u4e0a\u306e\u5024\u3092\u62bd\u51fa\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">*<\/td>\n<td width=\"550\">\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u8868\u3057\u307e\u3059<br \/>criteria1 := <strong>&#8220;*\u5c71*<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08\u5c71\u3092\u542b\u3080\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\uff09<br \/><strong>&#8220;\u5c71*&#8221;<\/strong>\u300c\u5c71\u3067\u306f\u3058\u307e\u308b\u30ec\u30b3\u30fc\u30c9\u300d\u3001<strong>&#8220;*\u5c71&#8221;<\/strong>\u300c\u5c71\u3067\u7d42\u308f\u308b\u30ec\u30b3\u30fc\u30c9\u300d<\/td>\n<\/tr>\n<tr>\n<td width=\"100\" align = \"center\">?<\/td>\n<td width=\"550\">\u4efb\u610f\u306e\uff11\u6587\u5b57\u3092\u8868\u3057\u307e\u3059<br \/>criteria1 := <strong>&#8220;??\u5c71&#8221;<\/strong> \u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\uff08\u5c71\u3067\u7d42\u308f\u308b\uff13\u6587\u5b57\u306e\u6587\u5b57\u5217\uff09<\/td>\n<\/tr>\n<\/table>\n<br \/><br \/>\n<p class=\"caution4\"><span class=\"red\"><strong>*<\/strong> \u3084 <strong>?<\/strong> \u306f\u3001\u6570\u5024\u306e\u30bb\u30eb\u3067\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/span><br \/>\n      \u4e0b\u8a18\u3001\u6210\u7e3e\u8868\uff08AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\uff09\u306e\u300c\u767b\u9332\u756a\u53f7\u300d\u5217\u306b\u306f\u3001\u6570\u5024\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5217\u3092\u5bfe\u8c61\u306b\u3001\u672b\u5c3e\u304c 1 \u306e\u6570\u5024\u3092\u62bd\u51fa\u3059\u308b\u305f\u3081\u306b<br \/>\n      \u3000\u3000<strong>criteria1 := &#8220;*1&#8221;<\/strong><br \/>\n      \u3092\u6307\u5b9a\u3057\u3066\u3082\u4f55\u3082\u62bd\u51fa\u3055\u308c\u307e\u305b\u3093\u3002<br \/>\n      \u3000\u3000<strong>criteria1 := &#8220;???1&#8221;<\/strong><br \/>\n      \u306e\u5834\u5408\u3082\u540c\u69d8\u306b\u4f55\u3082\u62bd\u51fa\u3055\u308c\u307e\u305b\u3093\u3002<br \/>\n      \uff08\u203b \u305f\u3060\u3057\u3001\u6570\u5024\u306e\u5148\u982d\u306b <strong>&#8216;\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09<\/strong>\u3092\u4ed8\u3051\u3066\u6587\u5b57\u5217\u3068\u3057\u3066\u8a8d\u8b58\u3055\u305b\u308b\u3068\u3001\u62bd\u51fa\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\uff09\n    <\/p>\n<p class=\"caution4\"><span class=\"red\"><strong>*<\/strong> \u3084 <strong>?<\/strong> \u305d\u306e\u3082\u306e\u3092\u62bd\u51fa\u3059\u308b\u306b\u306f\u3001<strong>*<\/strong> \u3084 <strong>?<\/strong>\u306e\u524d\u306b\u3001<strong>~\uff08\u30c1\u30eb\u30c0\uff09<\/strong>\u3092\u4ed8\u3051\u307e\u3059\u3002<\/span><br \/>\n      \u3000\u3000<strong>criteria1 := &#8220;~*&#8221;<\/strong><br \/>\n      \u3000\u3000<strong>criteria1 := &#8220;~?&#8221;<\/strong>\n    <\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>AutoFilter \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=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample03_AutoFilter()\r\n\r\n    With Range(\"B3\")\r\n    \r\n        '\u300c\u6c0f\u540d\u300d\u300c\u5ddd\u300d\u3067\u59cb\u307e\u308b4\u6587\u5b57\u306e\u30ec\u30b3\u30fc\u30c9\u307e\u305f\u306f\r\n        '\u300c\u6c0f\u540d\u300d\u300c\u7530\u300d\u3092\u542b\u3080\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\r\n        .AutoFilter Field:=2, _\r\n                    Criteria1:=\"\u5ddd???\", _\r\n                    Criteria2:=\"*\u7530*\", _\r\n                    Operator:=xlOr\r\n        \r\n        '\u300c\u56fd\u8a9e\u300d\u300c\u6570\u5b66\u300d\u300c\u82f1\u8a9e\u300d\u304c\u3044\u305a\u308c\u308280\u70b9\u4ee5\u4e0a\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\r\n        .AutoFilter Field:=Array(5, 6, 7), _\r\n                    Criteria1:=\">=80\"\r\n                            \r\n        '\u5168\u6559\u79d1\u306e\u5e73\u5747\u304c50\u70b9\u4ee5\u4e0a\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\r\n        .AutoFilter Field:=9, _\r\n                    Criteria1:=\">50\"\r\n                    \r\n    End With\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\/autofilter03_01.jpg?ssl=1\" rel=\"lightbox[3513]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_01.jpg?resize=580%2C356&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\uff13_1\" width=\"580\" height=\"356\" class=\"alignnone size-large wp-image-3520\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_01.jpg?resize=580%2C356&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_01.jpg?resize=400%2C245&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_01.jpg?w=898&amp;ssl=1 898w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_02.jpg?ssl=1\" rel=\"lightbox[3513]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_02.jpg?resize=580%2C356&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\uff13_2\" width=\"580\" height=\"356\" class=\"alignnone size-large wp-image-3521\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_02.jpg?resize=580%2C356&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_02.jpg?resize=400%2C245&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_02.jpg?w=898&amp;ssl=1 898w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>AutoFilter \u30e1\u30bd\u30c3\u30c9 \u3010\u66f8\u5f0f\u3011 object.AutoFilter ( &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3603,"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:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter03_01-580x3561.jpg?fit=580%2C356&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-UF","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3513"}],"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=3513"}],"version-history":[{"count":11,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3513\/revisions"}],"predecessor-version":[{"id":3604,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3513\/revisions\/3604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3603"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}