﻿{"id":3830,"date":"2013-09-17T12:00:34","date_gmt":"2013-09-17T03:00:34","guid":{"rendered":"http:\/\/fujiitoshiki.com\/improvesociety\/?p=3830"},"modified":"2017-04-27T16:09:18","modified_gmt":"2017-04-27T07:09:18","slug":"post-3830","status":"publish","type":"post","link":"https:\/\/www.fujiitoshiki.com\/improvesociety\/?p=3830","title":{"rendered":"\u8907\u6570\u306eExcel\u30d6\u30c3\u30af\u306e\u5168\u30b7\u30fc\u30c8\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u89e3\u9664\u3059\u308b"},"content":{"rendered":"<div class=\"theContentWrap-ccc\"><p>\u3000\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30b7\u30fc\u30c8\u3092\u624b\u4f5c\u696d\u3067\u30d5\u30a3\u30eb\u30bf\u30fc\u89e3\u9664\u3059\u308b\u306e\u306f\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\uff0eVBA \u304b\u3089 GetOpenFilename \u30e1\u30bd\u30c3\u30c9\u3067\u8907\u6570\u306e\u30d6\u30c3\u30af\u3092\u6307\u5b9a\u3057\uff0c\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u304b\u3089\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u89e3\u9664\u3059\u308b\u65b9\u6cd5\u3067\u3059\uff0e<\/p>\n<pre class=\"toolbar-overlay:true lang:vb decode:true\">Option Explicit\r\n\r\nSub RemoveAutoFilter()\r\n    Dim Wb      As Workbook\r\n    Dim Sh      As Worksheet\r\n    Dim myPath  As Variant\r\n    Dim i       As Long\r\n    Application.ScreenUpdating = False\r\n    myPath = Application.GetOpenFilename(FileFilter:=\"Microsoft Excel\u30d6\u30c3\u30af,*.xls?\", MultiSelect:=True)\r\n    If TypeName(myPath) = \"Boolean\" Then Exit Sub\r\n    For i = LBound(myPath) To UBound(myPath)\r\n        Set Wb = Workbooks.Open(myPath(i))\r\n        For Each Sh In Wb.Worksheets\r\n            If Sh.AutoFilterMode Then\r\n                Sh.AutoFilterMode = False\r\n            End If\r\n        Next Sh\r\n        Wb.Save\r\n        Wb.Close\r\n    Next i\r\n    Application.ScreenUpdating = True\r\nEnd Sub\r\n<\/pre>\n<p>\u53c2\u7167\uff1a<br \/>\n<a href=\"\/\/msdn.microsoft.com\/ja-jp\/library\/office\/ff834966.aspx\" title=\"Application.GetOpenFilename \u30e1\u30bd\u30c3\u30c9 (Excel)\" target=\"_blank\">Application.GetOpenFilename \u30e1\u30bd\u30c3\u30c9 (Excel)<\/a><\/p>\n<p><iframe src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=fujiitoshiki-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=479736761X\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u3000\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30b7\u30fc\u30c8\u3092\u624b\u4f5c\u696d\u3067\u30d5\u30a3\u30eb\u30bf\u30fc\u89e3\u9664\u3059\u308b\u306e\u306f\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\uff0eVBA \u304b\u3089 GetOpenFilename \u30e1\u30bd\u30c3\u30c9\u3067\u8907\u6570\u306e\u30d6\u30c3\u30af\u3092\u6307\u5b9a\u3057\uff0c\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u304b\u3089\u30aa\u30fc\u30c8\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u89e3\u9664\u3059\u308b\u65b9\u6cd5\u3067\u3059 &hellip; <a href=\"https:\/\/www.fujiitoshiki.com\/improvesociety\/?p=3830\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u8907\u6570\u306eExcel\u30d6\u30c3\u30af\u306e\u5168\u30b7\u30fc\u30c8\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u89e3\u9664\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":6026,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-3830","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/3830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3830"}],"version-history":[{"count":9,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/3830\/revisions"}],"predecessor-version":[{"id":7757,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/3830\/revisions\/7757"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/media\/6026"}],"wp:attachment":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}