{"id":10284,"date":"2025-03-16T11:45:31","date_gmt":"2025-03-16T02:45:31","guid":{"rendered":"https:\/\/extan.jp\/?p=10284"},"modified":"2025-03-16T12:38:11","modified_gmt":"2025-03-16T03:38:11","slug":"%e3%80%90excel-vba%e3%80%91findnext%e3%81%a7%e6%a4%9c%e7%b4%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%ef%bc%81%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6%e3%81%ae%e4%bb%96%e9%83%a8%e5%88%86%e4%b8%80%e8%87%b4","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=10284","title":{"rendered":"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01"},"content":{"rendered":"<p data-pm-slice=\"1 1 []\">Excel VBA \u3092\u4f7f\u3063\u3066\u30bb\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>\u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\n<ul data-spread=\"false\">\n<li><code>Find<\/code> \u30e1\u30bd\u30c3\u30c9\u3067\u6700\u521d\u306e\u4e00\u81f4\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u3059\u3079\u3066\u306e\u4e00\u81f4\u3092\u53d6\u5f97\u3057\u305f\u3044<\/li>\n<li>\u8907\u6570\u306e\u6761\u4ef6\u3067\u691c\u7d22\u3092\u3057\u305f\u3044<\/li>\n<li>\u90e8\u5206\u4e00\u81f4\u3084\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u691c\u7d22\u3092\u3057\u305f\u3044<\/li>\n<\/ul>\n<\/div>\n<p>\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b<\/p>\n<div class=\"rdinfo\">\n<ul data-spread=\"false\">\n<li><code>FindNext<\/code> \u3092\u4f7f\u3063\u305f\u7e70\u308a\u8fd4\u3057\u691c\u7d22\u306e\u65b9\u6cd5<\/li>\n<li>\u8907\u6570\u6761\u4ef6\u3067\u306e\u691c\u7d22<\/li>\n<li>\u90e8\u5206\u4e00\u81f4\u30fb\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u691c\u7d22<\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_66_1 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\">\u3082\u304f\u3058<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=10284\/#FindNext%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2%E3%81%AE%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\" title=\"FindNext\u3092\u4f7f\u3063\u305f\u691c\u7d22\u306e\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8\">FindNext\u3092\u4f7f\u3063\u305f\u691c\u7d22\u306e\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=10284\/#FindNext_%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2%E3%81%AE%E5%9F%BA%E6%9C%AC\" title=\"FindNext \u3092\u4f7f\u3063\u305f\u691c\u7d22\u306e\u57fa\u672c\">FindNext \u3092\u4f7f\u3063\u305f\u691c\u7d22\u306e\u57fa\u672c<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=10284\/#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AAFindNext%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9\" title=\"\u57fa\u672c\u7684\u306aFindNext\u306e\u4f7f\u3044\u65b9\">\u57fa\u672c\u7684\u306aFindNext\u306e\u4f7f\u3044\u65b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=10284\/#%E8%A4%87%E6%95%B0%E3%81%AE%E6%A4%9C%E7%B4%A2%E6%9D%A1%E4%BB%B6%E3%82%92%E4%BD%BF%E3%81%86%EF%BC%88OR%E6%9D%A1%E4%BB%B6%EF%BC%89\" title=\"\u8907\u6570\u306e\u691c\u7d22\u6761\u4ef6\u3092\u4f7f\u3046\uff08OR\u6761\u4ef6\uff09\">\u8907\u6570\u306e\u691c\u7d22\u6761\u4ef6\u3092\u4f7f\u3046\uff08OR\u6761\u4ef6\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=10284\/#%E9%83%A8%E5%88%86%E4%B8%80%E8%87%B4%E3%81%A8%E3%83%AF%E3%82%A4%E3%83%AB%E3%83%89%E3%82%AB%E3%83%BC%E3%83%89%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2\" title=\"\u90e8\u5206\u4e00\u81f4\u3068\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u691c\u7d22\">\u90e8\u5206\u4e00\u81f4\u3068\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u691c\u7d22<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=10284\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" title=\"\u3055\u3044\u3054\u306b\">\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"FindNext%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2%E3%81%AE%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\"><\/span>FindNext\u3092\u4f7f\u3063\u305f\u691c\u7d22\u306e\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>VBA \u306e <code>Find<\/code> \u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30b7\u30fc\u30c8\u5185\u306e\u7279\u5b9a\u306e\u5024\u3092\u691c\u7d22\u3059\u308b\u306e\u306b\u4fbf\u5229\u3067\u3059\u304c\u3001\u6700\u521d\u306b\u898b\u3064\u304b\u3063\u305f\u5024\u3057\u304b\u53d6\u5f97\u3057\u307e\u305b\u3093\u3002<\/p>\n<p><code>FindNext<\/code> \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u691c\u7d22\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<br \/>\n<div class=\"c_box intitle pink_box\"><div class=\"box_title\"><span>POINT<\/span><\/div>\n<ul data-spread=\"false\">\n<li>\u6307\u5b9a\u3057\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u542b\u3080\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u691c\u7d22<\/li>\n<li>2\u3064\u306e\u7570\u306a\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u691c\u7d22<\/li>\n<li>\u300c\u25cb\u25cb\u300d\u3092\u542b\u3080\u30bb\u30eb\u3092\u691c\u7d22\u3057\u3001\u80cc\u666f\u8272\u3092\u5909\u66f4<\/li>\n<\/ul>\n<\/div>\n\u306a\u3069\u306e\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FindNext_%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2%E3%81%AE%E5%9F%BA%E6%9C%AC\"><\/span>FindNext \u3092\u4f7f\u3063\u305f\u691c\u7d22\u306e\u57fa\u672c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AAFindNext%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9\"><\/span><strong>\u57fa\u672c\u7684\u306aFindNext\u306e\u4f7f\u3044\u65b9<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>\u30b3\u30fc\u30c9<\/strong><\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Option Explicit\nSub \u57fa\u672c\u7684\u306aFindNext()\n    Dim rng As Range, firstAddress As String\n    Set rng = Worksheets(&quot;Sheet1&quot;).Cells.Find(What:=&quot;\uff1c\u691c\u7d22\u6587\u5b57\u5217\uff1e&quot;, LookAt:=xlWhole)\n    \n    If Not rng Is Nothing Then\n        firstAddress = rng.Address\n        Do\n            &#039; \u691c\u7d22\u3057\u305f\u30bb\u30eb\u306e\u51e6\u7406\uff08\u4f8b\uff1a\u80cc\u666f\u8272\u3092\u9ec4\u8272\u306b\u5909\u66f4\uff09\n            rng.Interior.Color = RGB(255, 255, 0)\n            \n            &#039; \u6b21\u306e\u691c\u7d22\u7d50\u679c\u3092\u53d6\u5f97\n            Set rng = Worksheets(&quot;Sheet1&quot;).Cells.FindNext(rng)\n        Loop While Not rng Is Nothing And rng.Address &lt;&gt; firstAddress\n    End If\nEnd Sub\n<\/code><\/pre>\n<p><strong>\u89e3\u8aac<\/strong><\/p>\n<ul data-spread=\"false\">\n<li><code>Find<\/code> \u3067\u6700\u521d\u306e\u4e00\u81f4\u3092\u691c\u7d22<\/li>\n<li><code>FindNext<\/code> \u3092\u4f7f\u3063\u3066\u6b21\u306e\u4e00\u81f4\u3092\u53d6\u5f97\u3057\u306a\u304c\u3089\u30eb\u30fc\u30d7<\/li>\n<li><code>firstAddress<\/code> \u3092\u4fdd\u5b58\u3057\u3001\u6700\u521d\u306b\u623b\u3063\u305f\u3089\u7d42\u4e86<\/li>\n<li><code>LookAt:=xlWhole<\/code>\u306f\u5b8c\u5168\u4e00\u81f4\u3092\u610f\u5473\u3059\u308b\u3002\u90e8\u5206\u4e00\u81f4\u306b\u3057\u305f\u3044\u5834\u5408xlPart\u306b\u3059\u308b<\/li>\n<\/ul>\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u3001\u30b7\u30fc\u30c8\u5185\u306e\u3059\u3079\u3066\u306e\u4e00\u81f4\u3059\u308b\u30bb\u30eb\u3092\u691c\u7d22\u3057\u3001\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u300c\u307f\u304b\u3093\u300d\u3092\u542b\u3080\u30bb\u30eb\u306e\u80cc\u666f\u3092\u9ec4\u8272\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Option Explicit\nSub \u57fa\u672c\u7684\u306aFindNext()\n    Dim rng As Range, firstAddress As String\n    Set rng = Worksheets(&quot;Sheet1&quot;).Cells.Find(What:=&quot;\u307f\u304b\u3093&quot;, LookAt:=xlWhole)\n    \n    If Not rng Is Nothing Then\n        firstAddress = rng.Address\n        Do\n            &#039; \u691c\u7d22\u3057\u305f\u30bb\u30eb\u306e\u51e6\u7406\uff08\u4f8b\uff1a\u8272\u3092\u5909\u66f4\uff09\n            rng.Interior.Color = RGB(255, 255, 0)\n            \n            &#039; \u6b21\u306e\u691c\u7d22\u7d50\u679c\u3092\u53d6\u5f97\n            Set rng = Worksheets(&quot;Sheet1&quot;).Cells.FindNext(rng)\n        Loop While Not rng Is Nothing And rng.Address &lt;&gt; firstAddress\n    End If\nEnd Sub<\/code><\/pre>\n<p>\u307f\u304b\u3093\u3092\u542b\u3080\u6587\u5b57\u5217\u3092\u30bb\u30eb\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14308\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_001_2.png\" alt=\"\" width=\"338\" height=\"306\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_001_2.png 338w, https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_001_2-300x272.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/>\n<p>VBA\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14312\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_005_2.png\" alt=\"\" width=\"339\" height=\"324\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_005_2.png 339w, https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_005_2-300x287.png 300w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/>\n<p>\u306f\u3044\u3001\u307f\u304b\u3093\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u30bb\u30eb\u306e\u80cc\u666f\u8272\u304c\u9ec4\u8272\u306b\u304b\u308f\u308a\u307e\u3057\u305f\u306d\uff01<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A4%87%E6%95%B0%E3%81%AE%E6%A4%9C%E7%B4%A2%E6%9D%A1%E4%BB%B6%E3%82%92%E4%BD%BF%E3%81%86%EF%BC%88OR%E6%9D%A1%E4%BB%B6%EF%BC%89\"><\/span><strong>\u8907\u6570\u306e\u691c\u7d22\u6761\u4ef6\u3092\u4f7f\u3046\uff08OR\u6761\u4ef6\uff09<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>2\u3064\u4ee5\u4e0a\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\uff08\u4f8b\u3048\u3070\u300c\u3076\u3069\u3046\u300d\u3068\u300c\u307d\u3093\u304b\u3093\u300d\uff09\u3067\u691c\u7d22\u3059\u308b\u306b\u306f\u30012\u56de <code>FindNext<\/code> \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u8907\u6570\u306e\u691c\u7d22\u6761\u4ef6FindNext()\n    Dim rng As Range, firstAddress As String\n    Dim keywords As Variant, keyword As Variant\n    \n    keywords = Array(&quot;\u3076\u3069\u3046&quot;, &quot;\u307d\u3093\u304b\u3093&quot;) &#039; \u691c\u7d22\u3059\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\n    \n    For Each keyword In keywords\n        Set rng = Worksheets(&quot;Sheet1&quot;).Cells.Find(What:=keyword, LookAt:=xlWhole)\n        \n        If Not rng Is Nothing Then\n            firstAddress = rng.Address\n            Do\n                &#039; \u691c\u7d22\u3057\u305f\u30bb\u30eb\u3092\u5f37\u8abf\u8868\u793a\n                rng.Font.Bold = True\n                rng.Interior.Color = RGB(255, 255, 0)\n                &#039; \u6b21\u306e\u691c\u7d22\u7d50\u679c\u3092\u53d6\u5f97\n                Set rng = Worksheets(&quot;Sheet1&quot;).Cells.FindNext(rng)\n            Loop While Not rng Is Nothing And rng.Address &lt;&gt; firstAddress\n        End If\n    Next keyword\nEnd Sub<\/code><\/pre>\n<p><strong>\u89e3\u8aac<\/strong><\/p>\n<ul data-spread=\"false\">\n<li><code>Array<\/code> \u3067\u691c\u7d22\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u30ea\u30b9\u30c8\u5316<\/li>\n<li><code>For Each<\/code> \u3067\u305d\u308c\u305e\u308c\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3092 <code>FindNext<\/code> \u3067\u691c\u7d22<\/li>\n<\/ul>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u3068\u3001\u300c\u3076\u3069\u3046\u300d\u304b\u300c\u307d\u3093\u304b\u3093\u300d\u3092\u542b\u3080\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u691c\u7d22\u3057\u3001\u592a\u5b57\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14307\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_006_2.png\" alt=\"\" width=\"330\" height=\"321\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_006_2.png 330w, https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_006_2-300x292.png 300w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/>\n<p>\u306f\u3044\u3001\u3067\u304d\u307e\u3057\u305f\u306d\uff01<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E9%83%A8%E5%88%86%E4%B8%80%E8%87%B4%E3%81%A8%E3%83%AF%E3%82%A4%E3%83%AB%E3%83%89%E3%82%AB%E3%83%BC%E3%83%89%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2\"><\/span><strong>\u90e8\u5206\u4e00\u81f4\u3068\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u691c\u7d22<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>Find<\/code> \u30e1\u30bd\u30c3\u30c9\u306e <code>LookAt<\/code> \u306b <code>xlPart<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u90e8\u5206\u4e00\u81f4\u691c\u7d22\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><strong>\u4f8b\uff1a&#8221;\u307f\u304b\u3093&#8221; \u3092\u542b\u3080\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u691c\u7d22<\/strong><\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Set rng = Worksheets(&quot;Sheet1&quot;).Cells.Find(What:=&quot;\u307f\u304b\u3093&quot;, LookAt:=xlPart)<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14310\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_003_2.png\" alt=\"\" width=\"310\" height=\"305\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_003_2.png 310w, https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_003_2-300x295.png 300w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/>\n<p>\u307e\u305f\u3001\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9 <code>*<\/code> \u3084 <code>?<\/code> \u3092\u4f7f\u3046\u3068\u67d4\u8edf\u306a\u691c\u7d22\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u4f7f\u3046\u5834\u5408\u306fLookAt:=xlWhole\u306e\u5b8c\u5168\u4e00\u81f4\u7248\u306b\u3082\u3069\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<p><strong>\u4f8b\uff1a&#8221;\u307f\u304b\u3093&#8221; \u304c\u524d\u65b9\u4e00\u81f4\u3059\u308b\u30bb\u30eb\u3092\u691c\u7d22<\/strong><\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Set rng = Worksheets(&quot;Sheet1&quot;).Cells.Find(What:=&quot;\u307f\u304b\u3093*&quot;, LookAt:=xlWhole)<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14309\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_002_2.png\" alt=\"\" width=\"303\" height=\"313\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_002_2.png 303w, https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_002_2-290x300.png 290w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/>\n<p>\u4f8b\uff1a2\u6587\u5b57\u76ee\u304c&#8221;\u305a&#8221;\u306e\u30bb\u30eb\u3092\u691c\u7d22<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Set rng = Worksheets(&quot;Sheet1&quot;).Cells.Find(What:=&quot;?\u305a*&quot;, LookAt:=xlWhole)<\/code><\/pre>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14311\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_004_2.png\" alt=\"\" width=\"325\" height=\"305\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_004_2.png 325w, https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/20250316_004_2-300x282.png 300w\" sizes=\"auto, (max-width: 325px) 100vw, 325px\" \/>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<div class=\"endinfo\">\n<ul data-spread=\"false\">\n<li><code>FindNext<\/code> \u3092\u4f7f\u3063\u305f\u7e70\u308a\u8fd4\u3057\u691c\u7d22<\/li>\n<li>OR\u6761\u4ef6\u3067\u8907\u6570\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22<\/li>\n<li>\u90e8\u5206\u4e00\u81f4\u3084\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u691c\u7d22<\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p><code>FindNext<\/code> \u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30fc\u30c8\u5185\u306e\u691c\u7d22\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3057\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u3002\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel VBA \u3092\u4f7f\u3063\u3066\u30bb\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 Find \u30e1\u30bd\u30c3\u30c9\u3067\u6700\u521d\u306e\u4e00\u81f4\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u3059\u3079\u3066\u306e\u4e00\u81f4\u3092\u53d6\u5f97\u3057\u305f\u3044 \u8907\u6570\u306e\u6761\u4ef6\u3067\u691c\u7d22\u3092\u3057\u305f\u3044 \u90e8\u5206\u4e00\u81f4\u3084\u30ef\u30a4\u30eb\u30c9&#8230;<\/p>\n","protected":false},"author":1,"featured_media":14303,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[53],"class_list":{"0":"post-10284","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","8":"tag-53","9":"article cf"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=10284\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"Excel VBA \u3092\u4f7f\u3063\u3066\u30bb\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 Find \u30e1\u30bd\u30c3\u30c9\u3067\u6700\u521d\u306e\u4e00\u81f4\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u3059\u3079\u3066\u306e\u4e00\u81f4\u3092\u53d6\u5f97\u3057\u305f\u3044 \u8907\u6570\u306e\u6761\u4ef6\u3067\u691c\u7d22\u3092\u3057\u305f\u3044 \u90e8\u5206\u4e00\u81f4\u3084\u30ef\u30a4\u30eb\u30c9...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=10284\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-16T02:45:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-16T03:38:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/str-227.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1017\" \/>\n\t<meta property=\"og:image:height\" content=\"507\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"9\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/extan.jp\/#website\",\"url\":\"https:\/\/extan.jp\/\",\"name\":\"\u30a8\u30af\u77ed\uff5cExtan.jp\",\"description\":\"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/extan.jp\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/?p=10284#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/str-227.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/str-227.png\",\"width\":1017,\"height\":507,\"caption\":\"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=10284#webpage\",\"url\":\"https:\/\/extan.jp\/?p=10284\",\"name\":\"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=10284#primaryimage\"},\"datePublished\":\"2025-03-16T02:45:31+00:00\",\"dateModified\":\"2025-03-16T03:38:11+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=10284#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=10284\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=10284#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\",\"name\":\"\u30bf\u30ab\u30d2\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/#personlogo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"caption\":\"\u30bf\u30ab\u30d2\u30ed@extan\"},\"url\":\"https:\/\/extan.jp\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/extan.jp\/?p=10284","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"Excel VBA \u3092\u4f7f\u3063\u3066\u30bb\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 Find \u30e1\u30bd\u30c3\u30c9\u3067\u6700\u521d\u306e\u4e00\u81f4\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u3059\u3079\u3066\u306e\u4e00\u81f4\u3092\u53d6\u5f97\u3057\u305f\u3044 \u8907\u6570\u306e\u6761\u4ef6\u3067\u691c\u7d22\u3092\u3057\u305f\u3044 \u90e8\u5206\u4e00\u81f4\u3084\u30ef\u30a4\u30eb\u30c9...","og_url":"https:\/\/extan.jp\/?p=10284","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2025-03-16T02:45:31+00:00","article_modified_time":"2025-03-16T03:38:11+00:00","og_image":[{"width":1017,"height":507,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/str-227.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30bf\u30ab\u30d2\u30ed@extan","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"9\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/extan.jp\/#website","url":"https:\/\/extan.jp\/","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/extan.jp\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=10284#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/str-227.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2025\/03\/str-227.png","width":1017,"height":507,"caption":"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01"},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=10284#webpage","url":"https:\/\/extan.jp\/?p=10284","name":"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=10284#primaryimage"},"datePublished":"2025-03-16T02:45:31+00:00","dateModified":"2025-03-16T03:38:11+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=10284#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=10284"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=10284#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"\u3010Excel VBA\u3011FindNext\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u6761\u4ef6\u306e\u4ed6\u90e8\u5206\u4e00\u81f4\u3082\uff01"}]},{"@type":"Person","@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/#personlogo","inLanguage":"ja","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","caption":"\u30bf\u30ab\u30d2\u30ed@extan"},"url":"https:\/\/extan.jp\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10284"}],"version-history":[{"count":13,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10284\/revisions"}],"predecessor-version":[{"id":14316,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10284\/revisions\/14316"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/14303"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}