{"id":3126,"date":"2015-08-21T09:03:00","date_gmt":"2015-08-21T00:03:00","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3126"},"modified":"2015-10-19T09:24:53","modified_gmt":"2015-10-19T00:24:53","slug":"cellfind","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/cellfind\/","title":{"rendered":"\u30bb\u30eb\u7bc4\u56f2\u5185\u3092\u691c\u7d22\uff08Find \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Find \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u7279\u5b9a\u306e\u60c5\u5831\u3092\u542b\u3080\u30bb\u30eb\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Find<\/strong> ( <em>what<\/em> [, <em>after<\/em>, <em>lookin<\/em>, <em>lookat<\/em>, <em>searchorder<\/em>, <em>searchdirection<\/em>, <em>matchcase<\/em>, <em>matchbyte<\/em>, <em>searchformat<\/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>what&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u3001\u5024\u306a\u3069\u3001\u30bb\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u306b\u8a72\u5f53\u3059\u308b\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u4e0d\u53ef\u3002<\/li>\n<li>after&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<em>object<\/em> \u3067\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u30bb\u30eb\u306e\uff11\u3064\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<span class=\"red\">\u3053\u306e\u30bb\u30eb\u306e\u6b21\u306e\u30bb\u30eb\u304b\u3089\u691c\u7d22\u304c\u958b\u59cb\u3055\u308c\u307e\u3059\u3002<\/span>\u3053\u306e\u30bb\u30eb\u81ea\u4f53\u306f\u3001\u6307\u5b9a\u7bc4\u56f2\u5168\u4f53\u3092\u691c\u7d22\u3057\u623b\u3063\u3066\u304f\u308b\u307e\u3067\u306f\u691c\u7d22\u3055\u308c\u307e\u305b\u3093\u3002\u7701\u7565\u3059\u308b\u3068\u3001\u5bfe\u8c61\u306e\u30bb\u30eb\u7bc4\u56f2\u5de6\u4e0a\u7aef\u30bb\u30eb\u304c\u691c\u7d22\u958b\u59cb\u70b9\u3068\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>lookin&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u5bfe\u8c61\u3068\u306a\u308b\u5b9a\u6570\uff08XlFindLookIn \u5217\u6319\u578b\uff09\u307e\u305f\u306f\u3001\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\">xlComments<\/td>\n<td width=\"80\" align = \"center\">-4144<\/td>\n<td width=\"320\">\u30b3\u30e1\u30f3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"250\">xlFormulas<\/td>\n<td width=\"80\" align = \"center\">-4123<\/td>\n<td width=\"320\">\u6570\u5f0f<\/td>\n<\/tr>\n<tr>\n<td width=\"250\">xlValues<\/td>\n<td width=\"80\" align = \"center\">-4163<\/td>\n<td width=\"320\">\u5024\uff08\u6587\u5b57\u5217\u3001\u6570\u5024\uff09<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>lookat&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u6761\u4ef6\u3092\u8868\u3059\u5b9a\u6570\uff08XlFindLookAt \u5217\u6319\u578b\uff09\u307e\u305f\u306f\u3001\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlWhole<\/td>\n<td width=\"80\" align = \"center\">1<\/td>\n<td width=\"320\" >\u5b8c\u5168\u4e00\u81f4\u306e\u30bb\u30eb\u3092\u691c\u7d22<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlPart<\/td>\n<td width=\"80\" align = \"center\">2<\/td>\n<td width=\"320\" >\u691c\u7d22\u6587\u5b57\u5217\u3092\u542b\u3080\u30bb\u30eb\u3092\u691c\u7d22<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>searchorder&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u6642\u306b\u7e26\u6a2a\u3069\u3061\u3089\u306e\u884c\u5217\u5358\u4f4d\u3068\u3057\u3066\u691c\u7d22\u3059\u308b\u304b\u3092\u8868\u3059\u5b9a\u6570\uff08XlSearchOrder \u5217\u6319\u578b\uff09\u307e\u305f\u306f\u3001\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlByRows<\/td>\n<td width=\"80\" align = \"center\">1<\/td>\n<td width=\"320\" >\u884c\u3092\u6a2a\u65b9\u5411\u306b\u691c\u7d22\u3057\u3066\u304b\u3089\u3001\u6b21\u306e\u884c\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlByColumns<\/td>\n<td width=\"80\" align = \"center\">2<\/td>\n<td width=\"320\" >\u5217\u3092\u4e0b\u65b9\u5411\u306b\u691c\u7d22\u3057\u3066\u304b\u3089\u3001\u6b21\u306e\u5217\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>searchdirection&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u65b9\u5411\u3092\u8868\u3059\u5b9a\u6570\uff08XlSearchDirection \u5217\u6319\u578b\uff09\u307e\u305f\u306f\u3001\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"250\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"320\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlNext<\/td>\n<td width=\"80\" align = \"center\">1<\/td>\n<td width=\"320\" >\u5f8c\u65b9\u691c\u7d22<\/td>\n<\/tr>\n<tr>\n<td width=\"250\" >xlPrevious<\/td>\n<td width=\"80\" align = \"center\">2<\/td>\n<td width=\"320\" >\u524d\u65b9\u691c\u7d22<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>matchcase&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u3001\u3057\u306a\u3044\u5834\u5408\u306f <strong>False<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u65e2\u5b9a\u5024\u306f\u3001<strong>False<\/strong> \u3067\u3059\u3002<\/li>\n<li>matchbyte&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u534a\u89d2\u6587\u5b57\u3001\u5168\u89d2\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u3001\u3057\u306a\u3044\u5834\u5408\u306f <strong>False<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u65e2\u5b9a\u5024\u306f\u3001<strong>False<\/strong> \u3067\u3059\u3002<\/li>\n<li>searchformat&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<a href=\"https:\/\/excelwork.info\/excel\/vba_glossary\/#cellformat-object\">CellFormat \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a> \u306b\u8a2d\u5b9a\u3055\u308c\u305f\u66f8\u5f0f\u3092\u691c\u7d22\u3059\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u3001\u3057\u306a\u3044\u5834\u5408\u306f\u3001<strong>False<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u65e2\u5b9a\u5024\u306f\u3001<strong>False<\/strong> \u3067\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u306e\u7d50\u679c\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u30bb\u30eb\u304c\u898b\u3064\u304b\u3063\u305f\u3089\u305d\u306e\u5148\u982d\u306e\u30bb\u30eb\u3092\u8868\u3059 <strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u8fd4\u3057\u307e\u3059\u3002\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u3001<strong>Nothing<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>Find \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6307\u5b9a\u3057\u305f\u5f15\u6570\u306e\u8a2d\u5b9a\u306f\u3001\u4fdd\u5b58\u3055\u308c\u3001\u6b21\u306b\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306b\u3053\u308c\u3089\u306e\u5f15\u6570\u306e\u6307\u5b9a\u3092\u7701\u7565\u3059\u308b\u3068\u3001\u4fdd\u5b58\u3055\u308c\u305f\u8a2d\u5b9a\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u610f\u56f3\u3057\u305f\u691c\u7d22\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u305f\u3073\u306b\u3001\u3053\u308c\u3089\u306e\u5f15\u6570\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u3053\u3053\u3067\u4fdd\u5b58\u3055\u308c\u305f\u5185\u5bb9\u306f\u3001[\u691c\u7d22\u3068\u7f6e\u63db] \u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u306b\u8868\u793a\u3055\u308c\u308b\u8a2d\u5b9a\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"caution4\">\u540c\u3058\u691c\u7d22\u3092\u7e70\u308a\u8fd4\u3059\u3068\u304d\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/findnextfindprevious\/\">FindNext \u30e1\u30bd\u30c3\u30c9 \u307e\u305f\u306f\u3001FindPrevious \u30e1\u30bd\u30c3\u30c9<\/a> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Find \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample01_Find()\r\n\r\n\r\n    Dim myRng1 As Range, myRng2 As Range, myRng3 As Range\r\n\r\n    '\u691c\u7d22\u5024\u300cANPER9RR\u300d\u958b\u59cb\u300cA1\u300d\u5bfe\u8c61\u300c\u5024\u300d\u6761\u4ef6\u300c\u5b8c\u5168\u4e00\u81f4\u300d\u7e26\u6a2a\u65b9\u5411\u300c\u884c\u2192\u5217\u300d\r\n    '\u65b9\u5411\u300c\u5f8c\u65b9\u691c\u7d22\u300d\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u300c\u533a\u5225\u3057\u306a\u3044\u300d\u534a\u89d2\u5168\u89d2\u300c\u533a\u5225\u3057\u306a\u3044\u300d\u66f8\u5f0f\u691c\u7d22\u300c\u3057\u306a\u3044\u300d\r\n    Set myRng1 = Range(\"\u90e8\u54c1\u8868\").Find(\"ANPR9RR\", _\r\n                                       After:=Range(\"A1\"), _\r\n                                       LookIn:=xlValues, _\r\n                                       LookAt:=xlWhole, _\r\n                                       SearchOrder:=xlByRows, _\r\n                                       SearchDirection:=xlNext, _\r\n                                       MatchCase:=False, _\r\n                                       MatchByte:=False, _\r\n                                       SearchFormat:=False)\r\n                                       \r\n    '\u691c\u7d22\u5024\u300c\u62b5\u6297\u300d\u3001\u305d\u306e\u4ed6\u306f\u3001\u4e0a\u8a18\u3067\u306e\u8a2d\u5b9a\u304c\u305d\u306e\u307e\u307e\u4f7f\u7528\u3055\u308c\u308b\r\n    Set myRng2 = Range(\"A2:E15\").Find(\"\u62b5\u6297\")\r\n\r\n    '\u691c\u7d22\u5024\u300c\u30b3\u30f3\u30c7\u30f3\u30b5\u300d\u6761\u4ef6\u300c\u691c\u7d22\u6587\u5b57\u5217\u3092\u542b\u3080\u30bb\u30eb\u3092\u691c\u7d22\u300d\r\n    Set myRng3 = Range(\"\u90e8\u54c1\u8868\").Find(\"\u30b3\u30f3\u30c7\u30f3\u30b5\", LookAt:=xlPart)\r\n             \r\n        \r\n    '\u30bb\u30eb\u306e\u80cc\u666f\u8272\u3092\u8d64\r\n    If Not myRng1 Is Nothing Then myRng1.Interior.Color = RGB(255, 0, 0)\r\n    \r\n    '\u30bb\u30eb\u306e\u80cc\u666f\u8272\u3092\u7dd1\r\n    If Not myRng2 Is Nothing Then myRng2.Interior.Color = RGB(0, 255, 0)\r\n    \r\n    '\u30bb\u30eb\u306e\u80cc\u666f\u8272\u3092\u9752\r\n    If Not myRng3 Is Nothing Then myRng3.Interior.Color = RGB(0, 0, 255)\r\n\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>Find \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b \u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_01a.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_01a.jpg?resize=400%2C208&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f8b01\" width=\"400\" height=\"208\" class=\"alignnone size-medium wp-image-3138\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_01a.jpg?resize=400%2C208&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_01a.jpg?resize=580%2C301&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_01a.jpg?w=1083&amp;ssl=1 1083w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_02.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_02.jpg?resize=400%2C209&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9\u3000\u4f8b02\" width=\"400\" height=\"209\" class=\"alignnone size-medium wp-image-3130\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_02.jpg?resize=400%2C209&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_02.jpg?resize=580%2C302&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_02.jpg?w=1080&amp;ssl=1 1080w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n<h2>Find \u30e1\u30bd\u30c3\u30c9\uff08\u30b3\u30e1\u30f3\u30c8\u306e\u691c\u7d22\uff09 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Find \u30e1\u30bd\u30c3\u30c9\uff08\u30b3\u30e1\u30f3\u30c8\u306e\u691c\u7d22\uff09 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample02_Find()\r\n\r\n    Dim myRng As Range\r\n    Dim FirstCell As Range\r\n    Dim str As String\r\n\r\n    '\u691c\u7d22\u5024\u300c\u6ce8\u610f\u300d\u958b\u59cb\u300cA1\u300d\u5bfe\u8c61\u300c\u30b3\u30e1\u30f3\u30c8\u300d\u6761\u4ef6\u300c\u90e8\u5206\u4e00\u81f4\u300d\u7e26\u6a2a\u65b9\u5411\u300c\u884c\u2192\u5217\u300d\r\n    '\u65b9\u5411\u300c\u5f8c\u65b9\u691c\u7d22\u300d\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u300c\u533a\u5225\u3057\u306a\u3044\u300d\u534a\u89d2\u5168\u89d2\u300c\u533a\u5225\u3057\u306a\u3044\u300d\u66f8\u5f0f\u691c\u7d22\u300c\u3057\u306a\u3044\u300d\r\n    Set myRng = Cells.Find(\"\u6ce8\u610f\", _\r\n                            After:=Range(\"A1\"), _\r\n                            LookIn:=xlComments, _\r\n                            LookAt:=xlPart, _\r\n                            SearchOrder:=xlByRows, _\r\n                            SearchDirection:=xlNext, _\r\n                            MatchCase:=False, _\r\n                            MatchByte:=False, _\r\n                            SearchFormat:=False)\r\n    \r\n    Set FirstCell = myRng\r\n    \r\n    Do\r\n\r\n        str = str & myRng.Comment.Text & vbLf\r\n                \r\n        '\u6b21\u3092\u691c\u7d22\r\n        Set myRng = Cells.FindNext(myRng)\r\n        \r\n        '\u6700\u521d\u306e\u691c\u7d22\u4f4d\u7f6e\u306b\u623b\u3063\u305f\u3089\u7d42\u4e86\u3059\u308b\r\n        If myRng.Address = FirstCell.Address Then\r\n            Exit Do\r\n        End If\r\n    \r\n    Loop\r\n        \r\n    MsgBox str\r\n    \r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>Find \u30e1\u30bd\u30c3\u30c9\uff08\u30b3\u30e1\u30f3\u30c8\u306e\u691c\u7d22\uff09\u4f7f\u7528\u4f8b \u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_03.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_03.jpg?resize=400%2C191&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f8b03\" width=\"400\" height=\"191\" class=\"alignnone size-medium wp-image-3148\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_03.jpg?resize=400%2C191&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_03.jpg?resize=580%2C277&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_03.jpg?w=1092&amp;ssl=1 1092w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_04.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_04.jpg?resize=400%2C195&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f8b04\" width=\"400\" height=\"195\" class=\"alignnone size-medium wp-image-3149\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_04.jpg?resize=400%2C195&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_04.jpg?resize=580%2C283&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_04.jpg?w=1071&amp;ssl=1 1071w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n<h2>Find \u30e1\u30bd\u30c3\u30c9\uff08\u65e5\u4ed8\u306e\u691c\u7d221\uff09 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<p><strong>\u65e5\u4ed8\u306e\u691c\u7d22\u306b\u3064\u3044\u3066\uff1a<\/strong><br \/>\n    \u5f15\u6570 <em>what<\/em> \u306b\u306f\u3001<strong>\u30b7\u30ea\u30a2\u30eb\u5024<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n    \uff08\u4f8b\uff09<br \/>\n    \u3000\u3000what: = &#8220;2015\/1\/1&#8221; \u3000\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n    \u3000\u3000what: = DateValue(&#8220;2015\/1\/1&#8221;) \u3000\u306e\u3088\u3046\u306b\u30b7\u30ea\u30a2\u30eb\u5024\u306b\u5909\u63db\u3057\u307e\u3059\u3002<br \/>\n    \u5f15\u6570 <em>lookin<\/em> \u306b\u306f\u3001<strong>xlValues<\/strong> \u307e\u305f\u306f\u3001<strong>xlFormulas<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n  <\/p>\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Find \u30e1\u30bd\u30c3\u30c9\uff08\u65e5\u4ed8\u306e\u691c\u7d221\uff09 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample03_Find()\r\n\r\n\r\n    Dim myRng As Range\r\n    Dim FirstCell As Range\r\n    Dim Total As Double\r\n\r\n    '\u691c\u7d22\u5024\u300c2014\/7\/27\u300d\u958b\u59cb\u300cA1\u300d\u5bfe\u8c61\u300c\u5024\u300d\u6761\u4ef6\u300c\u5b8c\u5168\u4e00\u81f4\u300d\u7e26\u6a2a\u65b9\u5411\u300c\u884c\u2192\u5217\u300d\r\n    '\u65b9\u5411\u300c\u5f8c\u65b9\u691c\u7d22\u300d\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u300c\u533a\u5225\u3057\u306a\u3044\u300d\u534a\u89d2\u5168\u89d2\u300c\u533a\u5225\u3057\u306a\u3044\u300d\u66f8\u5f0f\u691c\u7d22\u300c\u3057\u306a\u3044\u300d\r\n    Set myRng = Cells.Find(What:=DateValue(\"2014\/7\/27\"), _\r\n                           After:=Range(\"A1\"), _\r\n                           LookIn:=xlValues, _\r\n                           LookAt:=xlWhole, _\r\n                           SearchOrder:=xlByRows, _\r\n                           SearchDirection:=xlNext, _\r\n                           MatchCase:=False, _\r\n                           MatchByte:=False, _\r\n                           SearchFormat:=False)\r\n    \r\n    Set FirstCell = myRng\r\n    \r\n    '\u300c2014\/7\/27\u300d\u306e\u91d1\u984d\u306e\u5408\u8a08\u3092\u6c42\u3081\u307e\u3059\r\n    Do\r\n\r\n        Total = Total + myRng.Offset(0, 5).Value\r\n                \r\n        '\u6b21\u3092\u691c\u7d22\r\n        Set myRng = Cells.FindNext(myRng)\r\n\r\n        '\u6700\u521d\u306e\u691c\u7d22\u4f4d\u7f6e\u306b\u623b\u3063\u305f\u3089\u7d42\u4e86\u3059\u308b\r\n        If myRng.Address = FirstCell.Address Then\r\n            Exit Do\r\n        End If\r\n    \r\n    Loop\r\n        \r\n    MsgBox CStr(Format(Total, \"\\\\#,#\"))\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>Find \u30e1\u30bd\u30c3\u30c9\uff08\u65e5\u4ed8\u306e\u691c\u7d221\uff09\u4f7f\u7528\u4f8b \u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_05.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_05.jpg?resize=400%2C253&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f8b05\" width=\"400\" height=\"253\" class=\"alignnone size-medium wp-image-3155\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_05.jpg?resize=400%2C253&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_05.jpg?resize=580%2C366&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_05.jpg?w=901&amp;ssl=1 901w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_06.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_06.jpg?resize=400%2C250&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f8b06\" width=\"400\" height=\"250\" class=\"alignnone size-medium wp-image-3156\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_06.jpg?resize=400%2C250&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_06.jpg?resize=580%2C362&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_06.jpg?w=902&amp;ssl=1 902w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n<h2>Find \u30e1\u30bd\u30c3\u30c9\uff08\u65e5\u4ed8\u306e\u691c\u7d222\uff09 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<p><strong>\u65e5\u4ed8\u306e\u691c\u7d22\u306b\u3064\u3044\u3066\uff1a<\/strong><br \/>\n    \u30bb\u30eb\u306b\u6570\u5f0f\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3067\u3001\u66f8\u5f0f\u304c\u65e5\u4ed8\u3001\u7a2e\u985e\u306b\u300c*2012\/3\/14\u300d\u306e\u3088\u3046\u306b\u300c*\u300d\u304c\u3064\u304f\u8868\u793a\u5f62\u5f0f\u306e\u5834\u5408<br \/>\n    \u5f15\u6570 <em>what<\/em> \u306b\u306f\u3001<strong>\u30b7\u30ea\u30a2\u30eb\u5024<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u5f15\u6570 <em>lookin<\/em> \u306b\u306f\u3001<strong>xlValues<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n    \u30bb\u30eb\u306b\u6570\u5f0f\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3067\u3001\u66f8\u5f0f\u304c\u65e5\u4ed8\u3001\u7a2e\u985e\u306b\u300c2012\u5e743\u6708\u300d\u306e\u3088\u3046\u306b\u300c*\u300d\u304c\u3064\u304b\u306a\u3044\u8868\u793a\u5f62\u5f0f\u306e\u5834\u5408<br \/>\n    \u5f15\u6570 <em>what<\/em> \u306b\u306f\u3001<strong>\u8868\u793a\u901a\u308a\u306e\u5024<\/strong> \u300c2012\u5e743\u6708\u300d\u7b49\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u5f15\u6570 <em>lookin<\/em> \u306b\u306f\u3001<strong>xlValues<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n  <\/p>\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Find \u30e1\u30bd\u30c3\u30c9\uff08\u65e5\u4ed8\u306e\u691c\u7d222\uff09 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample04_Find()\r\n\r\n\r\n    Dim myRng1 As Range, myRng2 As Range\r\n    \r\n    Set myRng1 = Cells.Find(What:=DateValue(\"2015\/1\/2\"), LookIn:=xlValues)\r\n    \r\n    Set myRng2 = Cells.Find(What:=\"1\u670810\u65e5\", LookIn:=xlValues)\r\n    \r\n    MsgBox myRng1.Text & vbLf & myRng2.Text\r\n    \r\n\r\nEnd Sub\r\n\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>Find \u30e1\u30bd\u30c3\u30c9\uff08\u65e5\u4ed8\u306e\u691c\u7d222\uff09\u4f7f\u7528\u4f8b \u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\u5b9f\u884c\u524d<\/p>\n<p>\u300cA1\u300d\u30bb\u30eb\u306b\u306f\u3001\u300c2015\/1\/1\u300d\u304c\u5165\u529b\u3055\u308c\u3066\u304a\u308a\u3001\u300cA2\u300d\u30bb\u30eb\u4ee5\u964d\u306f\u3001\u300c=A1+1\u300d\u300c=A2+1\u300d\u2026\u300c=A20+1\u300d\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n    \u300cA2\u300d\u304b\u3089\u300cA10\u300d\u307e\u3067\u306e\u66f8\u5f0f\u8a2d\u5b9a\u306f\u3001\u300c\u65e5\u4ed8\u300d\u306e\u300c*2012\/3\/14\u300d<br \/>\n    \u300cA11\u300d\u304b\u3089\u300cA20\u300d\u307e\u3067\u306e\u66f8\u5f0f\u8a2d\u5b9a\u306f\u3001\u300c\u65e5\u4ed8\u300d\u306e\u300c3\u670814\u65e5\u300d<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_07.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_07.jpg?resize=400%2C374&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f8b07\" width=\"400\" height=\"374\" class=\"alignnone size-medium wp-image-3160\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_07.jpg?resize=400%2C374&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_07.jpg?w=508&amp;ssl=1 508w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_08.jpg?ssl=1\" rel=\"lightbox[3126]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_08.jpg?resize=400%2C280&#038;ssl=1\" alt=\"Find \u30e1\u30bd\u30c3\u30c9 \u4f8b08\" width=\"400\" height=\"280\" class=\"alignnone size-medium wp-image-3161\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_08.jpg?resize=400%2C280&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_08.jpg?resize=580%2C406&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_08.jpg?w=712&amp;ssl=1 712w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>Find \u30e1\u30bd\u30c3\u30c9 \u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u5185\u306e\u7279\u5b9a\u306e\u60c5\u5831\u3092\u542b\u3080\u30bb\u30eb\u3092\u691c\u7d22\u3057\u307e\u3059\u3002 \u3010\u66f8 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3199,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[511,270,63,38,269],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellfind_01a-400x2081.jpg?fit=400%2C208&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s4Ye9i-cellfind","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3126"}],"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=3126"}],"version-history":[{"count":23,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3126\/revisions"}],"predecessor-version":[{"id":4093,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3126\/revisions\/4093"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3199"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}