{"id":819,"date":"2019-06-22T01:48:23","date_gmt":"2019-06-21T16:48:23","guid":{"rendered":"https:\/\/extan.jp\/?p=819"},"modified":"2022-03-15T10:33:18","modified_gmt":"2022-03-15T01:33:18","slug":"%e3%80%90excel-vba%e3%80%91%e3%82%a8%e3%82%af%e3%82%bb%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e5%90%8d%e3%81%ae%e4%b8%80%e8%a6%a7%e3%82%92%e6%8a%bd%e5%87%ba%e3%81%97%e3%83%8f%e3%82%a4%e3%83%91%e3%83%bc","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=819","title":{"rendered":"\u3010Excel VBA\u3011\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p>\u6570\u591a\u304f\u3042\u308b\u30b7\u30fc\u30c8\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u307e\u3068\u3081\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3051\u3069\u305d\u3093\u306a\u6642\u306b\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\u30fbExcel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044<br \/>\n\u30fbExcel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u305f\u4e0a\u3067\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3067\u8a72\u5f53\u30b7\u30fc\u30c8\u3078\u79fb\u52d5\u3057\u305f\u3044\u304c\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044<\/div>\n<p>\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u305d\u3093\u306a\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b\u3001<\/p>\n<div class=\"rdinfo\">Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_66_1 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\">\u3082\u304f\u3058<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=819\/#Excel%E5%86%85%E3%81%AE%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AE%E3%82%B5%E3%82%A4%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E3%81%A4%E3%81%8F%E3%82%8B\" title=\"Excel\u5185\u306e\u30b7\u30fc\u30c8\u306e\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092\u3064\u304f\u308b\">Excel\u5185\u306e\u30b7\u30fc\u30c8\u306e\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092\u3064\u304f\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=819\/#%E3%82%B7%E3%83%BC%E3%83%88%E5%90%8D%E3%81%AE%E4%B8%80%E8%A6%A7%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%83%8F%E3%82%A4%E3%83%91%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%AF%E4%BB%98%E3%81%8D%E3%81%A7%E4%B8%80%E8%A6%A7%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8BVBA\" title=\"\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308bVBA\">\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308bVBA<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=819\/#VBA%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\" title=\"VBA\u3092\u8a2d\u5b9a\u3059\u308b\">VBA\u3092\u8a2d\u5b9a\u3059\u308b<\/a><\/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=819\/#VBA%E3%82%92%E5%AE%9F%E8%A3%85%E3%81%99%E3%82%8B\" title=\"VBA\u3092\u5b9f\u88c5\u3059\u308b\">VBA\u3092\u5b9f\u88c5\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=819\/#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-6\" href=\"https:\/\/extan.jp\/?p=819\/#VBA%E3%81%AE%E8%AA%AC%E6%98%8E\" title=\"VBA\u306e\u8aac\u660e\">VBA\u306e\u8aac\u660e<\/a><\/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=819\/#%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=\"Excel%E5%86%85%E3%81%AE%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AE%E3%82%B5%E3%82%A4%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E3%81%A4%E3%81%8F%E3%82%8B\"><\/span>Excel\u5185\u306e\u30b7\u30fc\u30c8\u306e\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092\u3064\u304f\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4eca\u56de\u306f\u62bd\u51fa\u3057\u305f\u30b7\u30fc\u30c8\u4e00\u89a7\u3078\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u4ed8\u4e0e\u3057\u3066\u3001\u8a72\u5f53\u3059\u308b\u30b7\u30fc\u30c8\u3078\u30b9\u30d1\u30b9\u30d1\u9077\u79fb\u3067\u304d\u308b\u3088\u3046\u306a\u3082\u306e\u3092VBA\u3067\u5b9f\u73fe\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Excel\u30d6\u30c3\u30af\u5185\u306b\u3042\u308b10\u30b7\u30fc\u30c8\u5206\u306e\u30b7\u30fc\u30c8\u540d\u3068A1\u5217\u306e\u5024\u3092\u53d6\u5f97\u3057\u4e00\u89a7\u5316\u3001\u305d\u306e\u4e0a\u3067\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-831\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp5.png\" alt=\"\" width=\"560\" height=\"257\" \/><\/p>\n<p>A\u5217\u306e\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30b7\u30fc\u30c8\u9593\u306e\u79fb\u52d5\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-832\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp6.png\" alt=\"\" width=\"503\" height=\"451\" \/><\/p>\n<p>\u3055\u3089\u306b\u5404\u30b7\u30fc\u30c8\u306e\u4e2d\u306e\u30bb\u30eb\u306e\u5024\u3092\u540c\u6642\u306b\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u30b7\u30fc\u30c8\u540d\u3060\u3051\u3067\u306f\u306a\u304f\u30b7\u30fc\u30c8\u5185\u306b\u3042\u308b\u5024\u3082\u5f15\u3063\u5f35\u3063\u3066\u304d\u3066\u30c7\u30fc\u30bf\u3092\u30b7\u30fc\u30c8\u5225\u306b\u6bd4\u8f03\u3067\u304d\u308b\u3088\u3046\u4f75\u305b\u3066\u4e00\u89a7\u5316\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%82%B7%E3%83%BC%E3%83%88%E5%90%8D%E3%81%AE%E4%B8%80%E8%A6%A7%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%83%8F%E3%82%A4%E3%83%91%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%AF%E4%BB%98%E3%81%8D%E3%81%A7%E4%B8%80%E8%A6%A7%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8BVBA\"><\/span>\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308bVBA<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308bVBA\u306e\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 \u30b7\u30fc\u30c8\u540d\u4e00\u89a7\u53d6\u5f97()\n\n    Dim objSheetName As Worksheet\n    Dim objSheetNameMT As Worksheet\n    Dim i As Integer\n\n    &#039;\u30b7\u30fc\u30c8\u4e00\u89a7\u3092\u51fa\u529b\u3059\u308b\u30b7\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n    Set objSheetNameMT = Sheets(&quot;\u4e00\u89a7&quot;)\n    &#039;\u4e00\u89a7\u30b7\u30fc\u30c8\u306e\u5185\u5bb9\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n    objSheetNameMT.Columns(&quot;A:B&quot;).Clear\n    i = 1\n    \n    &#039;Sheets\u304b\u30891\u30b7\u30fc\u30c8\u3065\u3064\u53d6\u5f97\u3057\u307e\u3059\u3002\n    For Each objSheetName In Sheets\n        &#039;\u4e00\u89a7\u30b7\u30fc\u30c8\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3059\u3002\n        If objSheetName.Name &lt;&gt; &quot;\u4e00\u89a7&quot; Then\n            &#039;\u30b7\u30fc\u30c8\u540d\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u4e00\u89a7\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3057\u307e\u3059\u3002\n            objSheetNameMT.Cells(i, 1).Value = objSheetName.Name\n            &#039;A1\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u4e00\u89a7\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3057\u307e\u3059\u3002\n            objSheetNameMT.Cells(i, 2).Value = objSheetName.Range(&quot;A1&quot;)\n            &#039;\u30b7\u30fc\u30c8\u3078\u306e\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n            objSheetNameMT.Hyperlinks.Add Anchor:=objSheetNameMT.Cells(i, 1), Address:=&quot;&quot;, SubAddress:=&quot;&#039;&quot; &amp; objSheetName.Name &amp; &quot;&#039;!A1&quot;, TextToDisplay:=objSheetName.Name\n            \n            i = i + 1\n        End If\n    Next\n    \nEnd Sub<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\"><\/span>VBA\u3092\u8a2d\u5b9a\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>VBA\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b7\u30fc\u30c8\u4e00\u89a7\u3092\u51fa\u529b\u3059\u308b\u30b7\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u306e\u30b7\u30fc\u30c8\u540d\u306f&#8221;\u4e00\u89a7&#8221;\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>Set objSheetNameMT = Sheets(&quot;\u4e00\u89a7&quot;)<\/code><\/div>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%82%92%E5%AE%9F%E8%A3%85%E3%81%99%E3%82%8B\"><\/span>VBA\u3092\u5b9f\u88c5\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>VBA\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2460[Alt] + [F11]\u3092\u62bc\u4e0b\u3057\u3066VBA\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u958b\u304d\u307e\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\u306e\u30de\u30af\u30ed\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-825\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1635_temp1-1.png\" alt=\"\" width=\"935\" height=\"297\" \/><\/p>\n<p>\u2463\u30b7\u30fc\u30c8\u540d\u300c\u4e00\u89a7\u300d\u306e\u30b7\u30fc\u30c8\u3092\u65b0\u898f\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u2464\u30ea\u30dc\u30f3\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u30de\u30af\u30ed\u306e\u5b9f\u884c\u306f\u53ef\u80fd\u3067\u3059\u304c\u3001\u4fbf\u5229\u306a\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u30dc\u30bf\u30f3\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u2463\u3067\u4f5c\u6210\u3057\u305f\u300c\u4e00\u89a7\u300d\u306e\u30b7\u30fc\u30c8\u306e\u30ea\u30dc\u30f3\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u958b\u767a\u300d\u30bf\u30d6\uff1e\u300c\u633f\u5165\u300d\uff1e\u5de6\u4e0a\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-829\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp3.png\" alt=\"\" width=\"371\" height=\"241\" \/><\/p>\n<p>\u306f\u3044\u3001\u633f\u5165\u3055\u308c\u307e\u3057\u305f\u3002\u30dc\u30bf\u30f3\u540d\u79f0\u306f\u9069\u5b9c\u5909\u3048\u3066\u3082\u3089\u3048\u3070\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-828\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp2.png\" alt=\"\" width=\"286\" height=\"157\" \/><\/p>\n<p>\u3053\u306e\u30dc\u30bf\u30f3\u306b\u4eca\u56de\u306e\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-830\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp4.png\" alt=\"\" width=\"424\" height=\"409\" \/><\/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>VBA\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u8a2d\u7f6e\u3057\u305f\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<\/p>\n<p>\u306f\u3044\uff01\u30b7\u30fc\u30c8\u4e00\u89a7\u304c\u53d6\u5f97\u3055\u308c\u307e\u3057\u305f\u306d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-831\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp5.png\" alt=\"\" width=\"560\" height=\"257\" \/><\/p>\n<p>\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u306f\u3044\uff01\u30b7\u30fc\u30c8\u9593\u306e\u79fb\u52d5\u3082\u3067\u304d\u307e\u3057\u305f\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-832\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp6.png\" alt=\"\" width=\"503\" height=\"451\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"VBA%E3%81%AE%E8%AA%AC%E6%98%8E\"><\/span>VBA\u306e\u8aac\u660e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e00\u89a7\u30b7\u30fc\u30c8\u306e\u5185\u5bb9\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>objSheetNameMT.Columns(&quot;A:B&quot;).Clear<\/code><\/div>\n<p>Sheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u30891\u30b7\u30fc\u30c8\u3065\u3064\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>For Each objSheetName In Sheets<\/code><\/div>\n<p>\u4e00\u89a7\u30b7\u30fc\u30c8\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>If objSheetName.Name &lt;&gt; &quot;\u4e00\u89a7&quot; Then<\/code><\/div>\n<p>\u30b7\u30fc\u30c8\u540d\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u4e00\u89a7\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>objSheetNameMT.Cells(i, 1).Value = objSheetName.Name<\/code><\/div>\n<p>A1\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u4e00\u89a7\u30b7\u30fc\u30c8\u3078\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>objSheetNameMT.Cells(i, 2).Value = objSheetName.Range(&quot;A1&quot;)<\/code><\/div>\n<p>\u30b7\u30fc\u30c8\u3078\u306e\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\"><code>objSheetNameMT.Hyperlinks.Add Anchor:=objSheetNameMT.Cells(i, 1), Address:=&quot;&quot;, SubAddress:=&quot;&#039;&quot; &amp; objSheetName.Name &amp; &quot;&#039;!A1&quot;, TextToDisplay:=objSheetName.Name<\/code><\/div>\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\">Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306e\u6a5f\u80fd\u3067\u3088\u308a\u4f7f\u3044\u3084\u3059\u304f\u306a\u308c\u3070\u4f55\u3088\u308a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u591a\u304f\u3042\u308b\u30b7\u30fc\u30c8\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u307e\u3068\u3081\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u3051\u3069\u305d\u3093\u306a\u6642\u306b\u60a9\u3080\u3053\u3068\u306f\u3001 \u30fbExcel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044 \u30fbExcel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u305f\u4e0a\u3067\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3067\u8a72\u5f53\u30b7\u30fc\u30c8\u3078\u79fb\u52d5&#8230;<\/p>\n","protected":false},"author":1,"featured_media":828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[124,13,76],"class_list":{"0":"post-819","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","8":"tag-124","9":"tag-13","10":"tag-76","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=\"Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\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=819\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Excel VBA\u3011\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308b - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=819\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-21T16:48:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-15T01:33:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"286\" \/>\n\t<meta property=\"og:image:height\" content=\"157\" \/>\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=\"7\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=819#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp2.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp2.png\",\"width\":286,\"height\":157},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=819#webpage\",\"url\":\"https:\/\/extan.jp\/?p=819\",\"name\":\"\u3010Excel VBA\u3011\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308b - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=819#primaryimage\"},\"datePublished\":\"2019-06-21T16:48:23+00:00\",\"dateModified\":\"2022-03-15T01:33:18+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"description\":\"Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=819#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=819\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=819#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Excel VBA\u3011\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308b\"}]},{\"@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":"Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\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=819","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Excel VBA\u3011\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308b - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","og_url":"https:\/\/extan.jp\/?p=819","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2019-06-21T16:48:23+00:00","article_modified_time":"2022-03-15T01:33:18+00:00","og_image":[{"width":286,"height":157,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp2.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":"7\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=819#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp2.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2019\/06\/062119_1637_temp2.png","width":286,"height":157},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=819#webpage","url":"https:\/\/extan.jp\/?p=819","name":"\u3010Excel VBA\u3011\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308b - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=819#primaryimage"},"datePublished":"2019-06-21T16:48:23+00:00","dateModified":"2022-03-15T01:33:18+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"description":"Excel\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/extan.jp\/?p=819#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=819"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=819#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"\u3010Excel VBA\u3011\u30b7\u30fc\u30c8\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u4ed8\u304d\u3067\u4e00\u89a7\u8868\u793a\u3059\u308b"}]},{"@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\/819","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=819"}],"version-history":[{"count":13,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/819\/revisions"}],"predecessor-version":[{"id":7857,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/819\/revisions\/7857"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/828"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}