{"id":1847,"date":"2015-05-14T10:35:20","date_gmt":"2015-05-14T01:35:20","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=1847"},"modified":"2015-05-15T15:41:24","modified_gmt":"2015-05-15T06:41:24","slug":"midstatement","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/midstatement\/","title":{"rendered":"\u6587\u5b57\u5217\uff1a\u6587\u5b57\u5217\u5909\u6570\u5185\u306e\u4e00\u90e8\u3092\u7f6e\u304d\u63db\u3048\u308b\uff08Mid\u30fbMidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09"},"content":{"rendered":"<h2>Mid\u30fbMidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u3044\u65b9<\/h2>\n<br \/>\n<div class=\"m30-l\">\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>{ <strong>Mid<\/strong> | <strong>MidB<\/strong> } ( <em>stringvar<\/em>, <em>start<\/em>, <em>length<\/em> ) = <em>string<\/em><\/p>\n<\/div>\n<br \/>\n<h3>\u3010\u9805\u76ee\u306e\u8aac\u660e\u3011<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>stringvar&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5909\u66f4\u3059\u308b\u6587\u5b57\u5217\u5909\u6570\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>start&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5f15\u6570 <em>stringvar<\/em> \u306e\u4e2d\u306e\u7f6e\u304d\u63db\u3048\u3092\u59cb\u3081\u308b\u4f4d\u7f6e\u3092 <strong>Mid \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306e\u5834\u5408\u306f\u6587\u5b57\u6570\u5358\u4f4d\u3067\u3001<strong>MidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306e\u5834\u5408\u306f\u30d0\u30a4\u30c8\u6570\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>length&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>Mid \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306e\u5834\u5408\u306f\u7f6e\u304d\u63db\u3048\u3092\u884c\u3046\u6587\u5b57\u6570\u3092\u3001<strong>MidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong> \u306e\u5834\u5408\u306f\u30d0\u30a4\u30c8\u6570\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u3001\u6587\u5b57\u5217\u3059\u3079\u3066\u304c\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>string&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u65b0\u3057\u304f\u7f6e\u304d\u63db\u3048\u308b\u6587\u5b57\u5217\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u6587\u5b57\u5217 <em>string<\/em> \u306e\u65b9\u304c\u3001\u6587\u5b57\u5217 <em>stringvar<\/em> \u3088\u308a\u3082\u6587\u5b57\u6570\u304c\u591a\u3044\u5834\u5408\u3001<em>stringvar<\/em> \u3088\u308a\u3082\u591a\u3044\u5206\u306e\u6587\u5b57\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002\n<\/p>\n<p class=\"caution4\"><em>length<\/em> \u306e\u5024\u304c <em>string<\/em> \u3067\u6307\u5b9a\u3057\u305f\u6587\u5b57\u306e\u9577\u3055\u3088\u308a\u3082\u5927\u304d\u3044\u5834\u5408\u3001<em>length<\/em> \u306e\u5024\u306f\u7121\u8996\u3055\u308c\u3001<em>string<\/em> \u3067\u6307\u5b9a\u3057\u305f\u6587\u5b57\u306e\u9577\u3055\u5206\u3060\u3051\u7f6e\u304d\u63db\u3048\u304c\u306a\u3055\u308c\u307e\u3059\u3002<\/p>\n<br \/><\/div>\n<br \/><br \/>\n<h2>Mid\u30fbMidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">Mid \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u7528\u4f8b<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Mid \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\r\n\u3000\r\nSub Sample_mid()\r\n\r\n    Dim str1, str2, str3, str4\r\n    \r\n    str1 = \"abcdefg\"\r\n    str2 = \"\u3053\u3093\u306b\u3061\u306f\uff01\uff01\u3088\u308d\u3057\u304f\uff01\"\r\n    str3 = \"\u306f\u3072\u3075\u3078\u307b\"\r\n    str4 = \"Good Bye\"\r\n    \r\n    Mid(str1, 5, 3) = \"xyz\"                 '\u300cemg\u300d\u304c\u300cxyz\u300d\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\r\n    Mid(str2, 1, 5) = \"\u304a\u306f\u3088\u3046\"            '\u300c\u304a\u306f\u3088\u3046\u300d\u304c4\u6587\u5b57\u306a\u306e\u3067\u3001\u6587\u5b57\u306e\u9577\u3055\u306e\u5024\u300c5\u300d\u306f\u7121\u8996\u3055\u308c\u308b\r\n    Mid(str3, 2) = 123                      '\u7f6e\u304d\u63db\u3048\u308b\u6587\u5b57\u6570\u3092\u7701\u7565 \u21d2 \u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u300c123\u300d\u3059\u3079\u3066\r\n    Mid(str4, 3, 2) = \"Hello!)\"             '\u7f6e\u304d\u63db\u3048\u308b\u6587\u5b57\u5217\u306f\u300cHe\u300d\r\n    \r\n    MsgBox str1 & Chr(13) & str2 & Chr(13) & str3 & Chr(13) & str4\r\n\r\nEnd Sub\r\n\u3000\r\n\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/midstatement01.jpg?ssl=1\" rel=\"lightbox[1847]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/midstatement01.jpg?resize=210%2C232&#038;ssl=1\" alt=\"Mid \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u4f8b\" width=\"210\" height=\"232\" class=\"alignnone size-full wp-image-1850\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><br \/>\n<h3 id=\"vba_sample\">MidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u7528\u4f8b<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"MidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\r\n\u3000\r\nSub Sample_midb()\r\n\r\n    Dim str1, str2, str3, str4\r\n    \r\n    str1 = \"abcdefg\"\r\n    str2 = \"\u3053\u3093\u306b\u3061\u306f\uff01\uff01\u3088\u308d\u3057\u304f\uff01\"\r\n    str3 = \"\u306f\u3072\u3075\u3078\u307b\"\r\n    str4 = \"Good Bye\"\r\n    \r\n    MidB(str1, 3, 6) = \"xyz\"                 '\u300cbcd\u300d\u304c\u300cxyz\u300d\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\r\n    MidB(str2, 1, 4) = \"\u304a\u306f\u3088\u3046\"            '\u300c\u304a\u306f\u300d\u304c4\u30d0\u30a4\u30c8\u306a\u306e\u3067\u3001\u300c\u3053\u3093\u300d\u304c\u300c\u304a\u306f\u300d\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\r\n    MidB(str3, 3) = 123                      '\u7f6e\u304d\u63db\u3048\u308b\u6587\u5b57\u6570\u3092\u7701\u7565 \u21d2 \u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u300c123\u300d\u3059\u3079\u3066\r\n    MidB(str4, 3, 4) = \"Hello!)\"             '\u7f6e\u304d\u63db\u3048\u308b\u6587\u5b57\u5217\u306f\u300cHe\u300d\r\n    \r\n    MsgBox str1 & Chr(13) & str2 & Chr(13) & str3 & Chr(13) & str4\r\n\r\nEnd Sub\r\n\r\n\u3000\r\n\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/midbstatement01.jpg?ssl=1\" rel=\"lightbox[1847]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/midbstatement01.jpg?resize=210%2C232&#038;ssl=1\" alt=\"MidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8 \u4f8b\" width=\"210\" height=\"232\" class=\"alignnone size-full wp-image-1851\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Mid\u30fbMidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u3044\u65b9 \u3010\u66f8\u5f0f\u3011 { Mid | MidB } &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1850,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":"\u6587\u5b57\u5217\uff1a\u6587\u5b57\u5217\u5909\u6570\u5185\u306e\u4e00\u90e8\u3092\u7f6e\u304d\u63db\u3048\u308b\uff08Mid\u30fbMidB \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09 http:\/\/wp.me\/p4Ye9i-tN"},"categories":[37],"tags":[234,235,63,38,236],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/midstatement01.jpg?fit=210%2C232&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-tN","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1847"}],"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=1847"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1847\/revisions"}],"predecessor-version":[{"id":1892,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1847\/revisions\/1892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/1850"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=1847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=1847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=1847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}