{"id":283,"date":"2018-03-19T17:41:38","date_gmt":"2018-03-19T08:41:38","guid":{"rendered":"http:\/\/thirtiesprogrammer.com\/?p=283"},"modified":"2019-06-11T18:09:44","modified_gmt":"2019-06-11T09:09:44","slug":"%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e7%b5%8c%e9%a8%93%e3%81%8c%e3%81%aa%e3%81%8430%e4%bb%a3%e3%81%ae%e6%96%b9%e3%81%abexcel%e3%83%9e%e3%82%af%e3%83%ad%ef%bc%88vba%ef%bc%89","status":"publish","type":"post","link":"https:\/\/thirtiesprogrammer.com\/?p=283","title":{"rendered":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u672a\u7d4c\u9a13\u306e30\u4ee3\u306bExcelVBA\u304c\u304a\u3059\u3059\u3081\u306a\u7406\u7531"},"content":{"rendered":"<p><img class=\"aligncenter size-full wp-image-2368\" src=\"https:\/\/thirtiesprogrammer.com\/wp\/wp-content\/uploads\/2018\/03\/czjHIndEtflKpwX1560231588_1560231642.jpg\" alt=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u672a\u7d4c\u9a13\u306e30\u4ee3\u306bExcelVBA\u304c\u304a\u3059\u3059\u3081\u306a\u7406\u7531\" width=\"640\" height=\"427\" srcset=\"https:\/\/thirtiesprogrammer.com\/wp\/wp-content\/uploads\/2018\/03\/czjHIndEtflKpwX1560231588_1560231642.jpg 640w, https:\/\/thirtiesprogrammer.com\/wp\/wp-content\/uploads\/2018\/03\/czjHIndEtflKpwX1560231588_1560231642-300x200.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>30\u4ee3\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7d4c\u9a13\u304c\u306a\u3044\u65b9\u306f\u3001\u307e\u305a<strong>ExcelVBA<\/strong>\u3092\u5b66\u3076\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u305c\u304b\u3068\u3044\u3046\u3068\u3001\u4ed5\u4e8b\u306a\u3069\u3067Excel\u3092\u4f7f\u3046\u4eba\u304cExcelVBA\u3092\u77e5\u3063\u3066\u3044\u308b\u3068\u3001<b>\u4f5c\u696d\u52b9\u7387\u3092\u5927\u5e45\u306b\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b<\/b>\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u3088\u308a\u8a73\u3057\u304f\u89e3\u8aac\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div id=\"toc_container\" class=\"toc_light_blue no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#ExcelVBA\"><span class=\"toc_number toc_depth_1\">1<\/span> ExcelVBA\u3092\u5b66\u3079\u3070\u4ed5\u4e8b\u3067\u3059\u3050\u306b\u6d3b\u7528\u3067\u304d\u308b<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">2<\/span> \u3084\u308a\u305f\u3044\u3053\u3068\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u898b\u3064\u3051\u3084\u3059\u3044<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">3<\/span> \u8ee2\u8077\u3092\u8003\u3048\u305f\u6642\u3001\u5e74\u53ce\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b<\/a><\/li><li><a href=\"#ExcelVBA-2\"><span class=\"toc_number toc_depth_1\">4<\/span> Excel\u30de\u30af\u30ed\uff08VBA\uff09\u306e\u5b66\u3073\u65b9<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">5<\/span> \u307e\u3068\u3081<\/a><\/li><\/ul><\/div>\n\n<h2><span id=\"ExcelVBA\">ExcelVBA\u3092\u5b66\u3079\u3070\u4ed5\u4e8b\u3067\u3059\u3050\u306b\u6d3b\u7528\u3067\u304d\u308b<\/span><\/h2>\n<p>\u5468\u77e5\u306e\u3068\u304a\u308a\u3001Excel\u306f\u307b\u3068\u3093\u3069\u306e\u4f01\u696d\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067ExcelVBA\u3092\u5b66\u3079\u3070\u3001\u305d\u306e\u6280\u8853\u306f\u3059\u3050\u306b\u4ed5\u4e8b\u3067\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u822c\u7684\u306b<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3076 = \u30d7\u30ed\u30b0\u30e9\u30de\u3084SE\u3078\u306e\u8ee2\u8077\u3092\u76ee\u6307\u3059<\/p>\n<p>\u3068\u601d\u3044\u304c\u3061\u3067\u3059\u304c\u3001\u5b9f\u306f<b>\u4e8b\u52d9\u8077\u3067ExcelVBA\u304c\u3067\u304d\u308b<\/b>\u3068\u3044\u3046\u306e\u306f\u304b\u306a\u308a\u306e\u5f37\u307f\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4f8b\u3048\u3070\u3042\u306a\u305f\u306e\u8077\u5834\u3067\u3001\u6bce\u65e5\u540c\u3058\u4f5c\u696d\u3092\u624b\u4f5c\u696d\u3067\u6bce\u56de\u884c\u3063\u3066\u3044\u308b\u3068\u3057\u305f\u3089\u3001\u305d\u308c\u3092<span class=\"huto\">ExcelVBA\u3067\u81ea\u52d5\u5316<\/span>\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u306a\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span id=\"i\">\u3084\u308a\u305f\u3044\u3053\u3068\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u898b\u3064\u3051\u3084\u3059\u3044<\/span><\/h2>\n<p><img class=\"aligncenter size-full wp-image-820\" src=\"https:\/\/thirtiesprogrammer.com\/wp\/wp-content\/uploads\/2018\/03\/5a35cba0e55d2c1651341711b3bf569e_s.jpg\" alt=\"\" width=\"640\" height=\"427\" srcset=\"https:\/\/thirtiesprogrammer.com\/wp\/wp-content\/uploads\/2018\/03\/5a35cba0e55d2c1651341711b3bf569e_s.jpg 640w, https:\/\/thirtiesprogrammer.com\/wp\/wp-content\/uploads\/2018\/03\/5a35cba0e55d2c1651341711b3bf569e_s-300x200.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u4f8b\u3048\u3070Excel\u3067\u300c\u3007\u3007\u3092\u81ea\u52d5\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u300d\u3068\u601d\u3063\u305f\u6642\u3001\u30cd\u30c3\u30c8\u3067\u691c\u7d22\u3059\u308b\u3068\u3001\u304a\u304a\u3088\u305d\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u5b9f\u73fe\u3067\u304d\u308b<span class=\"huto\">\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/span>\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3082\u3057\u305d\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3084\u308a\u305f\u3044\u4e8b\u3068\u5c11\u3057\u9055\u3063\u3066\u3044\u305f\u308a\u3057\u305f\u5834\u5408\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u90e8\u3092\u66f8\u304d\u63db\u3048\u305f\u308a\u3001\u4ed6\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3064\u306a\u304e\u5408\u308f\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3001\u6bd4\u8f03\u7684\u7c21\u5358\u306b\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306f\u60c5\u5831\u3092\u5f97\u308b\u306e\u304c\u5bb9\u6613\u306a\u306e\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a73\u7d30\u307e\u3067\u77e5\u3089\u306a\u304f\u3066\u3082\u3001\u51e6\u7406\u3092\u3064\u306a\u3050\u3060\u3051\u3067\u3042\u306a\u305f\u306e\u3084\u308a\u305f\u3044\u4e8b\u304c\u5b9f\u73fe\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30de\u30a4\u30ca\u30fc\u306a\u8a00\u8a9e\u3060\u3068\u305d\u3046\u306f\u3044\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span id=\"i-2\">\u8ee2\u8077\u3092\u8003\u3048\u305f\u6642\u3001\u5e74\u53ce\u30a2\u30c3\u30d7\u306b\u3064\u306a\u304c\u308b<\/span><\/h2>\n<p>Excel\u30de\u30af\u30ed\uff08VBA\uff09\u306e\u30b9\u30ad\u30eb\u304c\u3042\u308b\u3068\u3001\u305d\u308c\u3060\u3051\u3067<b>\u5e74\u53ce\u3084\u6642\u7d66\u304c\u30a2\u30c3\u30d7<\/b>\u3059\u308b\u5834\u5408\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30cf\u30ed\u30fc\u30ef\u30fc\u30af\u306e\u7d71\u8a08\u60c5\u5831\u3092\u898b\u3066\u3082\u3001\u4e8b\u52d9\u8077\u306e\u52df\u96c6\u306f\u4f9b\u7d66\u904e\u591a\u306b\u306a\u3063\u3066\u3044\u308b\u6642\u4ee3\u3067\u3059\u304c\u3001Excel\u30de\u30af\u30ed\uff08VBA\uff09\u304c\u3067\u304d\u308b\u3060\u3051\u3067\u3001\u4ed6\u306e\u4eba\u3068\u5dee\u5225\u5316\u3067\u304d\u3001\u307e\u305f\u5f15\u304d\u5408\u3044\u304c\u591a\u3044\u306e\u3082\u4e8b\u5b9f\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u7406\u7531\u3068\u3057\u3066\u306f\u3001\u5b9a\u578b\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3059\u308b\u6280\u8853\u3092\u3001\u305d\u306e\u8077\u5834\u3067\u3042\u306a\u305f\u3060\u3051\u304c\u6709\u3057\u3066\u3044\u308b\u3068\u3057\u305f\u3089\u3001\u305d\u308c\u306f\u4ed6\u8005\u306b\u306f\u306a\u3044\u5f37\u307f\u306b\u306a\u308b\u306e\u3067\u3001\u305d\u308c\u304c\u53ce\u5165\u306b\u53cd\u6620\u3055\u308c\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span id=\"ExcelVBA-2\">Excel\u30de\u30af\u30ed\uff08VBA\uff09\u306e\u5b66\u3073\u65b9<\/span><\/h2>\n<p>Excel\u30de\u30af\u30ed\uff08VBA\uff09\u306e\u5b66\u3073\u65b9\u3067\u3059\u304c\u3001\u307e\u305a\u306f\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u65b9\u6cd5\u3068\u4ed5\u7d44\u307f\u3092\u66f8\u7c4d\u3084\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u5b66\u3076\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u64cd\u4f5c\u306a\u3069\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u4ee5\u524d\u306e\u57fa\u672c\u64cd\u4f5c\u306a\u306e\u3067\u3001\u3053\u308c\u3089\u306f\u4e8b\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3059\u308b\u753b\u9762\u306e\u958b\u304d\u65b9<\/li>\n<li>\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3059\u308b\u6642\u306e\u753b\u9762\u64cd\u4f5c<\/li>\n<li>\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3059\u308b\u6642\u306e\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30eb<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u305d\u3057\u3066\u3001\u9069\u5f53\u306b\u904a\u3093\u3067\u3042\u308b\u7a0b\u5ea6\u306e\u57fa\u790e\u304c\u5b66\u3079\u305f\u5f8c\u306f\u3001\u5b9f\u8df5\u3042\u308b\u306e\u307f\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u81ea\u5206\u304c\u3084\u308a\u305f\u3044\u3053\u3068\u3092\u30de\u30af\u30ed\u3067\u3069\u306e\u3088\u3046\u306b\u3084\u308b\u304b\u3092\u8abf\u3079\u308b<\/li>\n<li>\u8abf\u3079\u305f\u7d50\u679c\uff08\u30b5\u30f3\u30d7\u30eb\uff09\u3092\u30b3\u30d4\u30da\u3057\u3066\u52d5\u304b\u3057\u3066\u307f\u308b<\/li>\n<li>\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3044\u3068\u3053\u308d\u3092\u3055\u3089\u306b\u8abf\u3079\u308b<\/li>\n<\/ol>\n<p>\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u3067\u6c17\u304c\u4ed8\u3051\u3070Excel\u30de\u30af\u30ed\uff08VBA\uff09\u3092\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u300c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3068\u3053\u308d\u3092\u3055\u3089\u306b\u8abf\u3079\u308b\u300d\u3067\u3001\u9014\u4e2d\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u306a\u305c\u6b62\u307e\u3063\u305f\u306e\u304b\uff1f\u304c\u308f\u304b\u308b\u3088\u3046\u306b\u30ed\u30b0\u3084\u30a8\u30e9\u30fc\u30c8\u30e9\u30c3\u30d7\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u3001\u3088\u308a\u3064\u307e\u305a\u304d\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span id=\"i-3\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u3082\u3057\u3042\u306a\u305f\u304c\u666e\u6bb5Excel\u3092\u4f7f\u308f\u308c\u3066\u3044\u3066\u3001VBA\u3092\u77e5\u3089\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u30cd\u30c3\u30c8\u3067\u9069\u5f53\u306b\u8abf\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>VBA\u306f\u591a\u304f\u306e\u5358\u7d14\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3057\u3066\u304f\u308c\u307e\u3059\u306e\u3067\u3001\u77e5\u3063\u3066\u3044\u308b\u3068\u304b\u306a\u308a\u6642\u9593\u3092\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>30\u4ee3\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7d4c\u9a13\u304c\u306a\u3044\u65b9\u306f\u3001\u307e\u305aExcelVBA\u3092\u5b66\u3076\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002 \u306a\u305c\u304b\u3068\u3044\u3046\u3068\u3001\u4ed5\u4e8b\u306a\u3069\u3067Excel\u3092\u4f7f\u3046\u4eba\u304cExcelVBA\u3092\u77e5\u3063\u3066\u3044\u308b\u3068\u3001\u4f5c\u696d\u52b9\u7387\u3092\u5927\u5e45\u306b\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2368,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69,67,68],"tags":[],"_links":{"self":[{"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=\/wp\/v2\/posts\/283"}],"collection":[{"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283"}],"version-history":[{"count":12,"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":2370,"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions\/2370"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=\/wp\/v2\/media\/2368"}],"wp:attachment":[{"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thirtiesprogrammer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}