{"id":3577,"date":"2015-09-11T10:27:24","date_gmt":"2015-09-11T01:27:24","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3577"},"modified":"2015-09-11T10:27:24","modified_gmt":"2015-09-11T01:27:24","slug":"rangeautofilter7","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/rangeautofilter7\/","title":{"rendered":"\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\uff08\u8272\u3067\u62bd\u51fa\u3059\u308b\uff09AutoFilter \u30e1\u30bd\u30c3\u30c9"},"content":{"rendered":"<h2>\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\uff08\u8272\u3067\u62bd\u51fa\u3059\u308b\uff09<\/h2>\n<div class=\"m30-l\">\n<p>\u30d5\u30a9\u30f3\u30c8\u306e\u8272\u3001\u30bb\u30eb\u306e\u80cc\u666f\u8272\uff08\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u306b\u3088\u308b\u8a2d\u5b9a\u3092\u542b\u3080\uff09\u306b\u3088\u3063\u3066\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<strong>AutoFilter \u30e1\u30bd\u30c3\u30c9<\/strong> \u306e\u5f15\u6570 <em>criteria1<\/em> \u306b\u8272\u3092\u8868\u3059\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u901a\u5e38\u3001<strong>RGB \u95a2\u6570<\/strong> \u3067\u6307\u5b9a\u3057\u307e\u3059\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> ] )<\/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;\u80cc\u666f\u8272\u306e\u8272\u307e\u305f\u306f\u30d5\u30a9\u30f3\u30c8\u306e\u8272\u3092\u8868\u3059RGB \u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"300\" bgcolor=\"#ffffccc\"><strong>\u6307\u5b9a\u4f8b<\/strong><\/td>\n<td align = \"center\" width=\"350\" bgcolor=\"#ffffccc\"><strong>\u8aac\u660e<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"300\">rgbAzure<br \/>16777200<\/td>\n<td width=\"350\"><strong>RGB \u5024<\/strong>\u3092\u8868\u3059\u5b9a\u6570\u3084\u305d\u306e\u5024\u3092\u76f4\u63a5\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td width=\"300\">RGB(144, 176, 217)<\/td>\n<td width=\"350\"><strong>RGB \u95a2\u6570<\/strong>\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td width=\"300\">ThisWorkbook.Colors(3)<\/td>\n<td width=\"350\"><strong>\u30ab\u30e9\u30fc\u30d1\u30ec\u30c3\u30c8<\/strong>\uff083\u756a\uff09\u306e\u8272\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td width=\"300\">ThisWorkbook.Theme _<br \/>\n\t       .ThemeColorScheme _<br \/>\n\t       .Colors(msoThemeAccent2)<\/td>\n<td width=\"350\"><strong>\u30c6\u30fc\u30de\u30ab\u30e9\u30fc<\/strong>\uff08msoThemeAccent2\uff09\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>operator&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30bb\u30eb\u306e\u80cc\u666f\u8272\u3067\u62bd\u51fa\u3059\u308b\u5834\u5408\u306f\u3001<strong>xlFilterCellColor<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30d5\u30a9\u30f3\u30c8\u306e\u8272\u3067\u62bd\u51fa\u3059\u308b\u5834\u5408\u306f\u3001<strong>xlFilterFontColor<\/strong> \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<\/div>\n<br \/><br \/>\n<h2>\u30bb\u30eb\u306e\u8272 \uff0f \u30d5\u30a9\u30f3\u30c8\u306e\u8272 \u3067\u62bd\u51fa\u3000\u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u5b9f\u884c\u524d<\/h3>\n<p>C\u5217\u306f\u3001\u30bb\u30eb\u306b\u80cc\u666f\u8272\u3092\u6307\u5b9a\u3001I\u5217\u3001J\u5217\u306f\u3001\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u3067\u80cc\u666f\u8272\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nD\u5217\u304b\u3089H\u5217\u306b\u306f\u3001\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u5217\u3067\u3001\u4e0b\u4f4d5\u4f4d\u307e\u3067\u306e\u30d5\u30a9\u30f3\u30c8\u306e\u8272\u3092\u8d64\u306b\u3059\u308b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_00.jpg?ssl=1\" rel=\"lightbox[3577]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_00.jpg?resize=580%2C365&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u8272\u3067\u62bd\u51fa \u5b9f\u884c\u524d\" width=\"580\" height=\"365\" class=\"alignnone size-large wp-image-3583\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_00.jpg?resize=580%2C365&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_00.jpg?resize=400%2C251&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_00.jpg?w=902&amp;ssl=1 902w\" 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\uff11<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"\u30bb\u30eb\u306e\u8272\u3067\u62bd\u51fa\uff08RGB \u5024\u3092\u6307\u5b9a\uff09\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample07_1_AutoFilter()\r\n\r\n    Range(\"B3\").AutoFilter Field:=8, _\r\n                           criteria1:=16512240, _\r\n                           Operator:=xlFilterCellColor\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_01.jpg?ssl=1\" rel=\"lightbox[3577]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_01.jpg?resize=580%2C365&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u8272\u3067\u62bd\u51fa \u7d50\u679c\uff11\" width=\"580\" height=\"365\" class=\"alignnone size-large wp-image-3584\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_01.jpg?resize=580%2C365&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_01.jpg?resize=400%2C252&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_01.jpg?w=904&amp;ssl=1 904w\" 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=\"\u30bb\u30eb\u306e\u8272\u3067\u62bd\u51fa\uff08RGB \u95a2\u6570\u3067\u6307\u5b9a\uff09\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample07_2_AutoFilter()\r\n\r\n    Range(\"B3\").AutoFilter Field:=8, _\r\n                           criteria1:=RGB(144, 176, 217), _\r\n                           Operator:=xlFilterCellColor\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_02.jpg?ssl=1\" rel=\"lightbox[3577]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_02.jpg?resize=580%2C364&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u8272\u3067\u62bd\u51fa \u7d50\u679c\uff12\" width=\"580\" height=\"364\" class=\"alignnone size-large wp-image-3585\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_02.jpg?resize=580%2C364&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_02.jpg?resize=400%2C251&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_02.jpg?w=904&amp;ssl=1 904w\" 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\uff13<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"\u30bb\u30eb\u306e\u8272\u3067\u62bd\u51fa\uff08\u30c6\u30fc\u30de\u30ab\u30e9\u30fc\u306e RGB \u5024\u3092\u6307\u5b9a\uff09\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample07_3_AutoFilter()\r\n\r\n    Range(\"B3\").AutoFilter Field:=2, _\r\n                           criteria1:=ThisWorkbook.Theme. _\r\n                           ThemeColorScheme.Colors(msoThemeAccent2), _\r\n                           Operator:=xlFilterCellColor\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_03.jpg?ssl=1\" rel=\"lightbox[3577]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_03.jpg?resize=580%2C363&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u8272\u3067\u62bd\u51fa \u7d50\u679c\uff13\" width=\"580\" height=\"363\" class=\"alignnone size-large wp-image-3586\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_03.jpg?resize=580%2C363&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_03.jpg?resize=400%2C250&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_03.jpg?w=902&amp;ssl=1 902w\" 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\uff14<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"\u30d5\u30a9\u30f3\u30c8\u306e\u8272\u3067\u62bd\u51fa\uff08\u30d1\u30ec\u30c3\u30c8\u306e RGB \u5024\u3092\u6307\u5b9a\uff09\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample07_4_AutoFilter()\r\n\r\n    Range(\"B3\").AutoFilter Field:=Array(3, 5), _\r\n                           criteria1:=ThisWorkbook.Colors(3), _\r\n                           Operator:=xlFilterFontColor\r\n                           \r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_04.jpg?ssl=1\" rel=\"lightbox[3577]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_04.jpg?resize=580%2C364&#038;ssl=1\" alt=\"AutoFilter \u30e1\u30bd\u30c3\u30c9 \u8272\u3067\u62bd\u51fa \u7d50\u679c\uff14\" width=\"580\" height=\"364\" class=\"alignnone size-large wp-image-3587\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_04.jpg?resize=580%2C364&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_04.jpg?resize=400%2C251&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_04.jpg?w=902&amp;ssl=1 902w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\uff08\u8272\u3067\u62bd\u51fa\u3059\u308b\uff09 \u30d5\u30a9\u30f3\u30c8\u306e\u8272\u3001\u30bb\u30eb\u306e\u80cc\u666f\u8272\uff08\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u306b\u3088\u308b\u8a2d &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3676,"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,551,552,38,269],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/autofilter07_00-580x3651.jpg?fit=580%2C365&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-VH","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3577"}],"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=3577"}],"version-history":[{"count":14,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3577\/revisions"}],"predecessor-version":[{"id":3675,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3577\/revisions\/3675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3676"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}