{"id":4601,"date":"2021-08-28T22:21:30","date_gmt":"2021-08-28T13:21:30","guid":{"rendered":"https:\/\/extan.jp\/?p=4601"},"modified":"2022-09-13T10:32:04","modified_gmt":"2022-09-13T01:32:04","slug":"%e3%80%90excel-vba%e3%80%91%e7%94%bb%e5%83%8f%e3%81%ae%e3%81%bf%e4%b8%80%e6%8b%ac%e9%81%b8%e6%8a%9e%e3%81%97%e3%81%a6%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%ef%bc%81%e3%82%b5%e3%82%a4","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=4601","title":{"rendered":"\u3010Excel VBA\u3011\u753b\u50cf\u306e\u307f\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u30b5\u30a4\u30ba\u306b\u3088\u308b\u7bc4\u56f2\u6307\u5b9a\u3082\uff01"},"content":{"rendered":"<p>Excel VBA\u3067\u8907\u6570\u306e\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3057\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4f8b\u3048\u3070\uff64\u3042\u308bExcel\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u4ee5\u5916\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u3066\uff64\u305d\u306e\u4e2d\u304b\u3089\u753b\u50cf\u306e\u307f\u9078\u629e\u306e\u4e0a\u3001\u524a\u9664\u3092\u3057\u305f\u3044\u3068\u304d\u306a\u3069\u3067\u3059\uff61<\/p>\n<p>\u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\u30fb\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u753b\u50cf\u3092\u4e00\u3064\u4e00\u9078\u629e\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u9762\u5012\u3002<br \/>\n\u30fb\u57fa\u672c\u64cd\u4f5c\u3084VBA\u3067\u52b9\u7387\u7684\u306b\u884c\u3044\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<strong><br \/>\nExcel VBA\u3067\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066<br \/>\n<\/strong>\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<p><script><\/p>\n<p><\/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=4601\/#Excel_%E3%81%A7%E7%94%BB%E5%83%8F%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C\" title=\"Excel \u3067\u753b\u50cf\u3092\u524a\u9664\u3059\u308b\u57fa\u672c\u64cd\u4f5c\">Excel \u3067\u753b\u50cf\u3092\u524a\u9664\u3059\u308b\u57fa\u672c\u64cd\u4f5c<\/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=4601\/#%EF%BC%BB%E3%83%9B%E3%83%BC%E3%83%A0%EF%BC%BD%E3%82%BF%E3%83%96%E3%81%8B%E3%82%89%E3%80%8C%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AE%E9%81%B8%E6%8A%9E%E3%80%8D%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8B\" title=\"\uff3b\u30db\u30fc\u30e0\uff3d\u30bf\u30d6\u304b\u3089\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9078\u629e\u300d\u3092\u9078\u629e\u3059\u308b\">\uff3b\u30db\u30fc\u30e0\uff3d\u30bf\u30d6\u304b\u3089\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9078\u629e\u300d\u3092\u9078\u629e\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=4601\/#%E7%94%BB%E5%83%8F%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" title=\"\u753b\u50cf\u3092\u524a\u9664\u3059\u308b\">\u753b\u50cf\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=4601\/#Excel_VBA%E3%81%A7%E8%A4%87%E6%95%B0%E3%81%AE%E7%94%BB%E5%83%8F%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%97%E3%80%81%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" title=\"Excel VBA\u3067\u8907\u6570\u306e\u753b\u50cf\u3092\u9078\u629e\u3057\u3001\u524a\u9664\u3059\u308b\">Excel VBA\u3067\u8907\u6570\u306e\u753b\u50cf\u3092\u9078\u629e\u3057\u3001\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=4601\/#%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AB%E3%81%82%E3%82%8B%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%8B%E3%82%89%E7%94%BB%E5%83%8F%E3%81%AE%E3%81%BF%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8BVBA\" title=\"\u30b7\u30fc\u30c8\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u753b\u50cf\u306e\u307f\u3092\u9078\u629e\u3059\u308bVBA\">\u30b7\u30fc\u30c8\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u753b\u50cf\u306e\u307f\u3092\u9078\u629e\u3059\u308bVBA<\/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=4601\/#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-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=4601\/#%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%9F%E7%94%BB%E5%83%8F%E3%81%AE%E3%81%BF%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%97%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8BVBA\" title=\"\u9078\u629e\u3057\u305f\u753b\u50cf\u306e\u307f\u3092\u9078\u629e\u3057\u524a\u9664\u3059\u308bVBA\">\u9078\u629e\u3057\u305f\u753b\u50cf\u306e\u307f\u3092\u9078\u629e\u3057\u524a\u9664\u3059\u308bVBA<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=4601\/#VBA%E3%81%AE%E8%AA%AC%E6%98%8E-2\" title=\"VBA\u306e\u8aac\u660e\">VBA\u306e\u8aac\u660e<\/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=4601\/#%E7%94%BB%E5%83%8F%E3%81%AE%E9%AB%98%E3%81%95%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%97%E3%81%A6%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%9F%E7%94%BB%E5%83%8F%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8BVBA\" title=\"\u753b\u50cf\u306e\u9ad8\u3055\u3092\u6307\u5b9a\u3057\u3066\u9078\u629e\u3057\u305f\u753b\u50cf\u3092\u524a\u9664\u3059\u308bVBA\">\u753b\u50cf\u306e\u9ad8\u3055\u3092\u6307\u5b9a\u3057\u3066\u9078\u629e\u3057\u305f\u753b\u50cf\u3092\u524a\u9664\u3059\u308bVBA<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/extan.jp\/?p=4601\/#VBA%E3%81%AE%E8%AA%AC%E6%98%8E-3\" title=\"VBA\u306e\u8aac\u660e\">VBA\u306e\u8aac\u660e<\/a><\/li><\/ul><\/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=4601\/#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-12\" href=\"https:\/\/extan.jp\/?p=4601\/#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-13\" href=\"https:\/\/extan.jp\/?p=4601\/#%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_%E3%81%A7%E7%94%BB%E5%83%8F%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C\"><\/span>Excel \u3067\u753b\u50cf\u3092\u524a\u9664\u3059\u308b\u57fa\u672c\u64cd\u4f5c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Excel \u3067\u753b\u50cf\u3092\u524a\u9664\u3059\u308b\u57fa\u672c\u64cd\u4f5c\u306b\u3064\u3044\u3066\u8aac\u660e\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u753b\u50cf\u4ee5\u5916\u306b\u3082\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3084\u753b\u50cf\u306a\u3069\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u30b7\u30fc\u30c8\u304c\u3042\u308a\u3001\u753b\u50cf\u306e\u307f\u524a\u9664\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4640\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp1.png\" alt=\"\" width=\"654\" height=\"541\" \/>\n<h3><span class=\"ez-toc-section\" id=\"%EF%BC%BB%E3%83%9B%E3%83%BC%E3%83%A0%EF%BC%BD%E3%82%BF%E3%83%96%E3%81%8B%E3%82%89%E3%80%8C%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AE%E9%81%B8%E6%8A%9E%E3%80%8D%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8B\"><\/span>\uff3b\u30db\u30fc\u30e0\uff3d\u30bf\u30d6\u304b\u3089\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9078\u629e\u300d\u3092\u9078\u629e\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\uff3b\u30db\u30fc\u30e0\uff3d\u30bf\u30d6\u304b\u3089\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9078\u629e\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4608\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/070821_1257_temp1.png\" alt=\"\" width=\"211\" height=\"373\" \/><\/p>\n<p>\u753b\u50cf\u306e\u307f\u3067\u3042\u308c\u3070\u3001\u300c\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u3066\u30b8\u30e3\u30f3\u30d7\u300d\u3092\u9078\u629e\u3057\u3001\u9078\u629e\u30aa\u30d7\u30b7\u30e7\u30f3\u30a6\u30a4\u30f3\u30c9\u30a6\u306e\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3092\u9078\u629e\u3057\u300cOK\u300d\u3092\u62bc\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4609\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/070821_1257_temp2.png\" alt=\"\" width=\"220\" height=\"381\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4610\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/070821_1257_temp3.png\" alt=\"\" width=\"339\" height=\"361\" \/><\/p>\n<p>\u753b\u50cf\u306e\u9078\u629e\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4641\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp2.png\" alt=\"\" width=\"656\" height=\"543\" \/><\/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\">\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9078\u629e\u300d\u3092\u3057\u306a\u304f\u3066\u3082\u5de6\u30af\u30ea\u30c3\u30af\u3067\u9078\u629e\u53ef\u80fd\u3067\u3059\u3002<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%E7%94%BB%E5%83%8F%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>\u753b\u50cf\u3092\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u524a\u9664\u3057\u305f\u3044\u753b\u50cf\u3092\u9078\u629e\u3057\u305f\u3089\u30ad\u30fc\u30dc\u30fc\u30c9\u306e<span class=\"keybtn\">Delete<\/span>\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p>\u524a\u9664\u3067\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4642\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp3.png\" alt=\"\" width=\"663\" height=\"536\" \/>\n<p><script><\/p>\n<p><\/script><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Excel_VBA%E3%81%A7%E8%A4%87%E6%95%B0%E3%81%AE%E7%94%BB%E5%83%8F%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%97%E3%80%81%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>Excel VBA\u3067\u8907\u6570\u306e\u753b\u50cf\u3092\u9078\u629e\u3057\u3001\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6b21\u306f\u3053\u308c\u307e\u3067\u624b\u52d5\u3067\u884c\u3063\u3066\u304d\u305f\u753b\u50cf\u306e\u9078\u629e\u3068\u524a\u9664\u3092VBA\u3067\u4e00\u5ea6\u306b\u51e6\u7406\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u51e6\u7406\u5bfe\u8c61\u306f\u624b\u52d5\u3067\u884c\u3063\u305f\u3082\u306e\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4640\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp1.png\" alt=\"\" width=\"654\" height=\"541\" \/>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AB%E3%81%82%E3%82%8B%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%8B%E3%82%89%E7%94%BB%E5%83%8F%E3%81%AE%E3%81%BF%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8BVBA\"><\/span>\u30b7\u30fc\u30c8\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u753b\u50cf\u306e\u307f\u3092\u9078\u629e\u3059\u308bVBA<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u524a\u9664\u3092\u884c\u3046\u4e0a\u3067\u3001\u30b7\u30fc\u30c8\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u753b\u50cf\u306e\u307f\u3092\u9078\u629e\u3059\u308b\u51e6\u7406\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n<p>VBA\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3059\u308b()\n    Dim chkBox As Excel.CheckBox\n    Dim objShape As Object\n    Dim arr() As String\n    ReDim Preserve arr(0)\n\n    &#039;\u9078\u629e\u30b7\u30fc\u30c8\u306b\u5b58\u5728\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    For Each objShape In ActiveSheet.Shapes\n    \n        arr(UBound(arr)) = objShape.Name\n        \n        &#039;\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30bf\u30a4\u30d7\u304c\u753b\u50cf\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002\n        If objShape.Type = msoPicture Then\n        \n            &#039;\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3092\u914d\u5217\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\n            arr(UBound(arr)) = objShape.Name\n            \n            &#039;\u5024\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u914d\u5217\u3092\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n            ReDim Preserve arr(UBound(arr) + 1)\n        \n        End If\n        \n    Next\n    \n    &#039;\u7a7a\u306e\u5024\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n    ReDim Preserve arr(UBound(arr) - 1)\n    \n    &#039;\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002\n    ActiveSheet.Shapes.Range(arr).Select\n\nEnd Sub<\/code><\/pre>\n<p>\u30de\u30af\u30ed\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u3001VBA\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u306f\u3044\u3001\u753b\u50cf\u306e\u307f\u304c\u9078\u629e\u3055\u308c\u307e\u3057\u305f\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4641\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp2.png\" alt=\"\" width=\"656\" height=\"543\" \/><br \/>\n<!--\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\">VBA\u306e\u5b9f\u88c5\u65b9\u6cd5\u3084\u5b9f\u884c\u624b\u9806\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u9805\u76ee\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\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%AE%E8%AA%AC%E6%98%8E\"><\/span>VBA\u306e\u8aac\u660e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>For Each\u3067\u9078\u629e\u30b7\u30fc\u30c8\u306b\u5b58\u5728\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">For Each objShape In ActiveSheet.Shapes<\/div>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30bf\u30a4\u30d7\u304c\u753b\u50cf\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">\n<p>If objShape.Type = msoPicture Then<\/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\">\u753b\u50cf\u4ee5\u5916\u306b\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5f62\u5f0f\u304c\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<table width=\"445\">\n<tbody>\n<tr>\n<td width=\"212\">\u5b9a\u6570<\/td>\n<td width=\"126\">\u8aac\u660e<\/td>\n<td width=\"107\">\u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoShapeTypeMixed<\/td>\n<td width=\"126\"><\/td>\n<td width=\"107\">-2<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoAutoShape<\/td>\n<td width=\"126\">\u56f3\u5f62\uff0f\u30aa\u30fc\u30c8\u30b7\u30a7\u30a4\u30d7<\/td>\n<td width=\"107\">1<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoCallout<\/td>\n<td width=\"126\">\u5439\u304d\u51fa\u3057<\/td>\n<td width=\"107\">2<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoChart<\/td>\n<td width=\"126\">\u30b0\u30e9\u30d5<\/td>\n<td width=\"107\">3<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoComment<\/td>\n<td width=\"126\">\u30b3\u30e1\u30f3\u30c8<\/td>\n<td width=\"107\">4<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoGroup<\/td>\n<td width=\"126\">\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u56f3\u5f62<\/td>\n<td width=\"107\">6<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoLinkedPicture<\/td>\n<td width=\"126\">\u30ea\u30f3\u30af\u753b\u50cf<\/td>\n<td width=\"107\">11<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoPicture<\/td>\n<td width=\"126\">\u753b\u50cf<\/td>\n<td width=\"107\">13<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoTextBox<\/td>\n<td width=\"126\">\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9<\/td>\n<td width=\"107\">17<\/td>\n<\/tr>\n<tr>\n<td width=\"212\">msoTable<\/td>\n<td width=\"126\">\u8868<\/td>\n<td width=\"107\">19<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3092\u914d\u5217\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">arr(UBound(arr)) = objShape.Name<\/div>\n<p>\u5024\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u914d\u5217\u3092\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">ReDim Preserve arr(UBound(arr) + 1)<\/div>\n<p>\u7a7a\u306e\u5024\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">ReDim Preserve arr(UBound(arr) &#8211; 1)<\/div>\n<p>\u6700\u5f8c\u306b\u914d\u5217\u306b\u3042\u308b\u5024\u306e\u540d\u524d\u59d4\u306e\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<div class=\"info\">ActiveSheet.Shapes.Range(arr).Select<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%9F%E7%94%BB%E5%83%8F%E3%81%AE%E3%81%BF%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%97%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8BVBA\"><\/span>\u9078\u629e\u3057\u305f\u753b\u50cf\u306e\u307f\u3092\u9078\u629e\u3057\u524a\u9664\u3059\u308bVBA<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6b21\u306f\u9078\u629e\u3057\u305f\u753b\u50cf\u3092\u524a\u9664\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u524a\u9664\u3059\u308b()\n    Dim chkBox As Excel.CheckBox\n    Dim objShape As Object\n    Dim arr() As String\n    ReDim Preserve arr(0)\n\n    &#039;\u9078\u629e\u30b7\u30fc\u30c8\u306b\u5b58\u5728\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    For Each objShape In ActiveSheet.Shapes\n    \n        arr(UBound(arr)) = objShape.Name\n        \n        &#039;\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30bf\u30a4\u30d7\u304c\u753b\u50cf\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002\n        If objShape.Type = msoPicture Then\n        \n            &#039;\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3092\u914d\u5217\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\n            arr(UBound(arr)) = objShape.Name\n            \n            &#039;\u5024\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u914d\u5217\u3092\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n            ReDim Preserve arr(UBound(arr) + 1)\n        \n        End If\n        \n    Next\n    \n    &#039;\u7a7a\u306e\u5024\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n    ReDim Preserve arr(UBound(arr) - 1)\n    \n    &#039;\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002\n    ActiveSheet.Shapes.Range(arr).Select\n    \n    &#039;\u9078\u629e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n    Selection.Delete\n\nEnd Sub<\/code><\/pre>\n<p>\u30de\u30af\u30ed\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u3001VBA\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u9078\u629e\u3057\u305f\u753b\u50cf\u304c\u524a\u9664\u3055\u308c\u307e\u3057\u305f\u306d\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4642\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp3.png\" alt=\"\" width=\"663\" height=\"536\" \/>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%81%AE%E8%AA%AC%E6%98%8E-2\"><\/span>VBA\u306e\u8aac\u660e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u9078\u629e\u307e\u3067\u306e\u51e6\u7406\u306f\u4e0a\u8a18VBA\u3068\u540c\u69d8\u3067\u3001<br \/>\n\u6700\u5f8c\u306b\u9078\u629e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3059\u308b\u51e6\u7406\u3092\u52a0\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"info\">Selection.Delete<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%E7%94%BB%E5%83%8F%E3%81%AE%E9%AB%98%E3%81%95%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%97%E3%81%A6%E9%81%B8%E6%8A%9E%E3%81%97%E3%81%9F%E7%94%BB%E5%83%8F%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8BVBA\"><\/span>\u753b\u50cf\u306e\u9ad8\u3055\u3092\u6307\u5b9a\u3057\u3066\u9078\u629e\u3057\u305f\u753b\u50cf\u3092\u524a\u9664\u3059\u308bVBA<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7d9a\u3044\u3066\u753b\u50cf\u306e\u9ad8\u3055\u3067\u3042\u308b\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u3066\u4e00\u5b9a\u30b5\u30a4\u30ba\u4ee5\u4e0a\u3067\u3042\u308c\u3070\u524a\u9664\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>3\u756a\u76ee\u306e\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5927\u304d\u304f\u3057\u3001\u3053\u3061\u3089\u3092\u524a\u9664\u5bfe\u8c61\u3068\u3059\u308b\u51e6\u7406\u3092\u52a0\u3048\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4643\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp4.png\" alt=\"\" width=\"661\" height=\"544\" \/>\n<p>\u753b\u50cf\u306e\u9ad8\u3055\u306fVBA\u3067\u306f\u30d4\u30af\u30bb\u30eb\u5358\u4f4d\u3067\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u53f3\u30af\u30ea\u30c3\u30af\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u30b5\u30a4\u30ba\u306f\u78ba\u8a8d\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001<br \/>\n\u30bb\u30f3\u30c1\u30e1\u30fc\u30c8\u30eb\u306e\u5358\u4f4d\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u5909\u63db\u304c\u5fc5\u8981\u3068\u306a\u308a\u5c11\u3005\u9762\u5012\u3067\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306eVBA\u3067\u30d4\u30af\u30bb\u30eb\u5358\u4f4d\u306e\u30b5\u30a4\u30ba\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u9078\u629e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b5\u30a4\u30ba\u3092\u8abf\u3079\u308b()\n    MsgBox &quot;\u5e45&quot; &amp; Selection.Width &amp; &quot;\u30d4\u30af\u30bb\u30eb&quot; &amp; vbCrLf &amp; &quot;\u9ad8\u3055&quot; &amp; Selection.Height &amp; &quot;\u30d4\u30af\u30bb\u30eb&quot;\nEnd Sub<\/code><\/pre>\n<p>\u4eca\u56de\u306f\u4e00\u756a\u5c0f\u3055\u3044\u9ad8\u3055\u3067\u3042\u308b\u753b\u50cf\u3092\u5bfe\u8c61\u3068\u3057\u305f\u3044\u306e\u3067\u3001\u305d\u306e\u753b\u50cf\u3092\u9078\u629e\u3057\u3066\u3001VBA\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30ba\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u306d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4644\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp5.png\" alt=\"\" width=\"171\" height=\"146\" \/><\/p>\n<p>\u9ad8\u3055\u306f115.5\u30d4\u30af\u30bb\u30eb\u3067\u3057\u305f\u306e\u3067\u3001115\u30d4\u30af\u30bb\u30eb\u4ee5\u4e0a\u3092\u6761\u4ef6\u306b\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u3001<br \/>\n\u753b\u50cf\u3092\u524a\u9664\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0bVBA\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u9ad8\u3055\u6307\u5b9a\u30b5\u30a4\u30ba\u306e\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3059\u308b()\n    Dim chkBox As Excel.CheckBox\n    Dim objShape As Object\n    Dim arr() As String\n    ReDim Preserve arr(0)\n\n    &#039;\u9078\u629e\u30b7\u30fc\u30c8\u306b\u5b58\u5728\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    For Each objShape In ActiveSheet.Shapes\n    \n        arr(UBound(arr)) = objShape.Name\n        \n        &#039;\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30bf\u30a4\u30d7\u304c\u753b\u50cf\u3067\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002\n        If objShape.Type = msoPicture And objShape.Height &gt;= 115 Then\n        \n            &#039;\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3092\u914d\u5217\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\n            arr(UBound(arr)) = objShape.Name\n            \n            &#039;\u5024\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u914d\u5217\u3092\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n            ReDim Preserve arr(UBound(arr) + 1)\n        \n        End If\n        \n    Next\n    \n    &#039;\u7a7a\u306e\u5024\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n    ReDim Preserve arr(UBound(arr) - 1)\n    \n    &#039;\u753b\u50cf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002\n    ActiveSheet.Shapes.Range(arr).Select\n    \n    &#039;\u9078\u629e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n    Selection.Delete\n\nEnd Sub<\/code><\/pre>\n<p>Selection.Delete<br \/>\n\u624b\u524d\u3067\u30d6\u30ec\u30a4\u30af\u3057\u3066\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u306f\u3044\u3001\u6307\u5b9a\u30b5\u30a4\u30ba\u306e\u753b\u50cf\u306e\u307f\u9078\u629e\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4645\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp6.png\" alt=\"\" width=\"659\" height=\"563\" \/>\n<p>\u30d6\u30ec\u30a4\u30af\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u524a\u9664\u307e\u3067\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u306f\u3044\u3001\u524a\u9664\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4646\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/071021_1317_temp7.png\" alt=\"\" width=\"656\" height=\"536\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"VBA%E3%81%AE%E8%AA%AC%E6%98%8E-3\"><\/span>VBA\u306e\u8aac\u660e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u9078\u629e\u307e\u3067\u306e\u51e6\u7406\u306f\u4e0a\u8a18VBA\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30ba\u306e\u6307\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nHeight\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u9ad8\u3055\u3092\u53d6\u5f97\u3057\u3001115\u30d4\u30af\u30bb\u30eb\u4ee5\u4e0a\u3067\u3042\u308c\u3070\u9078\u629e\u5bfe\u8c61\u3068\u306a\u308b\u6761\u4ef6\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"info\">objShape<span class=\"token punctuation\">.<\/span>Height <span class=\"token operator\">&gt;<\/span><span class=\"token operator\">=<\/span> <span class=\"token number\">115<\/span><\/div>\n<p>\u9ad8\u3055\u306e\u307b\u304b\u306b\u5e45\u300c.width\u300d\u306e\u6307\u5b9a\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><script><\/p>\n<p><\/script><\/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<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\u306f\u3001<br \/>\n<strong>Excel VBA\u3067\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066<\/strong><br \/>\n\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 VBA\u3067\u8907\u6570\u306e\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3057\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u4f8b\u3048\u3070\uff64\u3042\u308bExcel\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u4ee5\u5916\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u3066\uff64\u305d\u306e\u4e2d\u304b\u3089\u753b\u50cf\u306e\u307f\u9078\u629e\u306e\u4e0a\u3001\u524a\u9664\u3092\u3057\u305f\u3044\u3068\u304d\u306a\u3069\u3067\u3059\uff61 \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4639,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5],"tags":[55],"class_list":{"0":"post-4601","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","8":"category-excel","9":"tag-55","10":"article cf"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\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=4601\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Excel VBA\u3011\u753b\u50cf\u306e\u307f\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u30b5\u30a4\u30ba\u306b\u3088\u308b\u7bc4\u56f2\u6307\u5b9a\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"Excel VBA\u3067\u8907\u6570\u306e\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3057\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u4f8b\u3048\u3070\uff64\u3042\u308bExcel\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u4ee5\u5916\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u3066\uff64\u305d\u306e\u4e2d\u304b\u3089\u753b\u50cf\u306e\u307f\u9078\u629e\u306e\u4e0a\u3001\u524a\u9664\u3092\u3057\u305f\u3044\u3068\u304d\u306a\u3069\u3067\u3059\uff61 \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=4601\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-28T13:21:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-13T01:32:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/cell-18.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=\"6\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=4601#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/cell-18.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/cell-18.png\",\"width\":652,\"height\":416},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=4601#webpage\",\"url\":\"https:\/\/extan.jp\/?p=4601\",\"name\":\"\u3010Excel VBA\u3011\u753b\u50cf\u306e\u307f\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u30b5\u30a4\u30ba\u306b\u3088\u308b\u7bc4\u56f2\u6307\u5b9a\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=4601#primaryimage\"},\"datePublished\":\"2021-08-28T13:21:30+00:00\",\"dateModified\":\"2022-09-13T01:32:04+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=4601#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=4601\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=4601#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Excel VBA\u3011\u753b\u50cf\u306e\u307f\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u30b5\u30a4\u30ba\u306b\u3088\u308b\u7bc4\u56f2\u6307\u5b9a\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":{"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=4601","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Excel VBA\u3011\u753b\u50cf\u306e\u307f\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u30b5\u30a4\u30ba\u306b\u3088\u308b\u7bc4\u56f2\u6307\u5b9a\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"Excel VBA\u3067\u8907\u6570\u306e\u753b\u50cf\u306e\u307f\u4e00\u62ec\u9078\u629e\u3057\u3066\u524a\u9664\u3057\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u4f8b\u3048\u3070\uff64\u3042\u308bExcel\u30b7\u30fc\u30c8\u306b\u753b\u50cf\u4ee5\u5916\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u3066\uff64\u305d\u306e\u4e2d\u304b\u3089\u753b\u50cf\u306e\u307f\u9078\u629e\u306e\u4e0a\u3001\u524a\u9664\u3092\u3057\u305f\u3044\u3068\u304d\u306a\u3069\u3067\u3059\uff61 \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067...","og_url":"https:\/\/extan.jp\/?p=4601","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2021-08-28T13:21:30+00:00","article_modified_time":"2022-09-13T01:32:04+00:00","og_image":[{"width":652,"height":416,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/cell-18.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":"6\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=4601#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/cell-18.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2021\/07\/cell-18.png","width":652,"height":416},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=4601#webpage","url":"https:\/\/extan.jp\/?p=4601","name":"\u3010Excel VBA\u3011\u753b\u50cf\u306e\u307f\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u30b5\u30a4\u30ba\u306b\u3088\u308b\u7bc4\u56f2\u6307\u5b9a\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=4601#primaryimage"},"datePublished":"2021-08-28T13:21:30+00:00","dateModified":"2022-09-13T01:32:04+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=4601#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=4601"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=4601#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"\u3010Excel VBA\u3011\u753b\u50cf\u306e\u307f\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5\uff01\u30b5\u30a4\u30ba\u306b\u3088\u308b\u7bc4\u56f2\u6307\u5b9a\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\/4601","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=4601"}],"version-history":[{"count":7,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/4601\/revisions"}],"predecessor-version":[{"id":9468,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/4601\/revisions\/9468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/4639"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}