{"id":4260,"date":"2022-05-25T08:39:16","date_gmt":"2022-05-24T23:39:16","guid":{"rendered":"https:\/\/extan.jp\/?p=4260"},"modified":"2022-05-25T11:22:28","modified_gmt":"2022-05-25T02:22:28","slug":"excel%e3%81%a7%e7%89%b9%e5%ae%9a%e3%81%ae%e6%96%87%e5%ad%97%e3%81%ab%e5%9b%b2%e3%81%be%e3%82%8c%e3%81%9f%e6%96%87%e5%ad%97%e3%82%92%e6%8a%bd%e5%87%ba%e3%83%bb%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=4260","title":{"rendered":"Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u95a2\u6570\u4ed6\u3001VBA\u3067\u5207\u308a\u51fa\u3059\u65b9\u6cd5\u3082\uff01"},"content":{"rendered":"<p>Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3055\u305b\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\u30fbExcel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u3084\u308a\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u3002<br \/>\n\u30fb\u95a2\u6570\u3084VBA\u3067\u52b9\u7387\u7684\u306b\u6587\u5b57\u5217\u3092\u5207\u308a\u51fa\u3057\u3057\u305f\u3044\u304c\u3084\u308a\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u3002<\/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\">\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<br \/>\n\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<br \/>\n<script async src=\"https:\/\/pagead2a.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><\/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=4260\/#%E9%96%A2%E6%95%B0%E3%81%A7%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" title=\"\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\">\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=4260\/#%E9%96%A2%E6%95%B0%E3%81%9D%E3%81%AE1%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%81%99%E3%82%8B\" title=\"\u95a2\u6570\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b\">\u95a2\u6570\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=4260\/#%E9%96%A2%E6%95%B0%E3%81%9D%E3%81%AE2%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" title=\"\u95a2\u6570\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\">\u95a2\u6570\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=4260\/#VBA%E3%81%A7%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" title=\"VBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\">VBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=4260\/#VBA%E3%81%9D%E3%81%AE1%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%81%99%E3%82%8B\" title=\"VBA\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b\">VBA\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=4260\/#VBA%E3%81%9D%E3%81%AE2%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" title=\"VBA\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b\">VBA\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=4260\/#%EF%BC%9C%E8%BF%BD%E5%8A%A0%EF%BC%9EVBA%E3%81%A7%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E5%89%8A%E9%99%A4%E3%81%97%E3%81%9F%E7%B5%90%E6%9E%9C%E3%82%92%E9%85%8D%E5%88%97%E3%81%AB%E6%A0%BC%E7%B4%8D%E3%81%97%E4%B8%80%E6%8B%AC%E8%B2%BC%E3%82%8A%E4%BB%98%E3%81%91%E3%81%99%E3%82%8B\" title=\"\uff1c\u8ffd\u52a0\uff1eVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3057\u305f\u7d50\u679c\u3092\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b\">\uff1c\u8ffd\u52a0\uff1eVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3057\u305f\u7d50\u679c\u3092\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=4260\/#VBA%E3%81%9D%E3%81%AE1%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%80%81%E9%85%8D%E5%88%97%E3%81%AB%E6%A0%BC%E7%B4%8D%E3%81%97%E4%B8%80%E6%8B%AC%E8%B2%BC%E3%82%8A%E4%BB%98%E3%81%91%E3%81%99%E3%82%8B\" title=\"VBA\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b\">VBA\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/extan.jp\/?p=4260\/#VBA%E3%81%9D%E3%81%AE2%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E5%89%8A%E9%99%A4%E3%80%81%E9%85%8D%E5%88%97%E3%81%AB%E6%A0%BC%E7%B4%8D%E3%81%97%E4%B8%80%E6%8B%AC%E8%B2%BC%E3%82%8A%E4%BB%98%E3%81%91%E3%81%99%E3%82%8B\" title=\"VBA\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b\">VBA\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/extan.jp\/?p=4260\/#VBA%E3%81%AE%E5%AE%9F%E8%A3%85%E6%89%8B%E9%A0%86\" title=\"VBA\u306e\u5b9f\u88c5\u624b\u9806\">VBA\u306e\u5b9f\u88c5\u624b\u9806<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/extan.jp\/?p=4260\/#VBA%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B\" title=\"VBA\u3092\u5b9f\u884c\u3059\u308b\">VBA\u3092\u5b9f\u884c\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/extan.jp\/?p=4260\/#%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=\"%E9%96%A2%E6%95%B0%E3%81%A7%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3092\u3057\u307e\u3059\u3002<br \/>\n\u65b9\u6cd5\u306f\u5de6\u5148\u65b9\u304b\u3089\u7279\u5b9a\u6587\u5b57\u306e\u4f4d\u7f6e\u3092\u5224\u5b9a\u3057\u3001\u4e00\u3064\u76ee\u3068\u4e8c\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u5272\u308a\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u7279\u5b9a\u6587\u5b57\u4e00\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3068\u4e8c\u3064\u76ee\u306e\u756a\u53f7\u304b\u3089\u62bd\u51fa\u3059\u308b\u6587\u5b57\u5217\u306e\u6587\u5b57\u6570\u3092\u7b97\u51fa\u3057\u3001\u62bd\u51fa\u306e\u5834\u5408\u306fMID\u95a2\u6570\u3001\u524a\u9664\u306e\u5834\u5408\u306fREPLACE\u95a2\u6570\u3092\u4f7f\u7528\u3057\u51e6\u7406\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4263\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp1.png\" alt=\"\" width=\"803\" height=\"115\" \/>\n<p>\u96fb\u8a71\u756a\u53f7\u5f62\u5f0f\u306e\u5024\u3092\u4f8b\u306b\u300c-\u300d\u3067\u56f2\u307e\u308c\u305f\u8d64\u5b57\u90e8\u5206\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E9%96%A2%E6%95%B0%E3%81%9D%E3%81%AE1%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%81%99%E3%82%8B\"><\/span>\u95a2\u6570\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>MID\u95a2\u6570\u3067\u53d6\u5f97\u3057\u305f\u7279\u5b9a\u306e\u6587\u5b57\u306e\u4f4d\u7f6e\u756a\u53f7\u304b\u3089\u958b\u59cb\u4f4d\u7f6e\u3068\u62bd\u51fa\u6587\u5b57\u5217\u306e\u6587\u5b57\u6570\u3092\u6307\u5b9a\u3057\u62bd\u51fa\u3059\u308b\u65b9\u6cd5\u3068\u306a\u308a\u307e\u3059\u3002 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4267\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp5.png\" alt=\"\" width=\"799\" height=\"112\" \/><\/p>\n<p>MID\u95a2\u6570\u306f\u305d\u306e\u540d\u306e\u901a\u308a\u53d6\u5f97\u958b\u59cb\u4f4d\u7f6e\u306e\u4e2d\u9593\u6307\u5b9a\u304c\u53ef\u80fd\u306a\u95a2\u6570\u3067\u3059\u3002<\/p>\n<p>MID\u95a2\u6570\u306e\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"info\">MID(\u6587\u5b57\u5217, \u958b\u59cb\u4f4d\u7f6e, \u6587\u5b57\u6570)<\/div>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306fB2\u306b\u5024\u3001C2\u306b\u7279\u5b9a\u6587\u5b57\u3067\u3042\u308b\u300c-\u300d\u3092\u5165\u529b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n1\u500b\u76ee\u306e\u7279\u6b8a\u6587\u5b57\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081FIND\u95a2\u6570\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>= FIND(C2,B2)<\/code><\/div>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4264\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp2.png\" alt=\"\" width=\"226\" height=\"123\" \/>\n<p>3\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u306d\u3002<br \/>\n\u300c00-\u300d\u306e\u6587\u5b57\u6570\u304c\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u305f\u5f62\u306b\u306a\u308a\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\">\u534a\u89d2\u3001\u5168\u89d2\u306a\u3069\u30d0\u30a4\u30c8\u6570\u306b\u95a2\u4fc2\u306a\u304f1\u6587\u5b571\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002<\/div>\n<\/div>\n<\/div>\n<p>\u7d9a\u3044\u30662\u500b\u76ee\u306e\u7279\u5b9a\u6587\u5b57\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>FIND\u95a2\u6570\u306e3\u3064\u76ee\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u691c\u7d22\u958b\u59cb\u4f4d\u7f6e\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u306bFIND\u95a2\u6570\u3067\u51fa\u3057\u305f1\u500b\u76ee\u306e\u6587\u5b57\u5217\u306e\u4f4d\u7f6e\u756a\u53f7\u306b+1\u3057\u305f\u6570\u5f0f\u3092\u5165\u529b\u3057\u30011\u3064\u76ee\u4ee5\u964d\u306e\u6587\u5b57\u5217\u3092\u691c\u7d22\u5bfe\u8c61\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u30de\u30c3\u30c1\u3057\u305f\u756a\u53f7\u304c2\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3068\u3044\u3046\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>=FIND(C2,B2, FIND(C2,B2)+1)<\/code><\/div>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4265\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp3.png\" alt=\"\" width=\"325\" height=\"126\" \/>\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\">FIND\u95a2\u6570\u3092\u5165\u308c\u5b50\u306b\u3059\u308b\u30682\u3064\u76ee\u30013\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u304c\u53d6\u5f97\u3067\u304d\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<p>\u4ed5\u4e0a\u3052\u306bMID\u95a2\u6570\u3067\u5bfe\u8c61\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>MID\u95a2\u6570\u306e\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"info\">MID(\u6587\u5b57\u5217, \u958b\u59cb\u4f4d\u7f6e, \u6587\u5b57\u6570)<\/div>\n<p>&nbsp;<\/p>\n<p>\u62bd\u51fa\u958b\u59cb\u4f4d\u7f6e\u306f1\u3064\u76ee\u306e\u7279\u5b9a\u6587\u5b57\u306e\u6b21\u304b\u3089\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001+1\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6587\u5b57\u6570\u306f\u30012\u500b\u76ee\u306e\u7279\u624b\u6587\u5b57\u306e\u4f4d\u7f6e\u756a\u53f7\u304b\u30891\u500b\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u5f15\u3044\u3066-1\u3057\u305f\u6570\u5f0f\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>=MID(B2,D2+1,E2-D2-1)<\/code><\/div>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4266\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp4.png\" alt=\"\" width=\"802\" height=\"130\" \/>\n<p>\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4267\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp5.png\" alt=\"\" width=\"799\" height=\"112\" \/>\n<p>\u306f\u3044\u3001\u300c-\u300d\u3067\u56f2\u307e\u308c\u305f\u6587\u5b57\u5217\u300c1111\u300d\u3060\u3051\u304c\u62bd\u51fa\u3055\u308c\u307e\u3057\u305f\u306d\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E9%96%A2%E6%95%B0%E3%81%9D%E3%81%AE2%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>\u95a2\u6570\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>REPLACE\u95a2\u6570\u3067\u53d6\u5f97\u3057\u305f\u7279\u5b9a\u306e\u6587\u5b57\u306e\u4f4d\u7f6e\u756a\u53f7\u304b\u3089\u958b\u59cb\u4f4d\u7f6e\u3068\u524a\u9664\u6587\u5b57\u5217\u306e\u6587\u5b57\u6570\u3092\u6307\u5b9a\u3057\u7a7a\u6587\u5b57\u201d\u201d\u3068\u7f6e\u304d\u63db\u3048\u524a\u9664\u3059\u308b\u65b9\u5f0f\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306fB3\u306b\u5024\u3001C3\u306b\u7279\u5b9a\u6587\u5b57\u3067\u3042\u308b\u300c-\u300d\u3092\u5165\u529b\u3057\u3001\u8d64\u5b57\u90e8\u5206\u3092\u524a\u9664\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>1\u500b\u76ee\u304a\u3088\u30732\u500b\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u53d6\u5f97\u65b9\u6cd5\u306f\u62bd\u51fa\u3068\u540c\u69d8\u3067\u3059\u306e\u3067\u3001\u5272\u611b\u3057\u307e\u3059\u3002<br \/>\nD1\u3001D2\u305d\u308c\u305e\u308c\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u6570\u5f0f\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4268\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp6.png\" alt=\"\" width=\"598\" height=\"152\" \/>\n<p>REPLACE\u95a2\u6570\u306e\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3001MID\u95a2\u6570\u3068\u540c\u69d8\u306b\u5404\u30bb\u30eb\u3067\u7b97\u51fa\u3057\u305f\u7d50\u679c\u3092\u5272\u308a\u5f53\u3066\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div class=\"info\">REPLACE(\u6587\u5b57\u5217,\u958b\u59cb\u4f4d\u7f6e,\u6587\u5b57\u6570,\u7f6e\u63db\u6587\u5b57)<\/div>\n<p>\u7f6e\u63db\u958b\u59cb\u4f4d\u7f6e\u306f1\u3064\u76ee\u306e\u7279\u5b9a\u6587\u5b57\u306e\u6b21\u304b\u3089\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001+1\u3057\u3066\u3044\u307e\u3059\u3002\u6587\u5b57\u6570\u306f\u30012\u500b\u76ee\u306e\u7279\u624b\u6587\u5b57\u306e\u4f4d\u7f6e\u756a\u53f7\u304b\u30891\u500b\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u5f15\u3044\u3066-1\u3057\u305f\u6570\u5f0f\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4269\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp7.png\" alt=\"\" width=\"802\" height=\"157\" \/>\n<p>\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4263\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp1.png\" alt=\"\" width=\"803\" height=\"115\" \/>\n<p>\u306f\u3044\u3001\u300c-\u300d\u3067\u56f2\u307e\u308c\u305f\u6587\u5b57\u5217\u3060\u3051\u304c\u524a\u9664\u3055\u308c\u300c00&#8211;2222\u300d\u3068\u306a\u308a\u307e\u3057\u305f\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%81%A7%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>VBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%81%9D%E3%81%AE1%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%81%99%E3%82%8B\"><\/span>VBA\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>VBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>B2\u304b\u3089B7\u307e\u3067\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u53d6\u5f97\u3057\u3001 \u300c-\u300d\u306e\u6587\u5b57\u4f4d\u7f6e\u3092\u5224\u5b9a\u3057\u3001\u305d\u306e\u9593\u306e\u6587\u5b57\u3092\u62bd\u51fa\u3001D\u5217\u3078\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4270\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp8.png\" alt=\"\" width=\"507\" height=\"213\" \/>\n<p>\u4ee5\u4e0b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b()\n\nDim strTemp As Variant\nDim i As Integer\nDim j As Integer\nDim strKeyword As String\nDim intKaishi As Integer\nDim intMozisu As Integer\n\n&#039;\u691c\u7d22\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrKeyword = &quot;-&quot;\n\n&#039;\u51e6\u7406\u5bfe\u8c61\u306e\u30bb\u30eb\u3092\u30ec\u30f3\u30b8\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrTemp = Range(&quot;B2:B7&quot;)\n\n&#039;\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5024\u3059\u3079\u3066\u3092\u5bfe\u8c61\u306b\u51e6\u7406\u3057\u307e\u3059\u3002\nFor i = LBound(strTemp, 1) To UBound(strTemp, 1)\n    For j = LBound(strTemp, 2) To UBound(strTemp, 2)\n    \n         &#039;\u672b\u5c3e\u304c\u6307\u5b9a\u6587\u5b57\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\n        If InStr(strTemp(i, j), strKeyword) Then\n        \n            &#039;\u30ad\u30fc\uff11\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\n            intKaishi = InStr(strTemp(i, j), strKeyword) + 1\n            \n            &#039;\u30ad\u30fc\uff12\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u304b\u30891\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u30de\u30a4\u30ca\u30b9\u3057\u3001\u62bd\u51fa\u6587\u5b57\u6570\u3092\u7b97\u51fa\u3057\u307e\u3059\n            intMozisu = InStr(intKaishi, strTemp(i, j), strKeyword) - intKaishi\n                \n            &#039;MID\u95a2\u6570\u3067\u5bfe\u8c61\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3057\u307e\u3059\n            Cells(i + 1, j + 3) = Mid(strTemp(i, j), intKaishi, intMozisu)\n            \n        Else\n        \n            Cells(i + 1, j + 3) = strTemp(i, j)\n            \n        End If\n    Next\nNext\n\nEnd Sub<\/code><\/pre>\n<p>\u691c\u7d22\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">strKeyword = &#8220;-&#8220;<\/div>\n<p>\u5024\u304c\u3042\u308b\u5bfe\u8c61\u30ec\u30f3\u30b8&#8221;B2:B7&#8243;\u3092\u5909\u6570\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">strTemp = Range(&#8220;B2:B7&#8221;)<\/div>\n<p>\u4e8c\u6b21\u5143\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5024\u3059\u3079\u3066\u3092\u5bfe\u8c61\u306b\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">For i = LBound(strTemp, 1) To UBound(strTemp, 1)<br \/>\nFor j = LBound(strTemp, 2) To UBound(strTemp, 2)<\/div>\n<p>&#8216;\u30ad\u30fc\uff11\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002FIND\u95a2\u6570\u3067\u306f\u306a\u304f\u3001InStr\u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<div class=\"info\">intKaishi = InStr(strTemp(i, j), strKeyword) + 1<\/div>\n<p>&#8216;\u30ad\u30fc\uff12\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u304b\u30891\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u30de\u30a4\u30ca\u30b9\u3057\u3001\u62bd\u51fa\u6587\u5b57\u6570\u3092\u7b97\u51fa\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">ntMozisu = InStr(intKaishi, strTemp(i, j), strKeyword) &#8211; intKaishi<\/div>\n<p>&#8216;MID\u95a2\u6570\u3067\u5bfe\u8c61\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">Cells(i + 1, j + 3) = Mid(strTemp(i, j), intKaishi, intMozisu)<\/div>\n<p>\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4282\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1552_temp1.png\" alt=\"\" width=\"510\" height=\"215\" \/>\n<p>\u300c-\u300d\u3067\u56f2\u307e\u308c\u305f\u90e8\u5206\u306e\u307f\u62bd\u51fa\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u300c-\u300d\u304c\u306a\u3044\u5834\u5408\u306f\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%81%9D%E3%81%AE2%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>VBA\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6b21\u306bVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>B2\u304b\u3089B7\u307e\u3067\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u53d6\u5f97\u3057\u3001 \u300c-\u300d\u306e\u6587\u5b57\u4f4d\u7f6e\u3092\u5224\u5b9a\u3057\u3001\u305d\u306e\u9593\u306e\u6587\u5b57\u3092\u524a\u9664\u3001D\u5217\u3078\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4272\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp10.png\" alt=\"\" width=\"550\" height=\"211\" \/>\n<p>\u4ee5\u4e0b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b()\n\nDim strTemp As Variant\nDim i As Integer\nDim j As Integer\nDim strKeyword As String\nDim intKaishi As Integer\nDim intOwari As Integer\n\n&#039;\u691c\u7d22\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrKeyword = &quot;-&quot;\n\n&#039;\u51e6\u7406\u5bfe\u8c61\u306e\u30bb\u30eb\u3092\u30ec\u30f3\u30b8\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrTemp = Range(&quot;B2:B7&quot;)\n\n&#039;\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5024\u3059\u3079\u3066\u3092\u5bfe\u8c61\u306b\u51e6\u7406\u3057\u307e\u3059\u3002\nFor i = LBound(strTemp, 1) To UBound(strTemp, 1)\n    For j = LBound(strTemp, 2) To UBound(strTemp, 2)\n    \n         &#039;\u672b\u5c3e\u304c\u6307\u5b9a\u6587\u5b57\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\n        If InStr(strTemp(i, j), strKeyword) Then\n        \n            &#039;\u30ad\u30fc1\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\n            intKaishi = InStr(strTemp(i, j), strKeyword) + 1\n\n            &#039;\u30ad\u30fc2\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\n            intOwari = InStr(intKaishi, strTemp(i, j), strKeyword)\n\n            &#039;Left\u95a2\u6570\u30671\u3064\u76ee\u3088\u308a\u524d\u306e\u5bfe\u8c61\u6587\u5b57\u5217\u3092\u3001Right\u95a2\u6570\u30672\u3064\u76ee\u4ee5\u964d\u306e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3057\u7d50\u5408\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\n            Cells(i + 1, j + 3) = Left(strTemp(i, j), intKaishi - 1) &amp; Right(strTemp(i, j), Len(strTemp(i, j)) - intOwari + 1)\n            \n        Else\n        \n            Cells(i + 1, j + 3) = strTemp(i, j)\n            \n        End If\n    Next\nNext\n\nEnd Sub<\/code><\/pre>\n<p>\u691c\u7d22\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">strKeyword = &#8220;-&#8220;<\/div>\n<p>\u5024\u304c\u3042\u308b\u5bfe\u8c61\u30ec\u30f3\u30b8&#8221;B2:B7&#8243;\u3092\u5909\u6570\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">strTemp = Range(&#8220;B2:B7&#8221;)<\/div>\n<p>\u4e8c\u6b21\u5143\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5024\u3059\u3079\u3066\u3092\u5bfe\u8c61\u306b\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">For i = LBound(strTemp, 1) To UBound(strTemp, 1)<br \/>\nFor j = LBound(strTemp, 2) To UBound(strTemp, 2)<\/div>\n<p>\u30ad\u30fc\uff11\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002FIND\u95a2\u6570\u3067\u306f\u306a\u304f\u3001InStr\u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<div class=\"info\">intKaishi = InStr(strTemp(i, j), strKeyword) + 1<\/div>\n<p>\u30ad\u30fc2\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059<\/p>\n<div class=\"info\">intOwari = InStr(intKaishi, strTemp(i, j), strKeyword)<\/div>\n<p>Left\u95a2\u6570\u30671\u3064\u76ee\u3088\u308a\u524d\u306e\u5bfe\u8c61\u6587\u5b57\u5217\u3092\u3001Right\u95a2\u6570\u30672\u3064\u76ee\u4ee5\u964d\u306e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3057\u7d50\u5408\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059<\/p>\n<div class=\"info\">Cells(i + 1, j + 3) = Left(strTemp(i, j), intKaishi &#8211; 1) &amp; Right(strTemp(i, j), Len(strTemp(i, j)) &#8211; intOwari + 1)<\/div>\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\">Substitute\u95a2\u6570\u3067\u524a\u9664\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u304c\u300c-####-\u300d\u3067\u691c\u7d22\u30fb\u7f6e\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u203bstrDelword\u306b\u56f2\u3044\u306e\u5024\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<br \/>\n&#8216;Cells(i + 1, j + 3) = WorksheetFunction.Substitute(strTemp(i, j), strKeyword &amp; strDelword &amp; strKeyword, strKeyword &amp; strKeyword, 1)\u307e\u305fReplace\u95a2\u6570\u3067\u3082\u540c\u3058\u8981\u9818\u3067\u3067\u304d\u307e\u3059\u304c\u30012\u3064\u76ee\u304b\u30893\u3064\u76ee\u306e\u56f2\u3044\u306e\u5024\u306e\u5bfe\u5fdc\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n&#8216;Cells(i + 1, j + 3) = Replace(strTemp(i, j), strKeyword &amp; strDelword &amp; strKeyword, strKeyword &amp; strKeyword, 1, 1)<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<p>\u5b9f\u88c5\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4273\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/061021_1522_temp11.png\" alt=\"\" width=\"551\" height=\"216\" \/>\n<p>\u300c-\u300d\u3067\u56f2\u307e\u308c\u305f\u90e8\u5206\u304c\u524a\u9664\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u300c-\u300d\u304c\u306a\u3044\u5834\u5408\u306f\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%EF%BC%9C%E8%BF%BD%E5%8A%A0%EF%BC%9EVBA%E3%81%A7%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E5%89%8A%E9%99%A4%E3%81%97%E3%81%9F%E7%B5%90%E6%9E%9C%E3%82%92%E9%85%8D%E5%88%97%E3%81%AB%E6%A0%BC%E7%B4%8D%E3%81%97%E4%B8%80%E6%8B%AC%E8%B2%BC%E3%82%8A%E4%BB%98%E3%81%91%E3%81%99%E3%82%8B\"><\/span>\uff1c\u8ffd\u52a0\uff1eVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3057\u305f\u7d50\u679c\u3092\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>VBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3057\u305f\u7d50\u679c\u3092\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3092\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3092\u3057\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\">\u914d\u5217\u304b\u3089\u306e\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u306b\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u51e6\u7406\u306e\u9ad8\u901f\u5316\u304c\u898b\u8fbc\u3081\u307e\u3059\u306d\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%81%9D%E3%81%AE1%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E6%8A%BD%E5%87%BA%E3%80%81%E9%85%8D%E5%88%97%E3%81%AB%E6%A0%BC%E7%B4%8D%E3%81%97%E4%B8%80%E6%8B%AC%E8%B2%BC%E3%82%8A%E4%BB%98%E3%81%91%E3%81%99%E3%82%8B\"><\/span>VBA\u305d\u306e1\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u8ffd\u52a0\u3001\u5909\u66f4\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u3059\u308b_\u914d\u5217\u51fa\u529b\u7248()\n\nDim strTemp As Variant\nDim strTemp2 As Variant\nDim i As Integer\nDim j As Integer\nDim strKeyword As String\nDim intKaishi As Integer\nDim intMozisu As Integer\n\n&#039;\u691c\u7d22\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrKeyword = &quot;-&quot;\n\n&#039;\u51e6\u7406\u5bfe\u8c61\u306e\u30bb\u30eb\u3092\u30ec\u30f3\u30b8\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrTemp = Range(&quot;B2:B7&quot;)\nstrTemp2 = Range(&quot;D2:D7&quot;)\n\n&#039;\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5024\u3059\u3079\u3066\u3092\u5bfe\u8c61\u306b\u51e6\u7406\u3057\u307e\u3059\u3002\nFor i = LBound(strTemp, 1) To UBound(strTemp, 1)\n    For j = LBound(strTemp, 2) To UBound(strTemp, 2)\n    \n         &#039;\u672b\u5c3e\u304c\u6307\u5b9a\u6587\u5b57\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\n        If InStr(strTemp(i, j), strKeyword) Then\n        \n            &#039;\u30ad\u30fc\uff11\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\n            intKaishi = InStr(strTemp(i, j), strKeyword) + 1\n            \n            &#039;\u30ad\u30fc\uff12\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u304b\u30891\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u30de\u30a4\u30ca\u30b9\u3057\u3001\u62bd\u51fa\u6587\u5b57\u6570\u3092\u7b97\u51fa\u3057\u307e\u3059\n            intMozisu = InStr(intKaishi, strTemp(i, j), strKeyword) - intKaishi\n                \n            &#039;MID\u95a2\u6570\u3067\u5bfe\u8c61\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3057\u307e\u3059\n            strTemp2(i, j) = Mid(strTemp(i, j), intKaishi, intMozisu)\n            \n        Else\n        \n            strTemp2(i, j) = strTemp(i, j)\n            \n        End If\n    Next\nNext\n\n&#039;\u914d\u5217\u304b\u3089\u30bb\u30eb\u3078\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3092\u3057\u307e\u3059\nRange(&quot;D2:D7&quot;) = strTemp2\n\nEnd Sub<\/code><\/pre>\n<p>\u8ffd\u52a0\u3001\u5909\u66f4\u3057\u305f\u7b87\u6240\u306b\u3064\u3044\u3066\u8aac\u660e\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u914d\u5217\u7528\u5909\u6570\u3092Variant\u578b\u3067\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>Dim strTemp2 As Variant<\/code><\/div>\n<p>\u8ffd\u52a0\u3057\u305f\u914d\u5217\u306b\u5bfe\u3057\u8cbc\u308a\u4ed8\u3051\u5148Range\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<br \/>\n\u540c\u6642\u306b\u4e8c\u6b21\u5143\u914d\u5217\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Range\u306e\u7bc4\u56f2\u6307\u5b9a\u306f\u51e6\u7406\u5bfe\u8c61\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3092\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>strTemp2 = Range(&quot;D2:D7&quot;)<\/code><\/div>\n<p>\u51e6\u7406\u7d50\u679c\u3092Cells\u3067\u76f4\u63a5\u5024\u8cbc\u308a\u4ed8\u3051\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3092strTemp2\u914d\u5217\u3078\u683c\u7d0d\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>            strTemp2(i, j) = Left(strTemp(i, j), intKaishi - 1) &amp; Right(strTemp(i, j), Len(strTemp(i, j)) - intOwari + 1)<br \/>\n        Else<br \/>\n            strTemp2(i, j) = strTemp(i, j)<\/code><\/div>\n<p>\u914d\u5217\u304b\u3089\u30bb\u30eb\u3078\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3092\u3057\u307e\u3059\u3002<br \/>\nRange\u306e\u7bc4\u56f2\u6307\u5b9a\u306f\u51e6\u7406\u5bfe\u8c61\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3092\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>Range(&quot;D2:D7&quot;) = strTemp2<\/code><\/div>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%81%9D%E3%81%AE2%EF%BC%9A%E7%89%B9%E5%AE%9A%E3%81%AE%E6%96%87%E5%AD%97%E3%81%AB%E5%9B%B2%E3%81%BE%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E3%82%92%E5%89%8A%E9%99%A4%E3%80%81%E9%85%8D%E5%88%97%E3%81%AB%E6%A0%BC%E7%B4%8D%E3%81%97%E4%B8%80%E6%8B%AC%E8%B2%BC%E3%82%8A%E4%BB%98%E3%81%91%E3%81%99%E3%82%8B\"><\/span>VBA\u305d\u306e2\uff1a\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u524a\u9664\u3059\u308b_\u914d\u5217\u51fa\u529b\u7248()\n\nDim strTemp As Variant\nDim strTemp2 As Variant\nDim i As Integer\nDim j As Integer\nDim strKeyword As String\nDim intKaishi As Integer\nDim intOwari As Integer\n\n&#039;\u691c\u7d22\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrKeyword = &quot;-&quot;\n\n&#039;\u51e6\u7406\u5bfe\u8c61\u306e\u30bb\u30eb\u3092\u30ec\u30f3\u30b8\u6307\u5b9a\u3057\u307e\u3059\u3002\nstrTemp = Range(&quot;B2:B7&quot;)\nstrTemp2 = Range(&quot;D2:D7&quot;)\n\n&#039;\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5024\u3059\u3079\u3066\u3092\u5bfe\u8c61\u306b\u51e6\u7406\u3057\u307e\u3059\u3002\nFor i = LBound(strTemp, 1) To UBound(strTemp, 1)\n    For j = LBound(strTemp, 2) To UBound(strTemp, 2)\n    \n         &#039;\u672b\u5c3e\u304c\u6307\u5b9a\u6587\u5b57\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\n        If InStr(strTemp(i, j), strKeyword) Then\n        \n            &#039;\u30ad\u30fc1\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\n            intKaishi = InStr(strTemp(i, j), strKeyword) + 1\n\n            &#039;\u30ad\u30fc2\u3064\u76ee\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u53d6\u5f97\u3057\u307e\u3059\n            intOwari = InStr(intKaishi, strTemp(i, j), strKeyword)\n\n            &#039;Left\u95a2\u6570\u30671\u3064\u76ee\u3088\u308a\u524d\u306e\u5bfe\u8c61\u6587\u5b57\u5217\u3092\u3001Right\u95a2\u6570\u30672\u3064\u76ee\u4ee5\u964d\u306e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3057\u7d50\u5408\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\n            strTemp2(i, j) = Left(strTemp(i, j), intKaishi - 1) &amp; Right(strTemp(i, j), Len(strTemp(i, j)) - intOwari + 1)\n            \n        Else\n        \n            strTemp2(i, j) = strTemp(i, j)\n            \n        End If\n    Next\nNext\n\n&#039;\u914d\u5217\u304b\u3089\u30bb\u30eb\u3078\u4e00\u62ec\u8cbc\u308a\u4ed8\u3051\u3092\u3057\u307e\u3059\nRange(&quot;D2:D7&quot;) = strTemp2\n\nEnd Sub<\/code><\/pre>\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\">\u4fee\u6b63\u7b87\u6240\u306f\u62bd\u51fa\u7248\u3068\u540c\u3058\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u8aac\u660e\u306f\u5272\u611b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%81%AE%E5%AE%9F%E8%A3%85%E6%89%8B%E9%A0%86\"><\/span>VBA\u306e\u5b9f\u88c5\u624b\u9806<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5b9f\u88c5\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fExcel\u5074\u306b\u3053\u306eVBA\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p>\u2460Excel\u3092\u65b0\u898f\u306b\u958b\u304d\u3001\u300c\u958b\u767a\u300d\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300cVisualBasic\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n\u3082\u3057\u304f\u306f\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u300cAlt\u300d\uff0b\u300cF11\u300d\u3067\u3082OK\u3067\u3059\u3002<\/p>\n<p>\u2461\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u5de6\u30da\u30a4\u30f3\u306eVBAProject\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u633f\u5165\u300d\u3001\u300c\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/05\/050919_1542_VBAFunctio2.png\" alt=\"\" \/>\n<p>\u2462\u53f3\u30da\u30a4\u30f3\u306e\u30a6\u30a4\u30f3\u30c9\u30a6\u306b\u4e0a\u8a18\u306eVBA\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1680\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/09\/092219_1211_temp22.png\" alt=\"\" width=\"1395\" height=\"879\" \/><\/p>\n<p>\u3053\u3061\u3089\u3067\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B\"><\/span>VBA\u3092\u5b9f\u884c\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3067\u306f\u65e9\u901fVBA\u306e\u5b9f\u884c\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2460\u300c\u958b\u767a\u300d\u30bf\u30d6\u306e\u300cVBA\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u5b9f\u884c\u3057\u305f\u3044\u30de\u30af\u30ed\u3092\u9078\u629e\u3057\u3001\u300c<strong>\u5b9f\u884c<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p>\u2461\u51e6\u7406\u304c\u3055\u308c\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u203b\u5b8c\u4e86\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u30b9\u30c6\u30fc\u30bf\u30b9\u7ba1\u7406\u306a\u3069\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5b9f\u88c5\u3057\u3066\u3082\u3089\u3048\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\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\">\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<br \/>\n\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ed6\u306b\u3082\u4fbf\u5229\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u3054\u53c2\u7167\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3055\u305b\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 \u30fbExcel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u3084\u308a\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u3002 \u30fb\u95a2\u6570\u3084VBA\u3067\u52b9\u7387\u7684\u306b\u6587\u5b57\u5217\u3092\u5207&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[76,53],"class_list":{"0":"post-4260","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","9":"tag-76","10":"tag-53","11":"article cf"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"description\" content=\"\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\" \/>\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=4260\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u95a2\u6570\u4ed6\u3001VBA\u3067\u5207\u308a\u51fa\u3059\u65b9\u6cd5\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=4260\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-24T23:39:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-25T02:22:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/str-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"652\" \/>\n\t<meta property=\"og:image:height\" content=\"416\" \/>\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=\"4\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=4260#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/str-3.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/str-3.png\",\"width\":652,\"height\":416},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=4260#webpage\",\"url\":\"https:\/\/extan.jp\/?p=4260\",\"name\":\"Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u95a2\u6570\u4ed6\u3001VBA\u3067\u5207\u308a\u51fa\u3059\u65b9\u6cd5\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=4260#primaryimage\"},\"datePublished\":\"2022-05-24T23:39:16+00:00\",\"dateModified\":\"2022-05-25T02:22:28+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"description\":\"\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=4260#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=4260\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=4260#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u95a2\u6570\u4ed6\u3001VBA\u3067\u5207\u308a\u51fa\u3059\u65b9\u6cd5\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":{"description":"\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","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=4260","og_locale":"ja_JP","og_type":"article","og_title":"Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u95a2\u6570\u4ed6\u3001VBA\u3067\u5207\u308a\u51fa\u3059\u65b9\u6cd5\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","og_url":"https:\/\/extan.jp\/?p=4260","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2022-05-24T23:39:16+00:00","article_modified_time":"2022-05-25T02:22:28+00:00","og_image":[{"width":652,"height":416,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/str-3.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":"4\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=4260#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/str-3.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2021\/06\/str-3.png","width":652,"height":416},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=4260#webpage","url":"https:\/\/extan.jp\/?p=4260","name":"Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u95a2\u6570\u4ed6\u3001VBA\u3067\u5207\u308a\u51fa\u3059\u65b9\u6cd5\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=4260#primaryimage"},"datePublished":"2022-05-24T23:39:16+00:00","dateModified":"2022-05-25T02:22:28+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"description":"\u30fb\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u30fbVBA\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/extan.jp\/?p=4260#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=4260"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=4260#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"Excel\u3067\u7279\u5b9a\u306e\u6587\u5b57\u306b\u56f2\u307e\u308c\u305f\u6587\u5b57\u3092\u62bd\u51fa\u30fb\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u95a2\u6570\u4ed6\u3001VBA\u3067\u5207\u308a\u51fa\u3059\u65b9\u6cd5\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\/4260","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=4260"}],"version-history":[{"count":16,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/4260\/revisions"}],"predecessor-version":[{"id":8368,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/4260\/revisions\/8368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/4261"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}