{"id":2144,"date":"2015-02-12T14:25:04","date_gmt":"2015-02-12T05:25:04","guid":{"rendered":"http:\/\/www23.atpages.jp\/~inoni\/?p=2144"},"modified":"2021-03-03T12:41:31","modified_gmt":"2021-03-03T03:41:31","slug":"excelvba%e8%a6%9a%e6%9b%b8-%e5%90%8d%e5%89%8d%e5%ae%9a%e7%be%a9%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/anada.cloudfree.jp\/?p=2144","title":{"rendered":"ExcelVBA\u899a\u66f8 \u540d\u524d\u5b9a\u7fa9\u3092\u524a\u9664\u3059\u308b"},"content":{"rendered":"<p>Excel\u3067\u6570\u5f0f\u3084\u30de\u30af\u30ed\u3092\u4f7f\u3046\u3068\u304d\u4fbf\u5229\u3060\u304b\u3089\u3068\u540d\u524d\u3092\u5b9a\u7fa9\u3059\u308b\u4eba\u304c\u3044\u308b\u304c\u3001\u672c\u5f53\u306b\u3084\u3081\u3066\u307b\u3057\u3044\u300c\u60aa\u7fd2\u300d\u3060\u3068\u79c1\u306f\u601d\u3046\u3002<br \/>\n\u306a\u305c\u304b\u3063\u3066\u3001\u30b7\u30fc\u30c8\u306e\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3073\u306b\u30b0\u30c1\u30b0\u30c1\u540d\u524d\u91cd\u8907\u3057\u3066\u3082\u3044\u3044\u304b\u805e\u3044\u3066\u304d\u3066\u3001\u300c\u3082\u3046\u597d\u304d\u306b\u3057\u308d\u3088\uff01\u300d\u3063\u3066\u601d\u3063\u3066\u3082\u3001\u305a\u3045\uff5e\u3063\u3068\u3059\u3079\u3066\u306e\u540d\u524d\u306b\u3064\u3044\u3066\u805e\u3044\u3066\u304f\u308b\u306e\u304c\u3001\u307e\u3041\u6027\u8cea\u306e\u60aa\u3044\u3053\u3068\u3001\u60aa\u3044\u3053\u3068\uff01<\/p>\n<p>\u305d\u3046\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u3044\u308c\u3070\u3001\u7c21\u5358\u306b\u540d\u524d\u5b9a\u7fa9\u306f\u4f7f\u308f\u306a\u3044\u3068\u601d\u3046\u306e\u3060\u304c\u3001\u307e\u3041\u4f7f\u3063\u3066\u307e\u3059\u306a\u30fb\u30fb\u30fb<br \/>\n\u3067\u3001\u524a\u9664\u3057\u3061\u3083\u3048\uff01<\/p>\n<p>\u203b 2021\/03\/03 \u30d6\u30c3\u30af\u5185\u306e\u540d\u524d\u5b9a\u7fa9\u3092\u524a\u9664\u3055\u305b\u308b\u30ed\u30b8\u30c3\u30af\u8ffd\u52a0<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n\r\nSub DeleteNamesExcludePrintX()\r\n    \r\n    Dim ws As Worksheet\r\n    Dim nm As Name\r\n\r\n    ' \u30b7\u30fc\u30c8\u5185\u306e\u5b9a\u7fa9(Print\u304b\u3089\u59cb\u307e\u308b\u540d\u524d\u5b9a\u7fa9\u306f\u5370\u5237\u8a2d\u5b9a\u306a\u306e\u3067\u9664\u5916)\r\n    For Each ws In ThisWorkbook.Worksheets\r\n        For Each nm In ws.Names\r\n            Debug.Print nm.NameLocal &amp; &quot;: &quot; &amp; nm.Name\r\n            If nm.Name Like &quot;*Print_*&quot; Then\r\n            \r\n            Else\r\n                nm.Delete\r\n            End If\r\n        Next\r\n    Next\r\n    \r\n    ' \u30d6\u30c3\u30af\u5185\u306e\u5b9a\u7fa9\r\n    For Each nm In ThisWorkbook.Names\r\n            Debug.Print &quot;** &quot; &amp; nm.NameLocal &amp; &quot;: &quot; &amp; nm.Name\r\n            nm.Delete\r\n    Next\r\n\r\nEnd Sub\r\n\r\n\r\n<\/pre>\n<p>\u524a\u9664\u3059\u308b\u306e\u306f\u3044\u3044\u3093\u3060\u3051\u3069\u3001\u5370\u5237\u8a2d\u5b9a\u307e\u3067\u6d88\u3059\u3068\u307e\u305a\u3044\u306e\u3067\u3001\u300cPrint_\u300d\u304b\u3089\u59cb\u307e\u308b\u540d\u524d\u306f\u6d88\u3055\u306a\u3044\u3067\u304a\u304f\u3002<br \/>\n\uff08\u5370\u5237\u7bc4\u56f2\u3068\u5370\u5237\u30bf\u30a4\u30c8\u30eb\u304c\u8a72\u5f53\u3059\u308b\uff09<\/p>\n<p>\u305f\u3060\u3057\u3001\u30de\u30af\u30ed\u3068\u304b\u6570\u5f0f\u3068\u304b\u3067\u4f7f\u3063\u3066\u305f\u3089\u30a8\u30e9\u30a4\u30b3\u30c8\u306b\u306a\u308b\u306e\u3067\u3054\u6ce8\u610f\u3092\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u3067\u6570\u5f0f\u3084\u30de\u30af\u30ed\u3092\u4f7f\u3046\u3068\u304d\u4fbf\u5229\u3060\u304b\u3089\u3068\u540d\u524d\u3092\u5b9a\u7fa9\u3059\u308b\u4eba\u304c\u3044\u308b\u304c\u3001\u672c\u5f53\u306b\u3084\u3081\u3066\u307b\u3057\u3044\u300c\u60aa\u7fd2\u300d\u3060\u3068\u79c1\u306f\u601d\u3046\u3002 \u306a\u305c\u304b\u3063\u3066\u3001\u30b7\u30fc\u30c8\u306e\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3073\u306b\u30b0\u30c1\u30b0\u30c1\u540d\u524d\u91cd\u8907\u3057\u3066\u3082\u3044\u3044\u304b\u805e\u3044\u3066\u304d\u3066\u3001\u300c\u3082\u3046\u597d\u304d\u306b\u3057\u308d\u3088\uff01\u300d\u3063\u3066\u601d\u3063 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[43,74],"class_list":["post-2144","post","type-post","status-publish","format-standard","hentry","category-excelvba","tag-excel","tag-vba"],"_links":{"self":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/2144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2144"}],"version-history":[{"count":3,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/2144\/revisions"}],"predecessor-version":[{"id":3012,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/2144\/revisions\/3012"}],"wp:attachment":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}