{"id":29,"date":"2010-03-27T20:35:42","date_gmt":"2010-03-27T11:35:42","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=26"},"modified":"2011-03-02T23:27:22","modified_gmt":"2011-03-02T14:27:22","slug":"%e3%82%a8%e3%82%af%e3%82%bb%e3%83%ab%ef%bc%88%e6%a4%9c%e7%b4%a2%e7%b5%90%e6%9e%9c%e3%82%92%e3%82%b7%e3%83%bc%e3%83%88%e3%81%ab%e6%9b%b8%e3%81%8d%e5%87%ba%e3%81%97%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=29","title":{"rendered":"\u30a8\u30af\u30bb\u30eb\uff08\u691c\u7d22\u7d50\u679c\u3092\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u51fa\u3057\u3059\u308b\u65b9\u6cd5\uff09"},"content":{"rendered":"<p>\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304b\u3089\u30b3\u30d4\u30fchttp:\/\/questionbox.jp.msn.com\/qa3555630.html<br \/>\n\u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u3092ALT\uff0bF11\u3067VBE\u753b\u9762\u3092\u958b\u304d\u3001\u5de6\u4e0a\u306eVBA  Project\u3067\u30b7\u30fc\u30c8\u540d\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u300c\u633f\u5165\u300d\u2192\u300c\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u300d\u3067\u8868\u793a\u3055\u308c\u308b\u753b\u9762\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u4e0b\u3055\u3044\u3002\u30de\u30af\u30ed\u306e\u5b9f\u884c\u306f\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u753b\u9762\u306b\u623b\u3063\u3066 ALT\uff0bF8\u3067\u30de\u30af\u30ed\u4e00\u89a7\u3092\u958b\u304d\u3001\u30de\u30af\u30ed\u540d\u3092\u9078\u629e\u3057\u3066\u300c\u5b9f\u884c\u300d\u30dc\u30bf\u30f3\u3067\u3059\u3002<\/p>\n<p>\u52c9\u5f37\u306b\u306a\u308a\u307e\u305b\u3093\u306e\u3067\u89e3\u8aac\u3084\u518d\u4fee\u6b63\u306f\u3057\u307e\u305b\u3093\u3002\u3082\u3057\u4fee\u6b63\u304c\u5fc5\u8981\u306a\u3089\u3054\u81ea\u8eab\u3067\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>Sub Macro1()<br \/>\nDim ret<br \/>\nDim r As Range<br \/>\nDim adr As String<br \/>\nDim cnt As Long<br \/>\nDim psw As Boolean<br \/>\nDim mySht, adSht, ws As Worksheet<br \/>\nSet mySht = ActiveSheet<br \/>\nret = Application.InputBox(&#8220;\u691c\u7d22\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044&#8221;)<br \/>\nIf TypeName(ret) &lt;&gt; &#8220;Boolean&#8221; Then<br \/>\nWith mySht.Cells<br \/>\nSet r = .Find(ret, LookIn:=xlValues, lookat:=xlPart)<br \/>\nIf Not r Is Nothing Then<br \/>\nadr = r.Address<br \/>\ncnt = 1<br \/>\nFor Each ws In Worksheets<br \/>\nIf ws.Name = &#8220;\u691c\u7d22\u7d50\u679c&#8221; &amp; ret Then<br \/>\npsw = True<br \/>\nExit For<br \/>\nEnd If<br \/>\nNext ws<br \/>\nIf psw Then<br \/>\nSet adSht = ws<br \/>\nadSht.Cells.ClearContents<br \/>\nElse<br \/>\nSet adSht = Worksheets.Add<br \/>\nadSht.Name = &#8220;\u691c\u7d22\u7d50\u679c&#8221; &amp; ret<br \/>\nEnd If<br \/>\nadSht.Cells(cnt, 1).Value = r.Value<br \/>\nadSht.Cells(cnt, 2).Value = adr<br \/>\nDo<br \/>\nSet r = .FindNext(r)<br \/>\nIf r.Address = adr Then<br \/>\nExit Do<br \/>\nElse<br \/>\ncnt = cnt + 1<br \/>\nadSht.Cells(cnt, 1).Value = r.Value<br \/>\nadSht.Cells(cnt, 2).Value = r.Address<br \/>\nEnd If<br \/>\nLoop<br \/>\nEnd If<br \/>\nEnd With<br \/>\nEnd If<br \/>\nmySht.Activate<br \/>\nEnd Sub<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304b\u3089\u30b3\u30d4\u30fchttp:\/\/questionbox.jp.msn.com\/qa3555630.html \u4ee5\u4e0b\u306e\u30de\u30af\u30ed\u3092ALT\uff0bF11\u3067VBE\u753b\u9762\u3092\u958b\u304d\u3001\u5de6\u4e0a\u306eVBA Project\u3067\u30b7\u30fc\u30c8\u540d\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u300c\u633f\u5165\u300d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-57"],"_links":{"self":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":2,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}