{"id":2423,"date":"2020-10-10T21:50:35","date_gmt":"2020-10-10T12:50:35","guid":{"rendered":"https:\/\/extan.jp\/?p=2423"},"modified":"2021-09-17T19:10:17","modified_gmt":"2021-09-17T10:10:17","slug":"%e3%80%90excel-vba%e3%80%91%e4%b8%80%e7%9e%ac%e3%81%a7%e3%83%97%e3%83%ab%e3%83%80%e3%82%a6%e3%83%b3%ef%bc%88%e3%83%89%e3%83%ad%e3%83%83%e3%83%97%e3%83%80%e3%82%a6%e3%83%b3%e3%83%aa%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=2423","title":{"rendered":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<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\">\n<p class=\"ez-toc-title \" >\u3082\u304f\u3058<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<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=2423\/#%E3%83%97%E3%83%AB%E3%83%80%E3%82%A6%E3%83%B3%EF%BC%88%E3%83%89%E3%83%AD%E3%83%83%E3%83%97%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AA%E3%82%B9%E3%83%88%EF%BC%89%E3%81%AE%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E6%BA%96%E5%82%99%E3%81%99%E3%82%8B\" title=\"\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b\">\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\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=2423\/#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-3\" href=\"https:\/\/extan.jp\/?p=2423\/#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-4\" href=\"https:\/\/extan.jp\/?p=2423\/#VBA%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%E3%83%9C%E3%82%BF%E3%83%B3%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B\" title=\"VBA\u3092\u5b9f\u884c\u3059\u308b\u30dc\u30bf\u30f3\u3092\u8ffd\u52a0\u3059\u308b\">VBA\u3092\u5b9f\u884c\u3059\u308b\u30dc\u30bf\u30f3\u3092\u8ffd\u52a0\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=2423\/#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-6\" href=\"https:\/\/extan.jp\/?p=2423\/#%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<p>Excel\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u4f5c\u6210\u3053\u3068\u306f\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e45\u3057\u3076\u308a\u306b\u4f5c\u308d\u3046\u3068\u3057\u3066\u3082\u3001\u64cd\u4f5c\u65b9\u6cd5\u3092\u5fd8\u308c\u305f\u308a\u3057\u3066\u3001\u614c\u3066\u3066\u8abf\u3079\u308b\u306a\u3093\u3066\u3053\u3068\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u4e2d\u3067\u9762\u5012\u3060\u306a\u3068\u601d\u3046\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\u30fb\u30ea\u30b9\u30c8\u304c\u5927\u91cf\u306b\u3042\u308b\u5834\u5408\u5165\u529b\u304c\u305f\u3044\u3078\u3093\uff01<br \/>\n\u30fb\u8907\u6570\u500b\u4f5c\u308b\u3068\u304d\u306b\u64cd\u4f5c\u3092\u7e70\u308a\u8fd4\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044<br \/>\n\u30fb\u30ea\u30b9\u30c8\u306e\u66f4\u65b0\u304c\u96e3\u3057\u3044<\/div>\n<p>\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b\u3001<br \/>\n<strong>Excel VBA\u3092\u4f7f\u3044\u3001\u30dc\u30bf\u30f3\u30ef\u30f3\u30af\u30ea\u30c3\u30af\u3067\u4e00\u77ac\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u500b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/strong><br \/>\n\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><script><\/p>\n<p><\/script><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%83%97%E3%83%AB%E3%83%80%E3%82%A6%E3%83%B3%EF%BC%88%E3%83%89%E3%83%AD%E3%83%83%E3%83%97%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AA%E3%82%B9%E3%83%88%EF%BC%89%E3%81%AE%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E6%BA%96%E5%82%99%E3%81%99%E3%82%8B\"><\/span>\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u306f\u4f55\u3067\u3082\u3088\u3044\u3067\u3059\u304c\u3001<\/p>\n<p>\u4eca\u56de\u306f\u30b5\u30f3\u30d7\u30eb\u30674\u3064\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>1\u5217\u76ee\u306f\u56fd\u306e\u30ea\u30b9\u30c8\u3001<br \/>\n2\u5217\u76ee\u306f\u90fd\u5e02\u306e\u30ea\u30b9\u30c8\u3001<br \/>\n3\u5217\u76ee\u306f\u4ef6\u6570\u3001<br \/>\n4\u5217\u76ee\u306f\u5e74\u4ee3\u3001<\/p>\n<p>\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2442\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_2.png\" alt=\"\" width=\"976\" height=\"460\" \/>\n<p>\u305d\u308c\u3092B\u5217\u306e8\u884c\u76ee\u304b\u3089\u5165\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u6700\u5927\u3067255\u4ef6\u307e\u3067\u306e\u767b\u9332\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001<strong>255\u4ef6\u4ee5\u4e0b<\/strong>\u306b\u3059\u308b\u3088\u3046\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001\u30ea\u30b9\u30c8\u306e\u4e0a\u3001<\/p>\n<p>6\u884c\u76ee\u306b\u300c\u30bf\u30a4\u30c8\u30eb\u300d<br \/>\n7\u884c\u76ee\u306b\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u300d<br \/>\n\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2443\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_3.png\" alt=\"\" width=\"976\" height=\"100\" \/>\n<p>2\u9805\u76ee\u306f\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u3092\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3057\u305f\u6642\u306b\u51fa\u3066\u304f\u308b\u5185\u5bb9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2441\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_1.png\" alt=\"\" width=\"241\" height=\"114\" \/>\n<p>\u3053\u306e\u3088\u3046\u306a\u5f62\u306b\u306a\u308c\u3070\u5b8c\u6210\u3067\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2444\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_4.png\" alt=\"\" width=\"976\" height=\"552\" \/>\n<p><script><\/p>\n<p><\/script><\/p>\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>\u7d9a\u3044\u3066Excel\u306eVisual Basic Editor\u3078VBA\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u8907\u6570\u500b\u4f5c\u6210()\n   \n  Dim list As Variant\n  Dim n As Long\n  \n    &#039;4\u5217\u5206\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\n    For n = 2 To 5\n      \n      \n            &#039;\u30d7\u30eb\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u6700\u5927100\u884c\u307e\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002\n            list = Application.Transpose(Range(Cells(8, n), Cells(107, n)))\n            \n                &#039;5\u884c\u76ee\u306e\u30bb\u30eb\u306b\u633f\u5165\u3059\u308b\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n                With Cells(5, n).Validation\n                \n                    &#039;\u65e2\u5b58\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\u304c\u3042\u308c\u3070\u524a\u9664\u3057\u307e\u3059\u3002\n                    .Delete\n                    \n                    &#039;\u30ea\u30b9\u30c8\u3092\u633f\u5165\u3057\u307e\u3059\u3002\n                    .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:=Join(list, &quot;,&quot;)\n                    .IgnoreBlank = True\n                    \n                    &#039;\u30d7\u30eb\u30c0\u30a6\u30f3\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n                    .InCellDropdown = True\n                    \n                    &#039;\u30d7\u30eb\u30c0\u30a6\u30f3\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n                    .InputTitle = Cells(6, n)\n                    \n                    &#039;\u30a8\u30e9\u30fc\u30bf\u30a4\u30c8\u30eb\u306f\u7a7a\u6b04\u3067\u3059\u3002\n                    .ErrorTitle = &quot;&quot;\n                    \n                    &#039;\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u6642\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n                    .InputMessage = Cells(7, n)\n                    \n                    &#039;\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u7a7a\u6b04\u3067\u3059\u3002\n                    .ErrorMessage = &quot;&quot;\n                    \n                    .IMEMode = xlIMEModeNoControl\n                    \n                    .ShowInput = True\n                    .ShowError = True\n                \n                End With\n\n        \n    Next\n  \n  MsgBox &quot;5\u884c\u76ee\u306b\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f&quot;, vbInformation\n    \nEnd Sub\n<\/code><\/pre>\n<p>\u5b9f\u88c5\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fExcel\u5074\u306bVBA\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<p><script><\/p>\n<p><\/script><\/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<\/p>\n<p>\u300c<strong>\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u8907\u6570\u500b\u4f5c\u6210<\/strong>\u300d\u3092\u9078\u629e\u3057\u3001<\/p>\n<p>\u300c<strong>\u5b9f\u884c<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p>\u2461\u300c<strong>5\u884c\u76ee\u306b\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f<\/strong>\u300d\u304c\u8868\u793a\u3055\u308c\u3001<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2445\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_5.png\" alt=\"\" width=\"236\" height=\"147\" \/><\/p>\n<p>\u30d7\u30eb\u30c0\u30a6\u30f3\u304c5\u884c\u76ee\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u306d\uff01<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2446\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_6.png\" alt=\"\" width=\"1074\" height=\"217\" \/>\n<p>\u306a\u304a\u3001\u4f5c\u6210\u3057\u305f\u30d7\u30eb\u30c0\u30a6\u30f3\u306f<\/p>\n<p><strong>\u30b3\u30d4\u30da<\/strong>\u3067\u5225\u306e\u30b7\u30fc\u30c8\u3084\u5225\u306eExcel\u3078\u79fb\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\uff01<\/p>\n<p><script><\/p>\n<p><\/script><\/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%E3%83%9C%E3%82%BF%E3%83%B3%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B\"><\/span>VBA\u3092\u5b9f\u884c\u3059\u308b\u30dc\u30bf\u30f3\u3092\u8ffd\u52a0\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2449\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_9.png\" alt=\"\" width=\"818\" height=\"220\" \/>\n<p>\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u30dc\u30bf\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304f\u3068<\/p>\n<p>\u30dc\u30bf\u30f3\u307d\u3061\u3067\u4e00\u77ac\u3067\u5b9f\u884c\u3055\u308c\u308b\u306e\u3067\u3081\u3061\u3083\u4fbf\u5229\u3067\u3059\uff01<\/p>\n<p>\u3088\u304f\u4f7f\u3046\u5834\u5408\u306f\u305c\u3072\u5b9f\u88c5\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5b9f\u88c5\u306e\u4ed5\u65b9\u306f\u3001<\/p>\n<p>\u30ea\u30dc\u30f3\u30e1\u30cb\u30e5\u300c\u958b\u767a\u300d\uff1e\u300c\u633f\u5165\u300d\uff1e\u300c\u30d5\u30a9\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001<\/p>\n<p>\u53f3\u4e0a\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2447\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_7.png\" alt=\"\" width=\"547\" height=\"280\" \/>\n<p>\u30dc\u30bf\u30f3\u304c\u633f\u5165\u3055\u308c\u308b\u306e\u3067\u3001\u30dc\u30bf\u30f3\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u300c\u30de\u30af\u30ed\u306e\u767b\u9332\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u30de\u30af\u30ed\u306e\u767b\u9332\u30a6\u30a4\u30f3\u30c9\u30a6\u304c\u51fa\u305f\u3089\u3001\u300c\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u8907\u6570\u500b\u4f5c\u6210\u300d\u3092\u9078\u629e\u3057\u3066\u3001<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2448\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1239_8.png\" alt=\"\" width=\"414\" height=\"409\" \/>\n<p>\u300cOK\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n<p><script><\/p>\n<p><\/script><\/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>VBA\u306e\u5185\u5bb9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30014\u5217\u5206\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u306e\u3067\u3001<br \/>\n4\u56de\u7e70\u308a\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n5\u5217\u306b\u3057\u3066\u305f\u3044\u5834\u5408\u306f5\u21926\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>For n = 2 To 5<\/strong><\/p>\n<p>\u30b7\u30fc\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30d7\u30eb\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n\u6700\u5927100\u884c\u307e\u3067\u53d6\u5f97\u3059\u308b\u8a2d\u5b9a\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n255\u500b\u307e\u3067\u884c\u3051\u307e\u3059\u306e\u3067\u3001100\u500b\u3067\u306f\u8db3\u308a\u306a\u3044\u5834\u5408\u306f\u3001Cells(<strong>107<\/strong>, n)\u3092\u5897\u3084\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>list = Application.Transpose(Range(Cells(8, n), Cells(107, n)))<\/strong><\/p>\n<p>\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u633f\u5165\u3059\u308b\u5834\u6240\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n5\u884c\u76ee\u306e\u30bb\u30eb\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>With Cells(5, n).Validation<\/strong><\/p>\n<p>\u65e2\u5b58\u306e\u5165\u529b\u898f\u5247\u3067\u3042\u308b\u30d7\u30eb\u30c0\u30a6\u30f3\u304c\u3042\u308c\u3070\u524a\u9664\u3057\u307e\u3059\u3002<br \/>\n<strong>.Delete<\/strong><\/p>\n<p>\u30ea\u30b9\u30c8\u3092\u633f\u5165\u3057\u307e\u3059\u3002<br \/>\n\u5165\u529b\u5024\u306e\u30bf\u30a4\u30d7\u306f\u300c\u30ea\u30b9\u30c8\u300d\u3067\u3059\u3002<strong><br \/>\n.Add Type:=xlValidateList,<\/strong><\/p>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u300c\u505c\u6b62\u300d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<strong><br \/>\nAlertStyle:=xlValidAlertStop,<\/strong><\/p>\n<p>\u5165\u529b\u5024\u306e\u5024\u306e\u7bc4\u56f2\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<strong><br \/>\nOperator:=xlBetween,<\/strong><\/p>\n<p>\u6761\u4ef6\u5f0f1\u306fLIST\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<strong><br \/>\nFormula1:=Join(list, &#8220;,&#8221;)<\/strong><\/p>\n<p>\u30bb\u30eb\u7bc4\u56f2\u3078\u306e\u7a7a\u767d\u5024\u306e\u5165\u529b\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<br \/>\n<strong>.IgnoreBlank = True<\/strong><\/p>\n<p>\u30d7\u30eb\u30c0\u30a6\u30f3\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<strong>.InCellDropdown = True<\/strong><\/p>\n<p>\u30d7\u30eb\u30c0\u30a6\u30f3\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<strong>.InputTitle = Cells(6, n)<\/strong><\/p>\n<p>\u30a8\u30e9\u30fc\u30bf\u30a4\u30c8\u30eb\u306f\u7a7a\u6b04\u3067\u3059\u3002<br \/>\n<strong>.ErrorTitle = &#8220;&#8221;<\/strong><\/p>\n<p>\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u6642\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<strong>.InputMessage = Cells(7, n)<\/strong><\/p>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u7a7a\u6b04\u3067\u3059\u3002<br \/>\n<strong>.ErrorMessage = &#8220;&#8221;<\/strong><\/p>\n<p>IME\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306a\u3057\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<strong>.IMEMode = xlIMEModeNoControl<\/strong><\/p>\n<p>\u5165\u529b\u6642\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<strong>.ShowInput = True<\/strong><\/p>\n<p>\u7121\u52b9\u306a\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc \u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n<strong>.ShowError = True<\/strong><\/p>\n<p><script><\/p>\n<p><\/script><\/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\u306eVBA\u3067\u52b9\u7387\u3088\u304f\u30d7\u30eb\u30c0\u30a6\u30f3\u304c\u4f5c\u6210\u3001\u66f4\u65b0\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001<\/p>\n<p>\u305c\u3072\u6d3b\u7528\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u4f5c\u6210\u3053\u3068\u306f\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u4e45\u3057\u3076\u308a\u306b\u4f5c\u308d\u3046\u3068\u3057\u3066\u3082\u3001\u64cd\u4f5c\u65b9\u6cd5\u3092\u5fd8\u308c\u305f\u308a\u3057\u3066\u3001\u614c\u3066\u3066\u8abf\u3079\u308b\u306a\u3093\u3066\u3053\u3068\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u305d\u3093\u306a\u4e2d\u3067\u9762\u5012\u3060\u306a\u3068\u601d\u3046\u3053\u3068\u306f\u3001 \u30fb\u30ea\u30b9\u30c8\u304c\u5927\u91cf&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2425,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[68],"class_list":{"0":"post-2423","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","8":"tag-68","9":"article cf"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\"\/>\n\t<meta name=\"keywords\" content=\"\u30d7\u30eb\u30c0\u30a6\u30f3\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=2423\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=2423\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-10-10T12:50:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-09-17T10:10:17+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#article\",\"name\":\"Excel VBA\\u3067\\u30d7\\u30eb\\u30c0\\u30a6\\u30f3\\uff08\\u30c9\\u30ed\\u30c3\\u30d7\\u30c0\\u30a6\\u30f3\\u30ea\\u30b9\\u30c8\\uff09\\u3092\\u8907\\u6570\\u4f5c\\u6210\\u3059\\u308b\\u65b9\\u6cd5 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"headline\":\"Excel VBA\\u3067\\u30d7\\u30eb\\u30c0\\u30a6\\u30f3\\uff08\\u30c9\\u30ed\\u30c3\\u30d7\\u30c0\\u30a6\\u30f3\\u30ea\\u30b9\\u30c8\\uff09\\u3092\\u8907\\u6570\\u4f5c\\u6210\\u3059\\u308b\\u65b9\\u6cd5\",\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/101020_1125_1.png\",\"width\":1066,\"height\":554},\"datePublished\":\"2020-10-10T21:50:35+09:00\",\"dateModified\":\"2021-09-17T19:10:17+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#webpage\"},\"articleSection\":\"Excel VBA, \\u30d7\\u30eb\\u30c0\\u30a6\\u30f3\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/extan.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"position\":2,\"name\":\"Microsoft 365\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=47\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=17#listItem\",\"name\":\"Excel\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=17#listItem\",\"position\":3,\"name\":\"Excel\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=17\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=6#listItem\",\"name\":\"Excel VBA\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=6#listItem\",\"position\":4,\"name\":\"Excel VBA\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=6\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#listItem\",\"name\":\"Excel VBA\\u3067\\u30d7\\u30eb\\u30c0\\u30a6\\u30f3\\uff08\\u30c9\\u30ed\\u30c3\\u30d7\\u30c0\\u30a6\\u30f3\\u30ea\\u30b9\\u30c8\\uff09\\u3092\\u8907\\u6570\\u4f5c\\u6210\\u3059\\u308b\\u65b9\\u6cd5\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=17#listItem\",\"name\":\"Excel\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#listItem\",\"position\":5,\"name\":\"Excel VBA\\u3067\\u30d7\\u30eb\\u30c0\\u30a6\\u30f3\\uff08\\u30c9\\u30ed\\u30c3\\u30d7\\u30c0\\u30a6\\u30f3\\u30ea\\u30b9\\u30c8\\uff09\\u3092\\u8907\\u6570\\u4f5c\\u6210\\u3059\\u308b\\u65b9\\u6cd5\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=6#listItem\",\"name\":\"Excel VBA\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"url\":\"https:\\\/\\\/extan.jp\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/extan.jp\\\/?author=1\",\"name\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#webpage\",\"url\":\"https:\\\/\\\/extan.jp\\\/?p=2423\",\"name\":\"Excel VBA\\u3067\\u30d7\\u30eb\\u30c0\\u30a6\\u30f3\\uff08\\u30c9\\u30ed\\u30c3\\u30d7\\u30c0\\u30a6\\u30f3\\u30ea\\u30b9\\u30c8\\uff09\\u3092\\u8907\\u6570\\u4f5c\\u6210\\u3059\\u308b\\u65b9\\u6cd5 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/101020_1125_1.png\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423\\\/#mainImage\",\"width\":1066,\"height\":554},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=2423#mainImage\"},\"datePublished\":\"2020-10-10T21:50:35+09:00\",\"dateModified\":\"2021-09-17T19:10:17+09:00\"},{\"@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\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u30a8\u30af\u77ed\uff5cExtan.jp","description":"","canonical_url":"https:\/\/extan.jp\/?p=2423","robots":"max-image-preview:large","keywords":"\u30d7\u30eb\u30c0\u30a6\u30f3","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/extan.jp\/?p=2423#article","name":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u30a8\u30af\u77ed\uff5cExtan.jp","headline":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/extan.jp\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1125_1.png","width":1066,"height":554},"datePublished":"2020-10-10T21:50:35+09:00","dateModified":"2021-09-17T19:10:17+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/extan.jp\/?p=2423#webpage"},"isPartOf":{"@id":"https:\/\/extan.jp\/?p=2423#webpage"},"articleSection":"Excel VBA, \u30d7\u30eb\u30c0\u30a6\u30f3"},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=2423#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","position":2,"name":"Microsoft 365","item":"https:\/\/extan.jp\/?cat=47","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=17#listItem","name":"Excel"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=17#listItem","position":3,"name":"Excel","item":"https:\/\/extan.jp\/?cat=17","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=6#listItem","name":"Excel VBA"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=6#listItem","position":4,"name":"Excel VBA","item":"https:\/\/extan.jp\/?cat=6","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=2423#listItem","name":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=17#listItem","name":"Excel"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=2423#listItem","position":5,"name":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=6#listItem","name":"Excel VBA"}}]},{"@type":"Organization","@id":"https:\/\/extan.jp\/#organization","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","url":"https:\/\/extan.jp\/"},{"@type":"Person","@id":"https:\/\/extan.jp\/?author=1#author","url":"https:\/\/extan.jp\/?author=1","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=2423#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30bf\u30ab\u30d2\u30ed@extan"}},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=2423#webpage","url":"https:\/\/extan.jp\/?p=2423","name":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u30a8\u30af\u77ed\uff5cExtan.jp","inLanguage":"ja","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=2423#breadcrumblist"},"author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"creator":{"@id":"https:\/\/extan.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/101020_1125_1.png","@id":"https:\/\/extan.jp\/?p=2423\/#mainImage","width":1066,"height":554},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=2423#mainImage"},"datePublished":"2020-10-10T21:50:35+09:00","dateModified":"2021-09-17T19:10:17+09:00"},{"@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","inLanguage":"ja","publisher":{"@id":"https:\/\/extan.jp\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","og:type":"article","og:title":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u30a8\u30af\u77ed\uff5cExtan.jp","og:url":"https:\/\/extan.jp\/?p=2423","article:published_time":"2020-10-10T12:50:35+00:00","article:modified_time":"2021-09-17T10:10:17+00:00","twitter:card":"summary","twitter:title":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 | \u30a8\u30af\u77ed\uff5cExtan.jp"},"aioseo_meta_data":{"post_id":"2423","title":null,"description":"","keywords":"","keyphrases":null,"canonical_url":"","og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2021-03-15 13:47:31","updated":"2026-06-24 15:20:55","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=47\" title=\"Microsoft 365\">Microsoft 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=17\" title=\"Excel\">Excel<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=6\" title=\"Excel VBA\">Excel VBA<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tExcel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/extan.jp"},{"label":"Microsoft 365","link":"https:\/\/extan.jp\/?cat=47"},{"label":"Excel","link":"https:\/\/extan.jp\/?cat=17"},{"label":"Excel VBA","link":"https:\/\/extan.jp\/?cat=6"},{"label":"Excel VBA\u3067\u30d7\u30eb\u30c0\u30a6\u30f3\uff08\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\uff09\u3092\u8907\u6570\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","link":"https:\/\/extan.jp\/?p=2423"}],"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2423","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=2423"}],"version-history":[{"count":9,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2423\/revisions"}],"predecessor-version":[{"id":3101,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2423\/revisions\/3101"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/2425"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}