{"id":10878,"date":"2026-10-15T23:48:41","date_gmt":"2026-10-15T14:48:41","guid":{"rendered":"https:\/\/extan.jp\/?p=10878"},"modified":"2026-10-15T23:48:41","modified_gmt":"2026-10-15T14:48:41","slug":"excel-vba%e3%81%a7%e6%96%87%e5%ad%97%e3%82%92%e4%b8%ad%e5%a4%ae%e6%8f%83%e3%81%88%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%ef%bc%81%e3%82%b7%e3%83%bc%e3%83%88%e5%85%a8%e4%bd%93%e3%82%82%ef%bc%81","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=10878","title":{"rendered":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01"},"content":{"rendered":"<p>Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\u30fb\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u304c\u308f\u304b\u3089\u306a\u3044<br \/>\n\u30fb\u30b7\u30fc\u30c8\u5168\u4f53\u3092\u307e\u3068\u3081\u3066\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\u304c\u77e5\u308a\u305f\u3044<br \/>\n\u30fb\u7d50\u5408\u30bb\u30eb\u3060\u3068\u3046\u307e\u304f\u4e2d\u592e\u306b\u306a\u3089\u305a\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u5d29\u308c\u308b<br \/>\n\u30fb\u6bce\u56de\u624b\u4f5c\u696d\u3067\u914d\u7f6e\u3092\u76f4\u3059\u306e\u304c\u624b\u9593\u3067\u3001\u30df\u30b9\u304c\u8d77\u304d\u308b<\/div>\n<p>\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b<\/p>\n<div class=\"rdinfo\">\u30fbExcel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff08HorizontalAlignment \/ VerticalAlignment\uff09<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 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\" style=\"cursor:inherit\">\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=10878\/#%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\" >\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<\/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=10878\/#STEP1_%E5%85%83%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E7%94%A8%E6%84%8F%E3%81%99%E3%82%8B\" >STEP1. \u5143\u30c7\u30fc\u30bf\u3092\u7528\u610f\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=10878\/#STEP2_%E6%A8%AA%E4%BD%8D%E7%BD%AE%E3%82%92%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\" >STEP2. \u6a2a\u4f4d\u7f6e\u3092\u4e2d\u592e\u63c3\u3048\u306b\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=10878\/#STEP3_%E7%89%B9%E5%AE%9A%E3%81%AE%E5%88%97%E3%81%A0%E3%81%91%E3%83%BB%E9%81%B8%E6%8A%9E%E7%AF%84%E5%9B%B2%E3%81%A0%E3%81%91%E3%82%92%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\" >STEP3. \u7279\u5b9a\u306e\u5217\u3060\u3051\u30fb\u9078\u629e\u7bc4\u56f2\u3060\u3051\u3092\u4e2d\u592e\u63c3\u3048\u306b\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=10878\/#STEP4_%E7%B8%A6%E4%BD%8D%E7%BD%AE%E3%82%82%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\" >STEP4. \u7e26\u4f4d\u7f6e\u3082\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=10878\/#STEP5_%E7%B5%90%E5%90%88%E3%82%BB%E3%83%AB%E3%81%A8%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%82%92%E7%B5%84%E3%81%BF%E5%90%88%E3%82%8F%E3%81%9B%E3%82%8B\" >STEP5. \u7d50\u5408\u30bb\u30eb\u3068\u4e2d\u592e\u63c3\u3048\u3092\u7d44\u307f\u5408\u308f\u305b\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=10878\/#STEP6_%E3%82%B7%E3%83%BC%E3%83%88%E5%85%A8%E4%BD%93%E3%82%92%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\" >STEP6. \u30b7\u30fc\u30c8\u5168\u4f53\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=10878\/#STEP7_%E3%83%96%E3%83%83%E3%82%AF%E3%81%AE%E5%85%A8%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%81%A6%E9%81%A9%E7%94%A8%E3%81%99%E3%82%8B\" >STEP7. \u30d6\u30c3\u30af\u306e\u5168\u30b7\u30fc\u30c8\u306b\u307e\u3068\u3081\u3066\u9069\u7528\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/extan.jp\/?p=10878\/#STEP8_%E5%85%83%E3%81%AB%E6%88%BB%E3%81%99%EF%BC%88xlLeft_xlRight%EF%BC%89\" >STEP8. \u5143\u306b\u623b\u3059\uff08xlLeft \/ xlRight\uff09<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/extan.jp\/?p=10878\/#%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%A7%E4%BD%BF%E3%81%86%E3%83%97%E3%83%AD%E3%83%91%E3%83%86%E3%82%A3%E3%81%A8%E5%AE%9A%E6%95%B0%E3%81%AE%E6%AF%94%E8%BC%83\" >\u4e2d\u592e\u63c3\u3048\u3067\u4f7f\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u5b9a\u6570\u306e\u6bd4\u8f03<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/extan.jp\/?p=10878\/#%E3%81%86%E3%81%BE%E3%81%8F%E3%81%84%E3%81%8B%E3%81%AA%E3%81%84%E3%81%A8%E3%81%8D%E3%81%AE%E5%AF%BE%E5%87%A6%E6%B3%95%EF%BC%88%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%88%EF%BC%89\" >\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3068\u304d\u306e\u5bfe\u51e6\u6cd5\uff08\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/extan.jp\/?p=10878\/#%E6%A9%9F%E8%83%BD%E3%81%AE%E8%AA%AC%E6%98%8E%EF%BC%88%E9%85%8D%E7%BD%AE%E3%83%BBHorizontalAlignment%EF%BC%89\" >\u6a5f\u80fd\u306e\u8aac\u660e\uff08\u914d\u7f6e\u30fbHorizontalAlignment\uff09<\/a><\/li><\/ul><\/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=10878\/#%E5%AE%8C%E6%88%90\" >\u5b8c\u6210<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/extan.jp\/?p=10878\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" >\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\"><\/span>\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30bb\u30eb\u306e\u6587\u5b57\u3084\u6570\u5b57\u3092\u304d\u308c\u3044\u306b\u4e2d\u592e\u3078\u305d\u308d\u3048\u305f\u3044\u3068\u304d\u30011\u3064\u305a\u3064\u624b\u4f5c\u696d\u3067\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f<br \/>\n<b>\u30fbVBA\u3067\u30bb\u30eb\u306e\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff08HorizontalAlignment = xlCenter\uff09<\/b><br \/>\n\u3092\u30b4\u30fc\u30eb\u306b\u3057\u307e\u3059\u3002<br \/>\n\u6a2a\u4f4d\u7f6e\u3060\u3051\u3067\u306a\u304f\u3001\u7e26\u4f4d\u7f6e\u30fb\u30b7\u30fc\u30c8\u5168\u4f53\u30fb\u30d6\u30c3\u30af\u306e\u5168\u30b7\u30fc\u30c8\u307e\u3067\u3001\u307e\u3068\u3081\u3066\u4e2d\u592e\u63c3\u3048\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"images\/00040\/08_complete.png\" alt=\"\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8\" \/><br \/>\n\u4e0a\u306e\u753b\u50cf\u304c\u5b8c\u6210\u5f62\u3067\u3059\u3002\u898b\u51fa\u3057\u3082\u6570\u5024\u3082\u30bb\u30eb\u306e\u4e2d\u592e\u306b\u305d\u308d\u3044\u3001\u8868\u5168\u4f53\u304c\u30d0\u30e9\u30f3\u30b9\u3088\u304f\u6574\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<b>\u5b9a\u6570\uff08xlCenter \u306a\u3069\uff09\u304c\u4f7f\u3048\u306a\u3044\u3068\u304d\u306e\u5bfe\u51e6<\/b>\u3084\u3001<b>\u7d50\u5408\u30bb\u30eb\u3067\u4e2d\u592e\u306b\u306a\u3089\u306a\u3044\u3068\u304d\u306e\u89e3\u6c7a\u6cd5\uff08\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8\uff09<\/b>\u3082\u3042\u308f\u305b\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP1_%E5%85%83%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E7%94%A8%E6%84%8F%E3%81%99%E3%82%8B\"><\/span>STEP1. \u5143\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u307e\u305a\u306f\u4e2d\u592e\u63c3\u3048\u3092\u8a66\u3059\u305f\u3081\u306e\u58f2\u4e0a\u8868\u3092\u7528\u610f\u3057\u307e\u3059\u3002<br \/>\nA\u5217\u304c\u9805\u76ee\u3001B\u5217\u304c\u6570\u91cf\u3001C\u5217\u304c\u5358\u4fa1\u3001D\u5217\u304c\u91d1\u984d\u3067\u3059\u3002<br \/>\n1\u884c\u76ee\u306f\u30bf\u30a4\u30c8\u30eb\u884c\u30012\u884c\u76ee\u306f\u898b\u51fa\u3057\u884c\u30013\u884c\u76ee\u304b\u30898\u4ef6\u306e\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u521d\u671f\u72b6\u614b\u3067\u306f\u3001\u6587\u5b57\u306f\u5de6\u5bc4\u305b\u3001\u6570\u5024\u306f\u53f3\u5bc4\u305b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u300c\u305d\u308d\u3063\u3066\u3044\u306a\u3044\u72b6\u614b\u300d\u304b\u3089\u3001VBA\u3067\u4e2d\u592e\u63c3\u3048\u306b\u5909\u3048\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/01_data.png\" alt=\"\u4e2d\u592e\u63c3\u3048\u524d\u306e\u58f2\u4e0a\u8868\uff08\u5de6\u5bc4\u305b\uff09\" \/><\/p>\n<p>\u4e0b\u306e\u8868\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001Excel\u306e\u30b7\u30fc\u30c8\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u305d\u306e\u307e\u307e\u8a66\u305b\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u5546\u54c1\u5225 \u58f2\u4e0a\u96c6\u8a08<\/th>\n<th><\/th>\n<th><\/th>\n<th><\/th>\n<\/tr>\n<tr>\n<td>\u9805\u76ee<\/td>\n<td>\u6570\u91cf<\/td>\n<td>\u5358\u4fa1<\/td>\n<td>\u91d1\u984d<\/td>\n<\/tr>\n<tr>\n<td>\u30ce\u30fc\u30c8PC<\/td>\n<td>3<\/td>\n<td>128000<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30e2\u30cb\u30bf\u30fc<\/td>\n<td>5<\/td>\n<td>32000<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30ad\u30fc\u30dc\u30fc\u30c9<\/td>\n<td>12<\/td>\n<td>4800<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30de\u30a6\u30b9<\/td>\n<td>20<\/td>\n<td>2200<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30d7\u30ea\u30f3\u30bf<\/td>\n<td>4<\/td>\n<td>29800<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30bf\u30d6\u30ec\u30c3\u30c8<\/td>\n<td>7<\/td>\n<td>58000<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8<\/td>\n<td>9<\/td>\n<td>8900<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u5916\u4ed8\u3051HDD<\/td>\n<td>6<\/td>\n<td>12000<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u5408\u8a08<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<p>\u203b \u6570\u5f0f\u3067\u6c42\u3081\u308b\u5217\u306f\u7a7a\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3059\u3067\u306b\u5024\u304c\u5165\u3063\u3066\u3044\u308b\u5217\u306f\u305d\u306e\u307e\u307e\u6b8b\u3057\u3066\u8a66\u305b\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP2_%E6%A8%AA%E4%BD%8D%E7%BD%AE%E3%82%92%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\"><\/span>STEP2. \u6a2a\u4f4d\u7f6e\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3082\u3063\u3068\u3082\u57fa\u672c\u306e\u30b3\u30fc\u30c9\u304c <b>HorizontalAlignment = xlCenter<\/b> \u3067\u3059\u3002<br \/>\nHorizontalAlignment \u306f\u300c\u6a2a\u65b9\u5411\u306e\u914d\u7f6e\u300d\u3092\u6c7a\u3081\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<br \/>\n\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CenterAlign()\n    Range(&quot;A1:D11&quot;).HorizontalAlignment = xlCenter\nEnd Sub<\/code><\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001A1:D11\u306e\u6587\u5b57\u3068\u6570\u5024\u304c\u3059\u3079\u3066\u6a2a\u65b9\u5411\u306e\u4e2d\u592e\u306b\u305d\u308d\u3044\u307e\u3057\u305f\u3002<br \/>\n\u305f\u3063\u305f1\u884c\u3067\u6e08\u3080\u306e\u3067\u30ab\u30f3\u30bf\u30f3\u3067\u3059\u306d\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/02_center_range.png\" alt=\"Range\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u8868\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP3_%E7%89%B9%E5%AE%9A%E3%81%AE%E5%88%97%E3%81%A0%E3%81%91%E3%83%BB%E9%81%B8%E6%8A%9E%E7%AF%84%E5%9B%B2%E3%81%A0%E3%81%91%E3%82%92%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\"><\/span>STEP3. \u7279\u5b9a\u306e\u5217\u3060\u3051\u30fb\u9078\u629e\u7bc4\u56f2\u3060\u3051\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8868\u5168\u4f53\u3067\u306f\u306a\u304f\u3001\u6c7a\u307e\u3063\u305f\u5217\u3060\u3051\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5834\u5408\u306f\u3001\u5217\u3084\u7bc4\u56f2\u3092\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001C\u5217\u3068D\u5217\uff08\u5358\u4fa1\u30fb\u91d1\u984d\uff09\u3060\u3051\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CenterColumn()\n    Range(&quot;C:D&quot;).HorizontalAlignment = xlCenter\nEnd Sub<\/code><\/pre>\n<p>\u30de\u30a6\u30b9\u3067\u9078\u3093\u3060\u7bc4\u56f2\u306b\u9069\u7528\u3057\u305f\u3044\u3068\u304d\u306f <b>Selection<\/b> \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CenterSelection()\n    Selection.HorizontalAlignment = xlCenter\nEnd Sub<\/code><\/pre>\n<p>\u884c\u3084\u7bc4\u56f2\u3092\u9078\u3093\u3067\u304b\u3089\u5b9f\u884c\u3059\u308c\u3070\u3001\u305d\u306e\u9078\u629e\u7bc4\u56f2\u3060\u3051\u304c\u4e2d\u592e\u63c3\u3048\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u753b\u50cf\u3067\u306f\u3001A\u5217\u306f\u5de6\u5bc4\u305b\u306e\u307e\u307e\u3001\u6570\u91cf\u30fb\u5358\u4fa1\u30fb\u91d1\u984d\u306e\u5217\u3060\u3051\u304c\u4e2d\u592e\u306b\u305d\u308d\u3044\u307e\u3057\u305f\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/03_column_center.png\" alt=\"\u7279\u5b9a\u306e\u5217\u3060\u3051\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u8868\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP4_%E7%B8%A6%E4%BD%8D%E7%BD%AE%E3%82%82%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\"><\/span>STEP4. \u7e26\u4f4d\u7f6e\u3082\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6a2a\u4f4d\u7f6e\u3060\u3051\u3067\u306a\u304f\u3001\u30bb\u30eb\u306e\u9ad8\u3055\u65b9\u5411\u306e\u4e2d\u592e\u306b\u305d\u308d\u3048\u305f\u3044\u3068\u304d\u306f <b>VerticalAlignment<\/b> \u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u5024\u306b\u306f <b>xlCenter<\/b> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CenterVertical()\n    Range(&quot;A1:D11&quot;).VerticalAlignment = xlCenter\n    Rows(&quot;2:11&quot;).RowHeight = 40\nEnd Sub<\/code><\/pre>\n<p>\u884c\u306e\u9ad8\u3055\u3092\u5e83\u3052\u308b\u3068\u3001\u6587\u5b57\u304c\u4e0a\u4e0b\u306e\u4e2d\u592e\u306b\u305d\u308d\u3063\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n\u884c\u306e\u633f\u5165\u3084\u30ec\u30a4\u30a2\u30a6\u30c8\u5909\u66f4\u3067\u884c\u304c\u9ad8\u304f\u306a\u3063\u3066\u3082\u3001\u6587\u5b57\u304c\u4e0a\u306b\u5bc4\u3089\u305a\u4e2d\u592e\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/04_valign.png\" alt=\"\u7e26\u4f4d\u7f6e\u3082\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u8868\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP5_%E7%B5%90%E5%90%88%E3%82%BB%E3%83%AB%E3%81%A8%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%82%92%E7%B5%84%E3%81%BF%E5%90%88%E3%82%8F%E3%81%9B%E3%82%8B\"><\/span>STEP5. \u7d50\u5408\u30bb\u30eb\u3068\u4e2d\u592e\u63c3\u3048\u3092\u7d44\u307f\u5408\u308f\u305b\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30bf\u30a4\u30c8\u30eb\u884c\u306e\u3088\u3046\u306b\u30bb\u30eb\u3092\u7d50\u5408\u3057\u3066\u3044\u308b\u5834\u5408\u3082\u3001\u4e2d\u592e\u63c3\u3048\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\u3002<br \/>\n\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u7d50\u5408\u30bb\u30eb\u306e\u914d\u7f6e\u306f<b>\u5de6\u4e0a\u306e\u30bb\u30eb<\/b>\u306b\u5bfe\u3057\u3066\u8a2d\u5b9a\u3055\u308c\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\n\u7d50\u5408\u7bc4\u56f2\u306b\u307e\u3068\u3081\u3066\u8a2d\u5b9a\u3059\u308b\u306a\u3089 <b>MergeArea<\/b> \u3092\u4f7f\u3046\u3068\u78ba\u5b9f\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CenterMerged()\n    With Range(&quot;A1:D1&quot;).MergeArea\n        .HorizontalAlignment = xlCenter\n        .VerticalAlignment = xlCenter\n    End With\nEnd Sub<\/code><\/pre>\n<p>\u7d50\u5408\u305b\u305a\u306b\u4e2d\u592e\u306b\u898b\u305b\u305f\u3044\u3068\u304d\u306f\u3001Excel\u306e\u300c<b>\u9078\u629e\u7bc4\u56f2\u5185\u3067\u4e2d\u592e<\/b>\u300d\u304c\u4f7f\u3048\u307e\u3059\u3002<br \/>\nVBA\u3067\u306f <b>HorizontalAlignment = 7<\/b>\uff08xlCenterAcrossSelection \u306b\u76f8\u5f53\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u7d50\u5408\u30bb\u30eb\u7279\u6709\u306e\u3064\u307e\u305a\u304d\u306f\u3001\u5f8c\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8\u3067\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/05_merge_center.png\" alt=\"\u7d50\u5408\u30bb\u30eb\u3068\u4e2d\u592e\u63c3\u3048\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP6_%E3%82%B7%E3%83%BC%E3%83%88%E5%85%A8%E4%BD%93%E3%82%92%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%AB%E3%81%99%E3%82%8B\"><\/span>STEP6. \u30b7\u30fc\u30c8\u5168\u4f53\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8868\u5168\u4f53\u3067\u306f\u306a\u304f\u3001<b>\u30b7\u30fc\u30c8\u306e\u3059\u3079\u3066\u306e\u30bb\u30eb<\/b>\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u3044\u5834\u5408\u306f <b>Cells<\/b> \u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\nCells \u306f\u30b7\u30fc\u30c8\u5168\u4f53\u3092\u6307\u3059\u306e\u3067\u3001\u3042\u3068\u304b\u3089\u5165\u529b\u3059\u308b\u30bb\u30eb\u306b\u3082\u8a2d\u5b9a\u304c\u52b9\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CenterSheet()\n    Cells.HorizontalAlignment = xlCenter\nEnd Sub<\/code><\/pre>\n<p>\u3059\u3067\u306b\u4f7f\u3063\u3066\u3044\u308b\u7bc4\u56f2\u3060\u3051\u3092\u5bfe\u8c61\u306b\u3057\u305f\u3044\u3068\u304d\u306f <b>UsedRange<\/b> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u65b0\u3057\u304f\u5165\u529b\u3059\u308b\u30bb\u30eb\u307e\u3067\u4e2d\u592e\u306b\u3057\u305f\u3044\u306a\u3089 Cells\u3001\u65e2\u5b58\u306e\u8868\u3060\u3051\u306a\u3089 UsedRange\u3001\u3068\u4f7f\u3044\u5206\u3051\u307e\u3057\u3087\u3046\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/06_sheet_all.png\" alt=\"\u30b7\u30fc\u30c8\u5168\u4f53\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u72b6\u614b\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP7_%E3%83%96%E3%83%83%E3%82%AF%E3%81%AE%E5%85%A8%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%81%A6%E9%81%A9%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>STEP7. \u30d6\u30c3\u30af\u306e\u5168\u30b7\u30fc\u30c8\u306b\u307e\u3068\u3081\u3066\u9069\u7528\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8907\u6570\u306e\u30b7\u30fc\u30c8\u3092\u540c\u3058\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u305d\u308d\u3048\u305f\u3044\u3068\u304d\u306f\u3001Worksheets \u3092\u30eb\u30fc\u30d7\u3055\u305b\u307e\u3059\u3002<br \/>\n\u30b7\u30fc\u30c8\u306e\u6570\u3060\u3051\u540c\u3058\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub CenterAllSheets()\n    Dim ws As Worksheet\n    For Each ws In ThisWorkbook.Worksheets\n        ws.Cells.HorizontalAlignment = xlCenter\n        ws.Cells.VerticalAlignment = xlCenter\n    Next ws\nEnd Sub<\/code><\/pre>\n<p>1\u3064\u305a\u3064\u624b\u4f5c\u696d\u3067\u8a2d\u5b9a\u3059\u308b\u624b\u9593\u304c\u306a\u304f\u306a\u308a\u3001\u30b7\u30fc\u30c8\u304c\u591a\u3044\u30d6\u30c3\u30af\u307b\u3069\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"STEP8_%E5%85%83%E3%81%AB%E6%88%BB%E3%81%99%EF%BC%88xlLeft_xlRight%EF%BC%89\"><\/span>STEP8. \u5143\u306b\u623b\u3059\uff08xlLeft \/ xlRight\uff09<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e2d\u592e\u63c3\u3048\u3092\u89e3\u9664\u3057\u3066\u5143\u306b\u623b\u3059\u3068\u304d\u3082\u3001\u540c\u3058\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u5225\u306e\u5b9a\u6570\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u5de6\u5bc4\u305b\u306f <b>xlLeft<\/b>\u3001\u53f3\u5bc4\u305b\u306f <b>xlRight<\/b> \u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub ResetAlign()\n    Range(&quot;A1:A11&quot;).HorizontalAlignment = xlLeft\n    Range(&quot;B2:D11&quot;).HorizontalAlignment = xlRight\nEnd Sub<\/code><\/pre>\n<p>\u6587\u5b57\u306f\u5de6\u5bc4\u305b\u3001\u6570\u5024\u306f\u53f3\u5bc4\u305b\u306b\u623b\u3059\u3068\u3001\u6841\u304c\u305d\u308d\u3063\u3066\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\n\u6570\u5024\u307e\u3067\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u3068\u3001\u6841\u6570\u304c\u30d0\u30e9\u30d0\u30e9\u306b\u898b\u3048\u3084\u3059\u304f\u306a\u308b\u70b9\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/07_revert.png\" alt=\"\u4e2d\u592e\u63c3\u3048\u3092\u5143\u306b\u623b\u3057\u305f\u8868\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E4%B8%AD%E5%A4%AE%E6%8F%83%E3%81%88%E3%81%A7%E4%BD%BF%E3%81%86%E3%83%97%E3%83%AD%E3%83%91%E3%83%86%E3%82%A3%E3%81%A8%E5%AE%9A%E6%95%B0%E3%81%AE%E6%AF%94%E8%BC%83\"><\/span>\u4e2d\u592e\u63c3\u3048\u3067\u4f7f\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u5b9a\u6570\u306e\u6bd4\u8f03<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5b9f\u969b\u306b\u3088\u304f\u4f7f\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u6307\u5b9a\u65b9\u6cd5\u3092\u8868\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002<br \/>\n\u300c\u4f55\u3092\u6307\u5b9a\u3059\u308c\u3070\u3044\u3044\u304b\u300d\u3067\u8ff7\u3063\u305f\u3089\u3001\u3053\u306e\u8868\u306b\u623b\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<table>\n<tr>\n<th>\u4f7f\u3046\u3082\u306e<\/th>\n<th>\u5f79\u5272<\/th>\n<th>\u6307\u5b9a\u3067\u304d\u308b\u5024\u306e\u4f8b<\/th>\n<\/tr>\n<tr>\n<td><b>HorizontalAlignment<\/b><\/td>\n<td>\u6a2a\u65b9\u5411\u306e\u914d\u7f6e<\/td>\n<td>xlLeft \/ xlCenter \/ xlRight<\/td>\n<\/tr>\n<tr>\n<td><b>VerticalAlignment<\/b><\/td>\n<td>\u7e26\u65b9\u5411\u306e\u914d\u7f6e<\/td>\n<td>xlTop \/ xlCenter \/ xlBottom<\/td>\n<\/tr>\n<tr>\n<td><b>Selection<\/b><\/td>\n<td>\u9078\u629e\u4e2d\u306e\u7bc4\u56f2<\/td>\n<td>\u30de\u30a6\u30b9\u3067\u9078\u3093\u3060\u30bb\u30eb\u306b\u9069\u7528<\/td>\n<\/tr>\n<tr>\n<td><b>Cells<\/b><\/td>\n<td>\u30b7\u30fc\u30c8\u5168\u4f53<\/td>\n<td>\u3042\u3068\u304b\u3089\u5165\u529b\u3059\u308b\u30bb\u30eb\u306b\u3082\u9069\u7528<\/td>\n<\/tr>\n<tr>\n<td><b>MergeArea<\/b><\/td>\n<td>\u7d50\u5408\u30bb\u30eb\u5168\u4f53<\/td>\n<td>\u7d50\u5408\u7bc4\u56f2\u306b\u307e\u3068\u3081\u3066\u9069\u7528<\/td>\n<\/tr>\n<\/table>\n<div class=\"c_box intitle pink_box\">\n<div class=\"box_title\"><span>POINT<\/span><\/div>\n<p>\u6a2a\u4f4d\u7f6e\u3092\u4e2d\u592e\u306b\u305d\u308d\u3048\u308b\u306e\u306f <b>HorizontalAlignment = xlCenter<\/b>\u3002<br \/>\n\u7e26\u4f4d\u7f6e\u306f\u5225\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067 <b>VerticalAlignment = xlCenter<\/b> \u3067\u3059\u3002<br \/>\n\u30b7\u30fc\u30c8\u5168\u4f53\u306a\u3089 <b>Cells.HorizontalAlignment = xlCenter<\/b>\u3001\u5168\u30b7\u30fc\u30c8\u306a\u3089 Worksheets \u3092\u30eb\u30fc\u30d7\u3001\u3068\u899a\u3048\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<\/div>\n<h4>\u4e2d\u592e\u63c3\u3048\u3092\u307e\u3068\u3081\u3066\u884c\u3046VBA<\/h4>\n<p>\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u30921\u3064\u306b\u307e\u3068\u3081\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u30dc\u30bf\u30f3\u306b\u767b\u9332\u3057\u3066\u304a\u3051\u3070\u3001\u30af\u30ea\u30c3\u30af1\u3064\u3067\u30d6\u30c3\u30af\u5168\u4f53\u306e\u8868\u3092\u6574\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub AlignCenterAll()\n    Dim ws As Worksheet\n    For Each ws In ThisWorkbook.Worksheets\n        With ws.Cells\n            .HorizontalAlignment = xlCenter\n            .VerticalAlignment = xlCenter\n        End With\n    Next ws\nEnd Sub<\/code><\/pre>\n<p>\u6bce\u56de\u624b\u3067\u914d\u7f6e\u3092\u76f4\u3057\u3066\u3044\u308b\u65b9\u306f\u3001\u3053\u306e\u30de\u30af\u30ed\u3092\u30dc\u30bf\u30f3\u306b\u3057\u3066\u304a\u304f\u3068\u30e9\u30af\u3067\u3059\u3002<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\" \/><\/p>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">\u6a2a\u4f4d\u7f6e\u306f <b>HorizontalAlignment<\/b>\u3001\u7e26\u4f4d\u7f6e\u306f <b>VerticalAlignment<\/b> \u3068\u3001\u5225\u3005\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4e21\u65b9\u305d\u308d\u3048\u305f\u3044\u3068\u304d\u306f2\u884c\u66f8\u304f\u3060\u3051\u306a\u306e\u3067\u3001\u30ab\u30f3\u30bf\u30f3\u3067\u3059\u306d\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%81%86%E3%81%BE%E3%81%8F%E3%81%84%E3%81%8B%E3%81%AA%E3%81%84%E3%81%A8%E3%81%8D%E3%81%AE%E5%AF%BE%E5%87%A6%E6%B3%95%EF%BC%88%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%88%EF%BC%89\"><\/span>\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3068\u304d\u306e\u5bfe\u51e6\u6cd5\uff08\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5b9f\u969b\u306b\u8a66\u3059\u3068\u3001\u601d\u3063\u305f\u3088\u3046\u306b\u52d5\u304b\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u3088\u304f\u3042\u308b\u3064\u307e\u305a\u304d\u3068\u5bfe\u51e6\u6cd5\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<table>\n<tr>\n<th>\u75c7\u72b6<\/th>\n<th>\u539f\u56e0<\/th>\n<th>\u5bfe\u51e6<\/th>\n<\/tr>\n<tr>\n<td><b>xlCenter<\/b> \u304c\u30a8\u30e9\u30fc\u306b\u306a\u308b<\/td>\n<td>\u53c2\u7167\u8a2d\u5b9a\u3067Excel\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5916\u308c\u3066\u3044\u308b<\/td>\n<td>VBE\u306e\u300c\u30c4\u30fc\u30eb \u2192 \u53c2\u7167\u8a2d\u5b9a\u300d\u3067 <b>Microsoft Excel xx.x Object Library<\/b> \u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u6570\u540d\u304c\u4f7f\u3048\u306a\u3044\u74b0\u5883\u304c\u3042\u308b<\/td>\n<td>\u53c2\u7167\u8a2d\u5b9a\u306e\u72b6\u614b\u306b\u3088\u3063\u3066\u5b9a\u6570\u304c\u89e3\u6c7a\u3067\u304d\u306a\u3044<\/td>\n<td>\u6570\u5024\u3067 <b>-4108<\/b>\uff08xlCenter\uff09\u3092\u76f4\u63a5\u66f8\u304f\u3002\u307e\u305f\u306f <b>Const XL_CENTER = -4108<\/b> \u3068\u81ea\u5206\u3067\u5b9a\u7fa9\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u7d50\u5408\u30bb\u30eb\u3067\u4e2d\u592e\u306b\u306a\u3089\u306a\u3044<\/td>\n<td>\u7d50\u5408\u524d\u306b\u8a2d\u5b9a\u3057\u305f\u914d\u7f6e\u304c\u6b8b\u3063\u3066\u3044\u308b\uff0f\u5de6\u4e0a\u30bb\u30eb\u4ee5\u5916\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b<\/td>\n<td><b>MergeArea<\/b> \u306b\u5bfe\u3057\u3066\u8a2d\u5b9a\u3057\u76f4\u3059\u3002\u7d50\u5408\u3092\u89e3\u9664\u3057\u3066\u8a2d\u5b9a\u3057\u3001\u518d\u7d50\u5408\u3057\u3066\u3082\u3088\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u30b7\u30fc\u30c8\u5168\u4f53\u306b\u52b9\u304b\u306a\u3044<\/td>\n<td>\u30b7\u30fc\u30c8\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\uff0fUsedRange \u306b\u3057\u304b\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044<\/td>\n<td>\u30b7\u30fc\u30c8\u4fdd\u8b77\u3092\u89e3\u9664\u3059\u308b\u3002<b>Cells<\/b> \u3092\u4f7f\u3046\uff08UsedRange \u306f\u4f7f\u7528\u6e08\u307f\u7bc4\u56f2\u306e\u307f\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u5024\u304c\u610f\u56f3\u305b\u305a\u5de6\u53f3\u306b\u5bc4\u308b<\/td>\n<td>\u6570\u5024\u30bb\u30eb\u306f\u65e2\u5b9a\u3067\u53f3\u5bc4\u305b\u306b\u306a\u308b<\/td>\n<td>\u4e2d\u592e\u306b\u3057\u305f\u3044\u7bc4\u56f2\u3078 <b>HorizontalAlignment = xlCenter<\/b> \u3092\u660e\u793a\u7684\u306b\u8a2d\u5b9a\u3059\u308b<\/td>\n<\/tr>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%E6%A9%9F%E8%83%BD%E3%81%AE%E8%AA%AC%E6%98%8E%EF%BC%88%E9%85%8D%E7%BD%AE%E3%83%BBHorizontalAlignment%EF%BC%89\"><\/span>\u6a5f\u80fd\u306e\u8aac\u660e\uff08\u914d\u7f6e\u30fbHorizontalAlignment\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4>HorizontalAlignment\uff08\u6a2a\u4f4d\u7f6e\u306e\u914d\u7f6e\uff09<\/h4>\n<table>\n<tr>\n<th>\u66f8\u5f0f<\/th>\n<td>Range.HorizontalAlignment = \u5b9a\u6570<\/td>\n<\/tr>\n<tr>\n<th>\u3067\u304d\u308b\u3053\u3068<\/th>\n<td>\u30bb\u30eb\u306e<b>\u6a2a\u65b9\u5411<\/b>\u306e\u914d\u7f6e\u3092\u6c7a\u3081\u307e\u3059\u3002\u4e2d\u592e\u63c3\u3048\u30fb\u5de6\u5bc4\u305b\u30fb\u53f3\u5bc4\u305b\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<th>\u623b\u308a\u5024<\/th>\n<td>\u8a2d\u5b9a\u5024\uff08Long\uff09<\/td>\n<\/tr>\n<tr>\n<th>\u3053\u3093\u306a\u3068\u304d\u306b<\/th>\n<td>\u6587\u5b57\u3084\u6570\u5024\u3092\u5de6\u53f3\u306e\u4e2d\u592e\u306b\u305d\u308d\u3048\u305f\u3044\u3068\u304d\u3002<\/td>\n<\/tr>\n<tr>\n<th>\u6ce8\u610f<\/th>\n<td>\u6570\u5024\u30bb\u30eb\u306f\u65e2\u5b9a\u3067\u53f3\u5bc4\u305b\u3067\u3059\u3002\u4e2d\u592e\u306b\u3059\u308b\u306b\u306f\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/table>\n<h4>VerticalAlignment\uff08\u7e26\u4f4d\u7f6e\u306e\u914d\u7f6e\uff09<\/h4>\n<table>\n<tr>\n<th>\u66f8\u5f0f<\/th>\n<td>Range.VerticalAlignment = \u5b9a\u6570<\/td>\n<\/tr>\n<tr>\n<th>\u3067\u304d\u308b\u3053\u3068<\/th>\n<td>\u30bb\u30eb\u306e<b>\u7e26\u65b9\u5411<\/b>\u306e\u914d\u7f6e\u3092\u6c7a\u3081\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<th>\u623b\u308a\u5024<\/th>\n<td>\u8a2d\u5b9a\u5024\uff08Long\uff09<\/td>\n<\/tr>\n<tr>\n<th>\u3053\u3093\u306a\u3068\u304d\u306b<\/th>\n<td>\u884c\u306e\u9ad8\u3055\u304c\u9ad8\u3044\u3068\u304d\u3001\u6587\u5b57\u3092\u4e0a\u4e0b\u306e\u4e2d\u592e\u306b\u305d\u308d\u3048\u305f\u3044\u3068\u304d\u3002<\/td>\n<\/tr>\n<tr>\n<th>\u6ce8\u610f<\/th>\n<td>\u6a2a\u4f4d\u7f6e\u3068\u306f\u5225\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\u4e21\u65b9\u305d\u308d\u3048\u308b\u306b\u306f2\u884c\u66f8\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/table>\n<h4>\u914d\u7f6e\u306e\u5b9a\u6570\u5024\u4e00\u89a7<\/h4>\n<table>\n<tr>\n<th>\u5b9a\u6570<\/th>\n<th>\u5024<\/th>\n<th>\u610f\u5473<\/th>\n<\/tr>\n<tr>\n<td>xlLeft<\/td>\n<td><b>-4131<\/b><\/td>\n<td>\u5de6\u5bc4\u305b<\/td>\n<\/tr>\n<tr>\n<td>xlCenter<\/td>\n<td><b>-4108<\/b><\/td>\n<td>\u4e2d\u592e\u63c3\u3048<\/td>\n<\/tr>\n<tr>\n<td>xlRight<\/td>\n<td><b>-4152<\/b><\/td>\n<td>\u53f3\u5bc4\u305b<\/td>\n<\/tr>\n<tr>\n<td>xlTop<\/td>\n<td>-4160<\/td>\n<td>\u4e0a\u5bc4\u305b\uff08\u7e26\uff09<\/td>\n<\/tr>\n<tr>\n<td>xlBottom<\/td>\n<td>-4107<\/td>\n<td>\u4e0b\u5bc4\u305b\uff08\u7e26\uff09<\/td>\n<\/tr>\n<tr>\n<td>xlJustify<\/td>\n<td>-4130<\/td>\n<td>\u4e21\u7aef\u63c3\u3048<\/td>\n<\/tr>\n<tr>\n<td>xlGeneral<\/td>\n<td>-4105<\/td>\n<td>\u6a19\u6e96\uff08\u65e2\u5b9a\uff09<\/td>\n<\/tr>\n<\/table>\n<p>\u5b9a\u6570\u304c\u4f7f\u3048\u306a\u3044\u74b0\u5883\u3067\u306f\u3001\u5024\u3067\u305d\u306e\u307e\u307e\u66f8\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff08\u4f8b\uff1a<b>Range(&#8220;A1&#8221;).HorizontalAlignment = -4108<\/b>\uff09\u3002<br \/>\n\u305f\u3060\u3057 <b>-4108<\/b> \u3060\u3051\u3067\u306f\u610f\u5473\u304c\u5206\u304b\u308a\u306b\u304f\u3044\u306e\u3067\u3001\u901a\u5e38\u306f\u5b9a\u6570\u540d\u3092\u4f7f\u3046\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Range(&quot;A1:D11&quot;).HorizontalAlignment = xlCenter   &#039; \u4e2d\u592e\u63c3\u3048<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%8C%E6%88%90\"><\/span>\u5b8c\u6210<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u898b\u51fa\u3057\u3082\u6570\u5024\u3082\u30bb\u30eb\u306e\u4e2d\u592e\u306b\u305d\u308d\u3044\u3001\u8868\u5168\u4f53\u304c\u3059\u3063\u304d\u308a\u6574\u3044\u307e\u3057\u305f\u3002<br \/>\n\u601d\u3063\u305f\u3068\u304a\u308a\u306b\u52d5\u304d\u307e\u3057\u305f\u304b\uff1f<br \/>\nVBA\u306b\u3057\u3066\u304a\u3051\u3070\u3001\u6bce\u56de\u624b\u4f5c\u696d\u3067\u914d\u7f6e\u3092\u8a2d\u5b9a\u3059\u308b\u624b\u9593\u304c\u306a\u304f\u306a\u308a\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4fee\u6b63\u3082\u4e00\u77ac\u3067\u7d42\u308f\u308a\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"images\/00040\/08_complete.png\" alt=\"\u4e2d\u592e\u63c3\u3048\u304c\u5b8c\u6210\u3057\u305f\u8868\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<div class=\"endinfo\">\u30fbExcel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff08HorizontalAlignment \/ VerticalAlignment\uff09<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u8868\u3067\u3001\u305c\u3072\u4e00\u5ea6\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u6a2a\u4f4d\u7f6e\u306f HorizontalAlignment\u3001\u7e26\u4f4d\u7f6e\u306f VerticalAlignment\u3001\u30b7\u30fc\u30c8\u5168\u4f53\u306a\u3089 Cells \u3068\u899a\u3048\u3066\u304a\u304f\u3068\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u8abf\u6574\u304c\u3050\u3063\u3068\u30e9\u30af\u306b\u306a\u308a\u307e\u3059\u3088\u3002<br \/>\n\u307e\u305f\u3001\u4ed6\u306b\u3082\u4fbf\u5229\u306aExcel\u306e\u6642\u77ed\u30c6\u30af\u30cb\u30c3\u30af\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<p>\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 \u30fb\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u304c\u308f\u304b\u3089\u306a\u3044 \u30fb\u30b7\u30fc\u30c8\u5168\u4f53\u3092\u307e\u3068\u3081\u3066\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\u304c\u77e5\u308a\u305f\u3044 \u30fb\u7d50\u5408\u30bb\u30eb\u3060\u3068\u3046\u307e\u304f\u4e2d\u592e\u306b\u306a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":15467,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[53],"class_list":{"0":"post-10878","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-excelvba","8":"tag-53","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=\"\u6587\u5b57\u5217\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=10878\" \/>\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\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=10878\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-10-15T14:48:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-15T14:48:41+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01 | \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=10878#article\",\"name\":\"Excel VBA\\u3067\\u6587\\u5b57\\u3092\\u4e2d\\u592e\\u63c3\\u3048\\u306b\\u3059\\u308b\\u65b9\\u6cd5\\uff01\\u30b7\\u30fc\\u30c8\\u5168\\u4f53\\u3082\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"headline\":\"Excel VBA\\u3067\\u6587\\u5b57\\u3092\\u4e2d\\u592e\\u63c3\\u3048\\u306b\\u3059\\u308b\\u65b9\\u6cd5\\uff01\\u30b7\\u30fc\\u30c8\\u5168\\u4f53\\u3082\\uff01\",\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/00040_eyecatch.png\",\"width\":879,\"height\":583,\"caption\":\"Excel VBA\\u3067\\u6587\\u5b57\\u3092\\u4e2d\\u592e\\u63c3\\u3048\\u306b\\u3059\\u308b\\u65b9\\u6cd5\\uff01\\u30b7\\u30fc\\u30c8\\u5168\\u4f53\\u3082\\uff01\"},\"datePublished\":\"2026-10-15T23:48:41+09:00\",\"dateModified\":\"2026-10-15T23:48:41+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10878#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10878#webpage\"},\"articleSection\":\"Excel VBA, \\u6587\\u5b57\\u5217\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10878#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=10878#listItem\",\"name\":\"Excel VBA\\u3067\\u6587\\u5b57\\u3092\\u4e2d\\u592e\\u63c3\\u3048\\u306b\\u3059\\u308b\\u65b9\\u6cd5\\uff01\\u30b7\\u30fc\\u30c8\\u5168\\u4f53\\u3082\\uff01\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=17#listItem\",\"name\":\"Excel\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10878#listItem\",\"position\":5,\"name\":\"Excel VBA\\u3067\\u6587\\u5b57\\u3092\\u4e2d\\u592e\\u63c3\\u3048\\u306b\\u3059\\u308b\\u65b9\\u6cd5\\uff01\\u30b7\\u30fc\\u30c8\\u5168\\u4f53\\u3082\\uff01\",\"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=10878#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=10878#webpage\",\"url\":\"https:\\\/\\\/extan.jp\\\/?p=10878\",\"name\":\"Excel VBA\\u3067\\u6587\\u5b57\\u3092\\u4e2d\\u592e\\u63c3\\u3048\\u306b\\u3059\\u308b\\u65b9\\u6cd5\\uff01\\u30b7\\u30fc\\u30c8\\u5168\\u4f53\\u3082\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10878#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\\\/2023\\\/03\\\/00040_eyecatch.png\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10878\\\/#mainImage\",\"width\":879,\"height\":583,\"caption\":\"Excel VBA\\u3067\\u6587\\u5b57\\u3092\\u4e2d\\u592e\\u63c3\\u3048\\u306b\\u3059\\u308b\\u65b9\\u6cd5\\uff01\\u30b7\\u30fc\\u30c8\\u5168\\u4f53\\u3082\\uff01\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10878#mainImage\"},\"datePublished\":\"2026-10-15T23:48:41+09:00\",\"dateModified\":\"2026-10-15T23:48:41+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\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","description":"","canonical_url":"https:\/\/extan.jp\/?p=10878","robots":"max-image-preview:large","keywords":"\u6587\u5b57\u5217","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/extan.jp\/?p=10878#article","name":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","headline":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01","author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/extan.jp\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2023\/03\/00040_eyecatch.png","width":879,"height":583,"caption":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01"},"datePublished":"2026-10-15T23:48:41+09:00","dateModified":"2026-10-15T23:48:41+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/extan.jp\/?p=10878#webpage"},"isPartOf":{"@id":"https:\/\/extan.jp\/?p=10878#webpage"},"articleSection":"Excel VBA, \u6587\u5b57\u5217"},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=10878#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=10878#listItem","name":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=17#listItem","name":"Excel"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=10878#listItem","position":5,"name":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01","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=10878#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=10878#webpage","url":"https:\/\/extan.jp\/?p=10878","name":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","inLanguage":"ja","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=10878#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\/2023\/03\/00040_eyecatch.png","@id":"https:\/\/extan.jp\/?p=10878\/#mainImage","width":879,"height":583,"caption":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=10878#mainImage"},"datePublished":"2026-10-15T23:48:41+09:00","dateModified":"2026-10-15T23:48:41+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\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","og:url":"https:\/\/extan.jp\/?p=10878","article:published_time":"2026-10-15T14:48:41+00:00","article:modified_time":"2026-10-15T14:48:41+00:00","twitter:card":"summary","twitter:title":"Excel VBA\u3067\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp"},"aioseo_meta_data":{"post_id":"10878","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","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":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","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":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"created":"2026-10-15 14:47:51","updated":"2026-10-15 14:48:41","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":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"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\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01\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\u6587\u5b57\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u65b9\u6cd5\uff01\u30b7\u30fc\u30c8\u5168\u4f53\u3082\uff01","link":"https:\/\/extan.jp\/?p=10878"}],"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10878","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=10878"}],"version-history":[{"count":2,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10878\/revisions"}],"predecessor-version":[{"id":15468,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10878\/revisions\/15468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/15467"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}