{"id":5051,"date":"2016-02-08T09:20:49","date_gmt":"2016-02-08T00:20:49","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5051"},"modified":"2016-02-08T09:20:49","modified_gmt":"2016-02-08T00:20:49","slug":"funcinstrrev","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/funcinstrrev\/","title":{"rendered":"\u6587\u5b57\u5217\uff1a\u6587\u5b57\u5217\u3092\u6700\u5f8c\u304b\u3089\u691c\u7d22\u3057\u3066\u305d\u306e\u6700\u521d\u306e\u6587\u5b57\u4f4d\u7f6e\u3092\u8fd4\u3059\uff08InStrRev \u95a2\u6570\uff09"},"content":{"rendered":"<h2>InStrRev \u95a2\u6570<\/h2>\n<div class=\"m30-l\">\n<p>\u4efb\u610f\u306e\u6587\u5b57\u5217\u306e\u4e2d\u3067\u3001\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092<span class=\"red\">\u6700\u5f8c\u304b\u3089\u691c\u7d22<\/span>\u3057\u3066\u3001\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u3001\u4efb\u610f\u306e\u6587\u5b57\u5217\u306e\u5148\u982d\u304b\u3089\u306e\u4f4d\u7f6e\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n    \u4efb\u610f\u306e\u6587\u5b57\u5217\u306e<span class=\"red\">\u5148\u982d\u304b\u3089\u691c\u7d22<\/span>\u3059\u308b\u5834\u5408\u306f\u3001<strong>InStr \u95a2\u6570\u30fbInstrB \u95a2\u6570<\/strong> \u3092\u4f7f\u3044\u307e\u3059\uff08<a href=\"https:\/\/excelwork.info\/excel\/funcinstr\/\">\u6587\u5b57\u5217\uff1a\u6587\u5b57\u5217\u3092\u691c\u7d22\u3057\u3066\u305d\u306e\u6700\u521d\u306e\u6587\u5b57\u4f4d\u7f6e\u3092\u8fd4\u3059\uff08InStr \u95a2\u6570,InStrB \u95a2\u6570\uff09<\/a> \u3092\u53c2\u7167\uff09\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>result<\/em> = <strong>InStrRev<\/strong> ( <em>string1<\/em>, <em>string2<\/em> [, <em>start<\/em>, <em>compare<\/em> ] )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>string1&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u30fb\u6587\u5b57\u5217\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<li>string2&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5f15\u6570 string1 \u5185\u3067\u3001\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<li>start&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u691c\u7d22\u306e\u958b\u59cb\u4f4d\u7f6e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068 -1 \u304c\u4f7f\u7528\u3055\u308c\u3001\u6700\u5f8c\u306e\u6587\u5b57\u4f4d\u7f6e\u304b\u3089\u691c\u7d22\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u5f15\u6570 <em>start<\/em> \u306b Null \u5024\u304c\u542b\u307e\u308c\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>compare&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u6587\u5b57\u5217\u5f0f\u3092\u8a55\u4fa1\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3059\u308b\u6587\u5b57\u5217\u6bd4\u8f03\u306e\u30e2\u30fc\u30c9\u3092\u8868\u3059 <strong>VbCompareMethod \u5217\u6319\u578b<\/strong>\u306e\u5b9a\u6570\u307e\u305f\u306f\u305d\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u3001\u30d0\u30a4\u30ca\u30ea\u30e2\u30fc\u30c9\uff08<strong>vbBinaryCompare<\/strong>\uff09\u3067\u6bd4\u8f03\u304c\u884c\u308f\u308c\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#ffffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">vbBinaryCompare<\/td>\n<td width=\"50\" align = \"center\">0<\/td>\n<td width=\"400\">\u30d0\u30a4\u30ca\u30ea\u30e2\u30fc\u30c9\u306e\u6bd4\u8f03<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">vbTextCompare<\/td>\n<td width=\"50\" align = \"center\">1<\/td>\n<td width=\"400\">\u30c6\u30ad\u30b9\u30c8\u30e2\u30fc\u30c9\u306e\u6bd4\u8f03\uff08\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u3092\u540c\u4e00\u8996\uff09<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>InStrRev \u95a2\u6570<\/strong>\u306e\u623b\u308a\u5024\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"300\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<td align = \"center\" width=\"300\" bgcolor=\"#ffffccc\"><strong>\u623b\u308a\u5024<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"300\"><em>string1<\/em> \u304c\u9577\u3055 0 \u306e\u6587\u5b57\u5217 (&#8220;&#8221;) \u306e\u3068\u304d<\/td>\n<td width=\"300\">0<\/td>\n<\/tr>\n<tr>\n<td width=\"300\"><em>string1<\/em> \u304c Null \u5024\u306e\u3068\u304d<\/td>\n<td width=\"300\">Null \u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"300\"><em>string2<\/em> \u304c\u9577\u3055 0 \u306e\u6587\u5b57\u5217 (&#8220;&#8221;) \u306e\u3068\u304d<\/td>\n<td width=\"300\"><em>start<\/em><\/td>\n<\/tr>\n<tr>\n<td width=\"300\"><em>string2<\/em> \u304c Null \u5024\u306e\u3068\u304d<\/td>\n<td width=\"300\">Null \u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"300\"><em>string2<\/em> \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u304d<\/td>\n<td width=\"300\">0<\/td>\n<\/tr>\n<tr>\n<td width=\"300\"><em>string2<\/em> \u304c <em>string1<\/em> \u5185\u3067\u898b\u3064\u304b\u3063\u305f\u3068\u304d<\/td>\n<td width=\"300\">\u898b\u3064\u304b\u3063\u305f\u6587\u5b57\u5217\u306e\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td width=\"300\"><em>start<\/em> \u306e\u5024\u304c<em>string2<\/em> \u306e\u6587\u5b57\u6570\u3088\u308a\u5927\u304d\u3044\u3068\u304d<\/td>\n<td width=\"300\">0<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>InStrRev \u95a2\u6570 \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=\"InStrRev \u95a2\u6570 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub sample_InStrRev()\r\n\r\n    Dim str As String\r\n    \r\n    str = \"ABCDEabcZZZ\"\r\n    \r\n    Debug.Print InStrRev(str, \"Z\", -1, vbBinaryCompare)\r\n    Debug.Print InStrRev(str, \"Z\", 9, vbBinaryCompare)\r\n    Debug.Print InStrRev(str, \"ABC\", -1, vbTextCompare)\r\n    Debug.Print InStrRev(str, \"ABC\")\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/instrrev01.jpg?ssl=1\" rel=\"lightbox[5051]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/instrrev01.jpg?resize=505%2C464&#038;ssl=1\" alt=\"InStrRev \u95a2\u6570\" width=\"505\" height=\"464\" class=\"alignnone size-full wp-image-5052\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/instrrev01.jpg?w=505&amp;ssl=1 505w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/instrrev01.jpg?resize=400%2C368&amp;ssl=1 400w\" sizes=\"(max-width: 505px) 100vw, 505px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>InStrRev \u95a2\u6570 \u4efb\u610f\u306e\u6587\u5b57\u5217\u306e\u4e2d\u3067\u3001\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u6700\u5f8c\u304b\u3089\u691c\u7d22\u3057\u3066\u3001\u898b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5052,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[37],"tags":[801,63,38],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/02\/instrrev01.jpg?fit=505%2C464&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1jt","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5051"}],"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=5051"}],"version-history":[{"count":2,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5051\/revisions"}],"predecessor-version":[{"id":5084,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5051\/revisions\/5084"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5052"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}