{"id":26715,"date":"2026-08-08T05:27:14","date_gmt":"2026-08-07T20:27:14","guid":{"rendered":"https:\/\/genai-ai.co.jp\/ai-kanri\/?p=26715"},"modified":"2026-08-08T05:27:14","modified_gmt":"2026-08-07T20:27:14","slug":"vba-dynamic-array","status":"publish","type":"post","link":"https:\/\/genai-ai.co.jp\/ai-kanri\/blog\/vba-dynamic-array\/","title":{"rendered":"\u30102026\u5e748\u6708\u6700\u65b0\u3011ExcelVBA\u306e\u52d5\u7684\u914d\u5217\u3068\u306f\uff1fReDim\u30fbPreserve\u306e\u4f7f\u3044\u65b9\u304b\u3089\u9759\u7684\u914d\u5217\u3068\u306e\u9055\u3044\u307e\u3067\u5b8c\u5168\u30ac\u30a4\u30c9"},"content":{"rendered":"\n<style>\n.g-flow-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;align-items:center;}\n.g-flow-item{background:linear-gradient(135deg,#1a1a1a,#2a1015);color:#fff;border-radius:8px;padding:16px 14px;min-width:130px;flex:1;text-align:center;}\n.g-flow-arrow{color:#dc2626;font-size:20px;font-weight:700;}\n.g-card-row{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 32px;}\n.g-card-row>div{flex:1;min-width:220px;}\n@media(max-width:600px){\n  .g-flow-row{flex-direction:column;}\n  .g-flow-arrow{transform:rotate(90deg);}\n  .g-card-row{flex-direction:column;}\n  .g-card-row>div{min-width:100%;}\n}\n<\/style>\n\n\n\n<div style=\"margin:0 0 32px;\">\n  <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/08\/thumb-vba-dynamic-array.jpg\" alt=\"\u30102026\u5e748\u6708\u6700\u65b0\u3011ExcelVBA\u306e\u52d5\u7684\u914d\u5217\u3068\u306f\uff1fReDim\u30fbPreserve\u306e\u4f7f\u3044\u65b9\u304b\u3089\u9759\u7684\u914d\u5217\u3068\u306e\u9055\u3044\u307e\u3067\u5b8c\u5168\u30ac\u30a4\u30c9\" style=\"width:100%;height:auto;border-radius:12px;display:block;\">\n<\/div>\n\n\n\n<div style=\"background:#f8f9fa;border-radius:12px;padding:24px 28px;margin:0 0 32px;border-left:4px solid #dc2626;\">\n  <p style=\"font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 16px;\">\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9<\/p>\n  <ol style=\"margin:0;padding-left:20px;font-size:14px;line-height:2.2;list-style:none;\">\n    <li><a href=\"#sec-01\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">01<\/span>\u914d\u5217\u3068\u306f\uff1f\u305d\u3082\u305d\u3082\u306e\u57fa\u790e\u3092\u7406\u89e3\u3059\u308b<\/a><\/li>\n    <li><a href=\"#sec-02\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">02<\/span>\u9759\u7684\u914d\u5217\u3068\u52d5\u7684\u914d\u5217\u306e\u9055\u3044<\/a><\/li>\n    <li><a href=\"#sec-03\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">03<\/span>\u52d5\u7684\u914d\u5217\u306e\u5ba3\u8a00\u30fbReDim\u306b\u3088\u308b\u521d\u671f\u5316<\/a><\/li>\n    <li><a href=\"#sec-04\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">04<\/span>\u52d5\u7684\u914d\u5217\u306b\u5024\u3092\u4ee3\u5165\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n    <li><a href=\"#sec-05\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">05<\/span>ReDim Preserve\u3067\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3068\u6ce8\u610f\u70b9<\/a><\/li>\n    <li><a href=\"#sec-06\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">06<\/span>\u3010\u5fdc\u7528\u3011UBound\/LBound\u3067\u8981\u7d20\u6570\u3092\u610f\u8b58\u305b\u305a\u64cd\u4f5c\u3059\u308b<\/a><\/li>\n    <li><a href=\"#sec-07\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">07<\/span>\u52d5\u7684\u914d\u5217\u3067\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u51e6\u6cd5<\/a><\/li>\n    <li><a href=\"#sec-08\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">08<\/span>\u5b9f\u52d9\u3067\u3088\u304f\u3042\u308b\u9593\u9055\u3044\u30d1\u30bf\u30fc\u30f3<\/a><\/li>\n    <li><a href=\"#sec-09\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">09<\/span>\u3010\u72ec\u81ea\u3011VBA\u306e\u300c\u5730\u9053\u306a\u51e6\u7406\u300d\u3092AI\u306b\u4efb\u305b\u308b<\/a><\/li>\n    <li><a href=\"#faq\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">FAQ<\/span>\u3088\u304f\u3042\u308b\u8cea\u554f<\/a><\/li>\n  <\/ol>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u300cExcel VBA\u3067\u914d\u5217\u3092\u4f7f\u3044\u305f\u3044\u3051\u3069\u3001\u8981\u7d20\u6570\u304c\u5b9f\u884c\u3057\u3066\u307f\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u2026\u300d\u2014\u2014\u96c6\u8a08\u30de\u30af\u30ed\u3084\u5728\u5eab\u30ea\u30b9\u30c8\u306e\u51e6\u7406\u306a\u3069\u3092\u7d44\u3093\u3067\u3044\u308b\u65b9\u306a\u3089\u3001\u4e00\u5ea6\u306f\u3053\u306e\u58c1\u306b\u3076\u3064\u304b\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306e\u914d\u5217\u306b\u306f\u3001\u3042\u3089\u304b\u3058\u3081\u8981\u7d20\u6570\u3092\u6c7a\u3081\u3066\u304a\u304f<strong>\u9759\u7684\u914d\u5217<\/strong>\u3068\u3001\u5b9f\u884c\u6642\u306b\u8981\u7d20\u6570\u3092\u5909\u3048\u3089\u308c\u308b<strong>\u52d5\u7684\u914d\u5217<\/strong>\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002\u4ef6\u6570\u304c\u5909\u52d5\u3059\u308b\u30c7\u30fc\u30bf\u3092\u6271\u3046\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u52d5\u7684\u914d\u5217\u306e\u4f7f\u3044\u65b9\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3067\u3001\u30de\u30af\u30ed\u306e\u67d4\u8edf\u6027\u304c\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u914d\u5217\u306e\u57fa\u790e\u304b\u3089\u3001\u9759\u7684\u914d\u5217\u3068\u52d5\u7684\u914d\u5217\u306e\u9055\u3044\u3001ReDim\u30fbReDim Preserve\u3092\u4f7f\u3063\u305f\u52d5\u7684\u914d\u5217\u306e\u66f8\u304d\u65b9\u3001UBound\/LBound\u3092\u4f7f\u3063\u305f\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u307e\u3067\u3092\u4f53\u7cfb\u7684\u306b\u6574\u7406\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u5f8c\u534a\u3067\u306f\u3001<strong>\u3053\u3046\u3057\u305f\u300c\u5730\u9053\u306a\u96c6\u8a08\u30fb\u30c7\u30fc\u30bf\u6574\u5f62\u51e6\u7406\u300d\u3092Claude Code\u306e\u3088\u3046\u306aAI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3069\u3046\u4efb\u305b\u3089\u308c\u308b\u304b<\/strong>\u3068\u3044\u3046\u5b9f\u52d9\u7684\u306a\u8996\u70b9\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u52d5\u7684\u914d\u5217\u306f\u300c\u4f7f\u3044\u3053\u306a\u305b\u308b\u3068\u4e00\u6c17\u306b\u696d\u52d9\u52b9\u7387\u304c\u4e0a\u304c\u308b\u300d\u5178\u578b\u7684\u306a\u6a5f\u80fd\u3067\u3059\u3002\u9006\u306b\u3001ReDim Preserve\u306e\u4ed5\u7d44\u307f\u3092\u8aa4\u89e3\u3057\u3066\u3044\u308b\u3068\u3001\u5b9f\u884c\u306e\u305f\u3073\u306b\u51e6\u7406\u304c\u9045\u304f\u306a\u308b\u30de\u30af\u30ed\u3092\u4f5c\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u4eca\u65e5\u306f\u305d\u306e\u5883\u754c\u7dda\u3092\u306f\u3063\u304d\u308a\u3055\u305b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u5f0a\u793e\u3067\u3082\u7d4c\u7406\u30fb\u55b6\u696d\u306e\u30c7\u30fc\u30bf\u96c6\u8a08\u306bVBA\u3092\u4f7f\u3063\u3066\u3044\u305f\u6642\u671f\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u300c\u4ef6\u6570\u304c\u5909\u308f\u308b\u305f\u3073\u306b\u30b3\u30fc\u30c9\u3092\u76f4\u3059\u300d\u3068\u3044\u3046\u904b\u7528\u306f\u6b63\u76f4\u304b\u306a\u308a\u306e\u30b9\u30c8\u30ec\u30b9\u3067\u3057\u305f\u3002\u52d5\u7684\u914d\u5217\u3092\u7406\u89e3\u3057\u3066\u304b\u3089\u306f\u3001\u305d\u306e\u60a9\u307f\u304c\u304b\u306a\u308a\u6e1b\u308a\u307e\u3057\u305f\u3002<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3092\u6700\u5f8c\u307e\u3067\u8aad\u3080\u3068\u3001\u6b21\u306e6\u3064\u304c\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u914d\u5217<\/strong>\u306e\u57fa\u672c\u6982\u5ff5\u3068\u3001\u696d\u52d9\u30de\u30af\u30ed\u3067\u306e\u4f7f\u3044\u3069\u3053\u308d<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u9759\u7684\u914d\u5217<\/strong>\u3068<strong>\u52d5\u7684\u914d\u5217<\/strong>\u306e\u9055\u3044\u3068\u3001\u305d\u308c\u305e\u308c\u5411\u3044\u3066\u3044\u308b\u5834\u9762<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>ReDim<\/strong>\u3092\u4f7f\u3063\u305f\u52d5\u7684\u914d\u5217\u306e\u5ba3\u8a00\u30fb\u521d\u671f\u5316\u65b9\u6cd5<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>ReDim Preserve<\/strong>\u3067\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u4fdd\u3063\u305f\u307e\u307e\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3068\u6ce8\u610f\u70b9<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>UBound\/LBound<\/strong>\u3092\u4f7f\u3044\u3001\u8981\u7d20\u6570\u3092\u610f\u8b58\u305b\u305a\u914d\u5217\u3092\u64cd\u4f5c\u3059\u308b\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>Claude Code<\/strong>\u3092\u4f7f\u3063\u305fVBA\u696d\u52d9\u30fb\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u52b9\u7387\u5316\u65b9\u6cd5<\/span><\/div>\n\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-01\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">01<\/span>\n  <span class=\"section-label\" style=\"display:block;\">ARRAY BASICS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u914d\u5217\u3068\u306f\uff1f\u305d\u3082\u305d\u3082\u306e\u57fa\u790e\u3092\u7406\u89e3\u3059\u308b<\/span>\n  <span class=\"section-desc\">\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30921\u3064\u306e\u5909\u6570\u540d\u3067\u307e\u3068\u3081\u3066\u6271\u3046\u4ed5\u7d44\u307f<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u5217\u3068\u306f\u3001<strong>\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30921\u3064\u306e\u5909\u6570\u540d\u3067\u307e\u3068\u3081\u3066\u7ba1\u7406\u3059\u308b\u4ed5\u7d44\u307f<\/strong>\u3067\u3059\u3002\u901a\u5e38\u306e\u5909\u6570\u306f1\u3064\u306e\u5024\u3057\u304b\u5165\u308c\u3089\u308c\u307e\u305b\u3093\u304c\u3001\u914d\u5217\u3092\u4f7f\u3046\u3068\u300c\u5546\u54c1\u540d\u3092100\u4ef6\u5206\u300d\u300c\u58f2\u4e0a\u91d1\u984d\u30921\u5e74\u5206\u300d\u3068\u3044\u3063\u305f\u8907\u6570\u306e\u30c7\u30fc\u30bf\u3092\u3001\u307e\u3068\u3081\u3066\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u914d\u5217\uff08Array\uff09<\/strong>\uff1a\u8907\u6570\u306e\u5024\u30921\u3064\u306e\u5909\u6570\u540d\u306e\u4e2d\u306b\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff08\u6dfb\u5b57\uff09\u3068\u547c\u3070\u308c\u308b\u756a\u53f7\u3067\u7ba1\u7406\u3059\u308b\u4ed5\u7d44\u307f\u3002VBA\u3067\u306f\u914d\u5217\u306e\u5148\u982d\u306f\u57fa\u672c\u7684\u306b0\u756a\u76ee\uff08\u307e\u305f\u306fOption Base\u306e\u8a2d\u5b9a\u6b21\u7b2c\u30671\u756a\u76ee\uff09\u304b\u3089\u59cb\u307e\u308b\u3002<\/p>\n<\/div>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>' \u901a\u5e38\u306e\u5909\u6570\uff081\u3064\u306e\u5024\u3057\u304b\u5165\u3089\u306a\u3044\uff09\nDim productName As String\nproductName = \"\u30ce\u30fc\u30c8PC\"\n\n' \u914d\u5217\uff08\u8907\u6570\u306e\u5024\u3092\u307e\u3068\u3081\u3066\u7ba1\u7406\uff09\nDim productNames(2) As String\nproductNames(0) = \"\u30ce\u30fc\u30c8PC\"\nproductNames(1) = \"\u30de\u30a6\u30b9\"\nproductNames(2) = \"\u30ad\u30fc\u30dc\u30fc\u30c9\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001productNames(2)\u3068\u3044\u3046\u66f8\u304d\u65b9\u3067\u300c0\u756a\u76ee\u304b\u30892\u756a\u76ee\u307e\u3067\u3001\u5408\u8a083\u3064\u306e\u7bb1\u3092\u6301\u3064\u914d\u5217\u300d\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<strong>\u914d\u5217\u306e\u5ba3\u8a00\u6642\u306b\u6307\u5b9a\u3059\u308b\u6570\u5b57\u306f\u300c\u6700\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u300d\u3067\u3042\u308a\u3001\u8981\u7d20\u6570\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u3044<\/strong>\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u8981\u7d20\u6570\u3068\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u306e\u6df7\u540c\u306b\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">Dim arr(2) As String\u306f\u300c\u8981\u7d20\u65702\u300d\u3067\u306f\u306a\u304f\u300c\u30a4\u30f3\u30c7\u30c3\u30af\u30b90\u301c2\u306e\u5408\u8a083\u8981\u7d20\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002VBA\u521d\u5b66\u8005\u304c\u6700\u3082\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u306e\u4e00\u3064\u3067\u3059\u3002\u8981\u7d20\u6570\u3092\u6b63\u78ba\u306b\u6570\u3048\u305f\u3044\u5834\u5408\u306f\u3001\u5f8c\u8ff0\u3059\u308bUBound\u95a2\u6570\u3092\u4f7f\u3046\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">1-1. \u306a\u305c\u696d\u52d9\u30de\u30af\u30ed\u3067\u914d\u5217\u304c\u91cd\u8981\u306a\u306e\u304b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Excel\u30de\u30af\u30ed\u306e\u51e6\u7406\u901f\u5ea6\u306f\u3001<strong>\u30bb\u30eb\u3078\u306e\u8aad\u307f\u66f8\u304d\u56de\u6570<\/strong>\u306b\u5927\u304d\u304f\u5de6\u53f3\u3055\u308c\u307e\u3059\u3002\u30bb\u30eb\u30921\u3064\u305a\u3064\u30eb\u30fc\u30d7\u3067\u8aad\u307f\u66f8\u304d\u3059\u308b\u51e6\u7406\u306f\u975e\u5e38\u306b\u9045\u304f\u306a\u308a\u304c\u3061\u3067\u3059\u304c\u3001\u914d\u5217\u306b\u307e\u3068\u3081\u3066\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u3001\u914d\u5217\u5185\u3067\u51e6\u7406\u3092\u3057\u3066\u304b\u3089\u4e00\u62ec\u3067\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u623b\u3059\u3053\u3068\u3067\u3001<strong>\u51e6\u7406\u901f\u5ea6\u3092\u5287\u7684\u306b\u6539\u5584\u3067\u304d\u308b<\/strong>\u30b1\u30fc\u30b9\u304c\u591a\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u6570\u5343\u884c\u306e\u30c7\u30fc\u30bf\u3092\u30bb\u30eb\u5358\u4f4d\u3067\u30eb\u30fc\u30d7\u51e6\u7406\u3057\u3066\u3044\u305f\u30de\u30af\u30ed\u3092\u3001\u914d\u5217\u3092\u4f7f\u3063\u3066\u66f8\u304d\u63db\u3048\u305f\u3089\u5b9f\u884c\u6642\u9593\u304c\u6570\u5206\u306e1\u306b\u306a\u3063\u305f\u3001\u3068\u3044\u3046\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3059\u3002\u5730\u5473\u306a\u8a71\u306b\u898b\u3048\u3066\u3001\u5b9f\u52d9\u3078\u306e\u30a4\u30f3\u30d1\u30af\u30c8\u306f\u304b\u306a\u308a\u5927\u304d\u3044\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-02\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">02<\/span>\n  <span class=\"section-label\" style=\"display:block;\">STATIC VS DYNAMIC<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u9759\u7684\u914d\u5217\u3068\u52d5\u7684\u914d\u5217\u306e\u9055\u3044<\/span>\n  <span class=\"section-desc\">\u300c\u8981\u7d20\u6570\u3092\u5148\u306b\u6c7a\u3081\u308b\u304b\u3001\u5f8c\u304b\u3089\u6c7a\u3081\u308b\u304b\u300d\u3068\u3044\u3046\u6839\u672c\u7684\u306a\u9055\u3044<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306e\u914d\u5217\u306f\u3001<strong>\u9759\u7684\u914d\u5217\uff08\u56fa\u5b9a\u9577\u914d\u5217\uff09<\/strong>\u3068<strong>\u52d5\u7684\u914d\u5217\uff08\u53ef\u5909\u9577\u914d\u5217\uff09<\/strong>\u306e2\u7a2e\u985e\u306b\u5927\u5225\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u9805\u76ee<\/th><th>\u9759\u7684\u914d\u5217<\/th><th>\u52d5\u7684\u914d\u5217<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u8981\u7d20\u6570\u306e\u6c7a\u5b9a\u30bf\u30a4\u30df\u30f3\u30b0<\/td><td>\u5ba3\u8a00\u6642\u306b\u56fa\u5b9a<\/td><td>\u5b9f\u884c\u6642\u306b\u81ea\u7531\u306b\u5909\u66f4\u3067\u304d\u308b<\/td><\/tr>\n<tr><td>\u5ba3\u8a00\u65b9\u6cd5<\/td><td>Dim arr(9) As String<\/td><td>Dim arr() As String\uff08\u30ab\u30c3\u30b3\u3092\u7a7a\u306b\u3059\u308b\uff09<\/td><\/tr>\n<tr><td>\u8981\u7d20\u6570\u5909\u66f4<\/td><td>\u4e0d\u53ef\uff08\u518d\u5ba3\u8a00\u304c\u5fc5\u8981\uff09<\/td><td>ReDim\u3067\u4f55\u5ea6\u3067\u3082\u5909\u66f4\u53ef\u80fd<\/td><\/tr>\n<tr><td>\u30e1\u30e2\u30ea\u306e\u4f7f\u3044\u65b9<\/td><td>\u3042\u3089\u304b\u3058\u3081\u78ba\u4fdd\u3057\u305f\u5206\u3060\u3051\u4f7f\u7528<\/td><td>\u5fc5\u8981\u306b\u306a\u3063\u305f\u6642\u70b9\u3067\u78ba\u4fdd\u30fb\u518d\u78ba\u4fdd<\/td><\/tr>\n<tr><td>\u5411\u3044\u3066\u3044\u308b\u5834\u9762<\/td><td>\u4ef6\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u56fa\u5b9a\u7684\u306a\u51e6\u7406\uff08\u66dc\u65e5\u30fb\u6708\u306a\u3069\uff09<\/td><td>\u4ef6\u6570\u304c\u5b9f\u884c\u6642\u307e\u3067\u5206\u304b\u3089\u306a\u3044\u51e6\u7406\uff08\u691c\u7d22\u7d50\u679c\u30fb\u62bd\u51fa\u30c7\u30fc\u30bf\u306a\u3069\uff09<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u9759\u7684\u914d\u5217<\/strong>\uff1a\u5ba3\u8a00\u3057\u305f\u6642\u70b9\u3067\u8981\u7d20\u6570\u304c\u78ba\u5b9a\u3057\u3001\u5b9f\u884c\u4e2d\u306b\u5909\u66f4\u3067\u304d\u306a\u3044\u914d\u5217\u3002Dim arr(9) As String\u306e\u3088\u3046\u306b\u3001\u30ab\u30c3\u30b3\u306e\u4e2d\u306b\u5177\u4f53\u7684\u306a\u6570\u5b57\u3092\u66f8\u3044\u3066\u5ba3\u8a00\u3059\u308b\u3002<\/p>\n<\/div>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u52d5\u7684\u914d\u5217<\/strong>\uff1a\u5ba3\u8a00\u6642\u306b\u306f\u8981\u7d20\u6570\u3092\u6c7a\u3081\u305a\u3001\u5b9f\u884c\u6642\u306bReDim\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3067\u8981\u7d20\u6570\u3092\u6307\u5b9a\u30fb\u5909\u66f4\u3067\u304d\u308b\u914d\u5217\u3002Dim arr() As String\u306e\u3088\u3046\u306b\u3001\u30ab\u30c3\u30b3\u306e\u4e2d\u3092\u7a7a\u306b\u3057\u3066\u5ba3\u8a00\u3059\u308b\u3002<\/p>\n<\/div>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>' \u9759\u7684\u914d\u5217\uff1a\u8981\u7d20\u6570\u304c\u3042\u3089\u304b\u3058\u3081\u78ba\u5b9a\u3057\u3066\u3044\u308b\nDim weekdays(6) As String\nweekdays(0) = \"\u6708\": weekdays(1) = \"\u706b\": weekdays(2) = \"\u6c34\"\n\n' \u52d5\u7684\u914d\u5217\uff1a\u5ba3\u8a00\u6642\u306f\u30ab\u30c3\u30b3\u3092\u7a7a\u306b\u3059\u308b\nDim results() As String\n' \u5b9f\u969b\u306e\u8981\u7d20\u6570\u306f\u5b9f\u884c\u6642\u306b\u6c7a\u307e\u308b\uff08\u5f8c\u8ff0\u306eReDim\u3067\u78ba\u4fdd\uff09<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2-1. \u3069\u3061\u3089\u3092\u9078\u3076\u3079\u304d\u304b\u306e\u5224\u65ad\u57fa\u6e96<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5224\u65ad\u57fa\u6e96\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<strong>\u300c\u66dc\u65e5\uff087\u500b\u56fa\u5b9a\uff09\u300d\u300c\u56db\u534a\u671f\uff084\u500b\u56fa\u5b9a\uff09\u300d\u306e\u3088\u3046\u306b\u3001\u8981\u7d20\u6570\u304c\u7d76\u5bfe\u306b\u5909\u308f\u3089\u306a\u3044\u3068\u5206\u304b\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u9759\u7684\u914d\u5217<\/strong>\u3001<strong>\u300c\u691c\u7d22\u7d50\u679c\u306e\u4ef6\u6570\u300d\u300c\u30d5\u30a3\u30eb\u30bf\u5f8c\u306e\u30c7\u30fc\u30bf\u4ef6\u6570\u300d\u306e\u3088\u3046\u306b\u3001\u5b9f\u884c\u3057\u3066\u307f\u306a\u3044\u3068\u8981\u7d20\u6570\u304c\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u52d5\u7684\u914d\u5217<\/strong>\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u8ff7\u3063\u305f\u3089\u52d5\u7684\u914d\u5217\u304b\u3089\u59cb\u3081\u308b<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u5b9f\u52d9\u306e\u30de\u30af\u30ed\u3067\u306f\u300c\u5c06\u6765\u7684\u306b\u4ef6\u6570\u304c\u5909\u308f\u308b\u53ef\u80fd\u6027\u300d\u3092\u8003\u616e\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u5b89\u5168\u306a\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3067\u3059\u3002\u8981\u7d20\u6570\u304c\u672c\u5f53\u306b\u56fa\u5b9a\u3067\u3042\u308b\u3068\u78ba\u4fe1\u304c\u6301\u3066\u308b\u5834\u5408\u3092\u9664\u304d\u3001\u52d5\u7684\u914d\u5217\u3067\u7d44\u3093\u3067\u304a\u304f\u65b9\u304c\u5f8c\u3005\u306e\u4ed5\u69d8\u5909\u66f4\u306b\u5f37\u3044\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u9759\u7684\u914d\u5217\u306f\u66f8\u304d\u65b9\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u5206\u3001\u5f8c\u304b\u3089\u300c\u3084\u3063\u3071\u308a\u4ef6\u6570\u304c\u5909\u308f\u308b\u4ed5\u69d8\u306b\u306a\u3063\u305f\u300d\u3068\u3044\u3046\u3068\u304d\u306e\u624b\u623b\u308a\u304c\u5927\u304d\u304f\u306a\u308a\u304c\u3061\u3067\u3059\u3002\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u52d5\u7684\u914d\u5217\u3092\u57fa\u672c\u5f62\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n\n<h3 class=\"wp-block-heading\">2-2. Option Base\u304c\u914d\u5217\u306e\u958b\u59cb\u756a\u53f7\u306b\u4e0e\u3048\u308b\u5f71\u97ff<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u5217\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u901a\u5e380\u756a\u76ee\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u304c\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5148\u982d\u306b<strong>Option Base 1<\/strong>\u3068\u3044\u3046\u5ba3\u8a00\u3092\u66f8\u304f\u3068\u3001\u305d\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u306e\u914d\u5217\u306f1\u756a\u76ee\u304b\u3089\u59cb\u307e\u308b\u4ed5\u69d8\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Option Base 1  ' \u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u306e\u914d\u5217\u306f1\u59cb\u307e\u308a\u306b\u306a\u308b\n\nSub Sample()\n    Dim arr(3) As String  ' \u30a4\u30f3\u30c7\u30c3\u30af\u30b91\u301c3\u306e\u5408\u8a083\u8981\u7d20\u306b\u306a\u308b\n    arr(1) = \"A\"\n    arr(2) = \"B\"\n    arr(3) = \"C\"\nEnd Sub<\/code><\/pre>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">Option Base\u306b\u983c\u3089\u305a\u660e\u793a\u7684\u306b\u66f8\u304f\u306e\u304c\u5b89\u5168<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">Option Base 1\u306f\u300c\u305d\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u5168\u4f53\u300d\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001\u4ed6\u306e\u958b\u767a\u8005\u304c0\u59cb\u307e\u308a\u3092\u524d\u63d0\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u8db3\u3059\u3068\u3001\u610f\u56f3\u3057\u306a\u3044\u30ba\u30ec\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u5b9f\u52d9\u3067\u306f\u3001Option Base\u306b\u983c\u3089\u305a\u3001\u914d\u5217\u5ba3\u8a00\u6642\u306bDim arr(1 To 3) As String\u306e\u3088\u3046\u306b<strong>\u958b\u59cb\u30fb\u7d42\u4e86\u756a\u53f7\u3092\u660e\u793a\u7684\u306b\u66f8\u304f<\/strong>\u65b9\u6cd5\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>' Option Base\u306b\u983c\u3089\u305a\u3001\u660e\u793a\u7684\u306b\u958b\u59cb\u756a\u53f7\u3092\u6307\u5b9a\u3059\u308b\u66f8\u304d\u65b9\nDim arr(1 To 3) As String\narr(1) = \"A\": arr(2) = \"B\": arr(3) = \"C\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u66f8\u304d\u65b9\u3067\u3042\u308c\u3070\u3001Option Base\u306e\u8a2d\u5b9a\u72b6\u6cc1\u306b\u95a2\u4fc2\u306a\u304f\u3001\u5e38\u306b\u300c1\u304b\u3089\u59cb\u307e\u308b\u914d\u5217\u300d\u3067\u3042\u308b\u3053\u3068\u304c\u30b3\u30fc\u30c9\u3092\u898b\u305f\u3060\u3051\u3067\u5206\u304b\u308a\u307e\u3059\u3002\u30c1\u30fc\u30e0\u3067\u958b\u767a\u3059\u308b\u5834\u5408\u3084\u3001\u4ed6\u306e\u4eba\u304c\u5f8c\u304b\u3089\u8aad\u3080\u30b3\u30fc\u30c9\u3067\u306f\u3001\u3053\u306e\u660e\u793a\u7684\u306a\u66f8\u304d\u65b9\u3092\u5fb9\u5e95\u3057\u3066\u304a\u304f\u3068\u4e8b\u6545\u3092\u9632\u3052\u307e\u3059\u3002<\/p>\n\n\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-03\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">03<\/span>\n  <span class=\"section-label\" style=\"display:block;\">REDIM<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u52d5\u7684\u914d\u5217\u306e\u5ba3\u8a00\u30fbReDim\u306b\u3088\u308b\u521d\u671f\u5316<\/span>\n  <span class=\"section-desc\">\u300c\u30ab\u30c3\u30b3\u3092\u7a7a\u306b\u3057\u3066\u5ba3\u8a00\u300d\u2192\u300cReDim\u3067\u78ba\u4fdd\u300d\u306e2\u30b9\u30c6\u30c3\u30d7<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u52d5\u7684\u914d\u5217\u3092\u4f7f\u3046\u306b\u306f\u3001<strong>\u300c\u5ba3\u8a00\u300d\u3068\u300cReDim\u306b\u3088\u308b\u8981\u7d20\u6570\u306e\u78ba\u4fdd\u300d\u3092\u5206\u3051\u3066\u66f8\u304f<\/strong>\u306e\u304c\u57fa\u672c\u306e\u6d41\u308c\u3067\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>' Step 1: \u5ba3\u8a00\uff08\u30ab\u30c3\u30b3\u3092\u7a7a\u306b\u3059\u308b\uff09\nDim salesData() As Long\n\n' Step 2: ReDim\u3067\u8981\u7d20\u6570\u3092\u78ba\u4fdd\nReDim salesData(9)   ' 0\u301c9\u306e\u5408\u8a0810\u8981\u7d20\u3092\u78ba\u4fdd\n\nsalesData(0) = 15000\nsalesData(1) = 22000<\/code><\/pre>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>ReDim<\/strong>\uff1a\u52d5\u7684\u914d\u5217\uff08\u30ab\u30c3\u30b3\u3092\u7a7a\u306b\u3057\u3066\u5ba3\u8a00\u3057\u305f\u914d\u5217\uff09\u306b\u5bfe\u3057\u3066\u3001\u5b9f\u884c\u6642\u306b\u8981\u7d20\u6570\u3092\u78ba\u4fdd\u30fb\u5909\u66f4\u3059\u308b\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3002\u300cRedimension\uff08\u518d\u5b9a\u7fa9\u3059\u308b\uff09\u300d\u306e\u7565\u3002\u4f55\u5ea6\u3067\u3082\u547c\u3073\u51fa\u3057\u3066\u8981\u7d20\u6570\u3092\u5909\u66f4\u3067\u304d\u308b\u304c\u3001\u539f\u5247\u3068\u3057\u3066\u4e2d\u8eab\u306e\u30c7\u30fc\u30bf\u306f\u521d\u671f\u5316\u3055\u308c\u308b\uff08\u6d88\u3048\u308b\uff09\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3-1. \u5909\u6570\u3067\u8981\u7d20\u6570\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ReDim\u306e\u771f\u4fa1\u306f\u3001<strong>\u8981\u7d20\u6570\u3092\u6570\u5024\u3067\u306f\u306a\u304f\u5909\u6570\u3067\u6307\u5b9a\u3067\u304d\u308b<\/strong>\u70b9\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Dim recordCount As Long\nrecordCount = Cells(Rows.Count, 1).End(xlUp).Row - 1  ' \u30c7\u30fc\u30bf\u4ef6\u6570\u3092\u53d6\u5f97\n\nDim salesData() As Long\nReDim salesData(recordCount - 1)  ' \u53d6\u5f97\u3057\u305f\u4ef6\u6570\u3076\u3093\u3060\u3051\u78ba\u4fdd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u66f8\u304d\u65b9\u306b\u3088\u308a\u3001<strong>\u300c\u30b7\u30fc\u30c8\u306e\u6700\u7d42\u884c\u3092\u53d6\u5f97\u3057\u3066\u3001\u305d\u306e\u4ef6\u6570\u3076\u3093\u3060\u3051\u914d\u5217\u3092\u78ba\u4fdd\u3059\u308b\u300d<\/strong>\u3068\u3044\u3046\u3001\u5b9f\u52d9\u3067\u6700\u3082\u591a\u7528\u3055\u308c\u308b\u30d1\u30bf\u30fc\u30f3\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u4ef6\u6570\u304c\u6bce\u56de\u5909\u308f\u308b\u96c6\u8a08\u30de\u30af\u30ed\u3067\u306f\u3001\u3053\u306e\u5f62\u304c\u57fa\u672c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3-2. \u591a\u6b21\u5143\u306e\u52d5\u7684\u914d\u5217<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u52d5\u7684\u914d\u5217\u306f2\u6b21\u5143\u4ee5\u4e0a\uff08\u8868\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\uff09\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Dim table() As Variant\nReDim table(recordCount - 1, 2)  ' \u884c\u6570\u00d73\u5217\u306e2\u6b21\u5143\u914d\u5217\n\ntable(0, 0) = \"\u5546\u54c1A\": table(0, 1) = 100: table(0, 2) = 15000<\/code><\/pre>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u591a\u6b21\u5143\u914d\u5217\u306fReDim Preserve\u306b\u5236\u7d04\u304c\u3042\u308b<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">2\u6b21\u5143\u4ee5\u4e0a\u306e\u52d5\u7684\u914d\u5217\u306bReDim Preserve\u3092\u4f7f\u3046\u5834\u5408\u3001<strong>\u300c\u6700\u5f8c\u306e\u6b21\u5143\u300d\u3057\u304b\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3067\u304d\u307e\u305b\u3093<\/strong>\u30021\u6b21\u5143\u76ee\uff08\u884c\u6570\uff09\u3092\u5909\u3048\u305f\u3044\u5834\u5408\u306fPreserve\u304c\u4f7f\u3048\u305a\u3001\u30c7\u30fc\u30bf\u3092\u9000\u907f\u3057\u3066\u304b\u3089\u914d\u5217\u3092\u518d\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u6b21\u7ae0\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-04\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">04<\/span>\n  <span class=\"section-label\" style=\"display:block;\">ASSIGN VALUES<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u52d5\u7684\u914d\u5217\u306b\u5024\u3092\u4ee3\u5165\u3059\u308b\u65b9\u6cd5<\/span>\n  <span class=\"section-desc\">\u30eb\u30fc\u30d7\u51e6\u7406\u30fb\u30bb\u30eb\u7bc4\u56f2\u304b\u3089\u306e\u4e00\u62ec\u4ee3\u5165\u30d1\u30bf\u30fc\u30f3<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u52d5\u7684\u914d\u5217\u306b\u5024\u3092\u5165\u308c\u308b\u4ee3\u8868\u7684\u306a\u65b9\u6cd5\u30922\u30d1\u30bf\u30fc\u30f3\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4-1. \u30eb\u30fc\u30d7\u30671\u4ef6\u305a\u3064\u4ee3\u5165\u3059\u308b<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Dim i As Long\nFor i = 0 To recordCount - 1\n    salesData(i) = Cells(i + 2, 2).Value  ' 2\u884c\u76ee\u304b\u3089\u9806\u306b\u8aad\u307f\u8fbc\u3080\nNext i<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4-2. \u30bb\u30eb\u7bc4\u56f2\u3092\u914d\u5217\u306b\u4e00\u62ec\u4ee3\u5165\u3059\u308b\uff08\u9ad8\u901f\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ef6\u6570\u304c\u591a\u3044\u5834\u5408\u30011\u4ef6\u305a\u3064\u30eb\u30fc\u30d7\u3067\u4ee3\u5165\u3059\u308b\u3088\u308a\u3001<strong>\u30bb\u30eb\u7bc4\u56f2\u3092\u307e\u308b\u3054\u3068\u914d\u5217\u306b\u4ee3\u5165\u3059\u308b<\/strong>\u65b9\u304c\u5727\u5012\u7684\u306b\u9ad8\u901f\u3067\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Dim dataRange As Variant\ndataRange = Range(\"A2:C1000\").Value  ' \u7bc4\u56f2\u5168\u4f53\u3092\u4e00\u6c17\u306b\u914d\u5217\u5316\n\n' dataRange(1, 1) \u304c A2\u30bb\u30eb\u3001dataRange(1, 2) \u304c B2\u30bb\u30eb...\u3068\u3044\u3046\u5bfe\u5fdc\u306b\u306a\u308b<\/code><\/pre>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>Variant\u578b<\/strong>\uff1a\u3042\u3089\u3086\u308b\u30c7\u30fc\u30bf\u578b\u3092\u683c\u7d0d\u3067\u304d\u308bVBA\u306e\u6c4e\u7528\u30c7\u30fc\u30bf\u578b\u3002\u30bb\u30eb\u7bc4\u56f2\u3092\u914d\u5217\u306b\u4e00\u62ec\u4ee3\u5165\u3059\u308b\u5834\u5408\u3001\u4ee3\u5165\u5148\u306fVariant\u578b\u3067\u5ba3\u8a00\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff08Range\u306e.Value\u3092\u914d\u5217\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b\u4ed5\u69d8\u306e\u305f\u3081\uff09\u3002<\/p>\n<\/div>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u30bb\u30eb\u7bc4\u56f2\u306e\u4e00\u62ec\u4ee3\u5165\u306f\u51e6\u7406\u901f\u5ea6\u304c\u6bb5\u9055\u3044<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u30eb\u30fc\u30d7\u30671\u4ef6\u305a\u3064Cells().Value\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u51e6\u7406\u306f\u3001\u30bb\u30eb\u30a2\u30af\u30bb\u30b9\u306e\u305f\u3073\u306b\u8ca0\u8377\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u7bc4\u56f2\u3092\u307e\u308b\u3054\u3068\u914d\u5217\u306b\u4ee3\u5165\u3059\u308b\u65b9\u6cd5\u306a\u3089\u3001\u3053\u306e\u8ca0\u8377\u304c1\u56de\u3067\u6e08\u3080\u305f\u3081\u3001\u6570\u5343\u884c\u898f\u6a21\u306e\u30c7\u30fc\u30bf\u3067\u3082\u51e6\u7406\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u3053\u306e\u300c\u7bc4\u56f2\u3092\u4e00\u62ec\u3067\u914d\u5217\u306b\u5165\u308c\u308b\u300d\u30c6\u30af\u30cb\u30c3\u30af\u3092\u77e5\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3067\u3001\u30de\u30af\u30ed\u306e\u5b9f\u884c\u6642\u9593\u304c\u6570\u5341\u500d\u5909\u308f\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002VBA\u3092\u5b9f\u52d9\u3067\u4f7f\u3046\u306a\u3089\u3001\u5fc5\u305a\u62bc\u3055\u3048\u3066\u304a\u304d\u305f\u3044\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-05\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">05<\/span>\n  <span class=\"section-label\" style=\"display:block;\">PRESERVE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">ReDim Preserve\u3067\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3068\u6ce8\u610f\u70b9<\/span>\n  <span class=\"section-desc\">\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u6d88\u3055\u305a\u306b\u914d\u5217\u3092\u62e1\u5f35\u3059\u308b\u30c6\u30af\u30cb\u30c3\u30af<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u8ff0\u306e\u901a\u308a\u3001ReDim\u306f\u901a\u5e38<strong>\u914d\u5217\u306e\u4e2d\u8eab\u3092\u521d\u671f\u5316\uff08\u6d88\u53bb\uff09\u3057\u3066\u3057\u307e\u3044\u307e\u3059<\/strong>\u3002\u3059\u3067\u306b\u5165\u3063\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u4fdd\u3063\u305f\u307e\u307e\u8981\u7d20\u6570\u3060\u3051\u5897\u3084\u3057\u305f\u3044\u5834\u5408\u306f\u3001<strong>ReDim Preserve<\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Dim items() As String\nReDim items(2)\nitems(0) = \"A\": items(1) = \"B\": items(2) = \"C\"\n\n' \u8981\u7d20\u30921\u3064\u8ffd\u52a0\u3057\u305f\u3044\uff08\u65e2\u5b58\u306eA\u30fbB\u30fbC\u306f\u6b8b\u3057\u305f\u307e\u307e\uff09\nReDim Preserve items(3)\nitems(3) = \"D\"<\/code><\/pre>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>ReDim Preserve<\/strong>\uff1aReDim\u306b\u300cPreserve\u300d\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u3001\u914d\u5217\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3057\u3064\u3064\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u62e1\u5f35\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3002\u300c\u4fdd\u6301\u3059\u308b\u300d\u3068\u3044\u3046\u82f1\u5358\u8a9e\u306e\u610f\u5473\u901a\u308a\u3001\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u6b8b\u3059\u70b9\u304cReDim\u5358\u4f53\u3068\u306e\u9055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5-1. ReDim Preserve\u306e\u6ce8\u610f\u70b9\uff1a\u30eb\u30fc\u30d7\u5185\u3067\u591a\u7528\u3057\u306a\u3044<\/h3>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u30eb\u30fc\u30d7\u5185\u3067\u306eReDim Preserve\u9023\u767a\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u7f60<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">ReDim Preserve\u306f\u5b9f\u884c\u306e\u305f\u3073\u306b<strong>\u65b0\u3057\u3044\u914d\u5217\u3092\u88cf\u5074\u3067\u78ba\u4fdd\u3057\u76f4\u3057\u3001\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/strong>\u3068\u3044\u3046\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u30021\u4ef6\u305a\u3064\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3073\u306bReDim Preserve\u3092\u30eb\u30fc\u30d7\u5185\u3067\u547c\u3073\u51fa\u3059\u3068\u3001\u30c7\u30fc\u30bf\u4ef6\u6570\u304c\u5897\u3048\u308b\u307b\u3069\u51e6\u7406\u304c\u6025\u6fc0\u306b\u9045\u304f\u306a\u308a\u307e\u3059\uff08\u4ef6\u6570\u306e2\u4e57\u306b\u8fd1\u3044\u30da\u30fc\u30b9\u3067\u9045\u304f\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\uff09\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u554f\u984c\u3092\u907f\u3051\u308b\u306b\u306f\u3001<strong>\u300c\u3042\u3089\u304b\u3058\u3081\u5341\u5206\u306a\u4f59\u88d5\u3092\u6301\u305f\u305b\u305f\u30b5\u30a4\u30ba\u3067ReDim\u3057\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u305f\u4ef6\u6570\u3060\u3051\u5f8c\u304b\u3089Preserve\u3067\u5207\u308a\u8a70\u3081\u308b\u300d<\/strong>\u3068\u3044\u30462\u6bb5\u69cb\u3048\u306e\u65b9\u6cd5\u304c\u5b9a\u77f3\u3067\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Dim results() As String\nReDim results(999)  ' \u4f59\u88d5\u3092\u6301\u3063\u30661000\u4ef6\u5206\u3092\u5148\u306b\u78ba\u4fdd\n\nDim count As Long\ncount = 0\n\nDim i As Long\nFor i = 1 To 500\n    If Cells(i, 1).Value &gt; 100 Then\n        results(count) = Cells(i, 1).Value\n        count = count + 1\n    End If\nNext i\n\n' \u30eb\u30fc\u30d7\u7d42\u4e86\u5f8c\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u305f\u4ef6\u6570\u3060\u3051\u306b1\u56de\u3060\u3051Preserve\u3067\u5207\u308a\u8a70\u3081\u308b\nReDim Preserve results(count - 1)<\/code><\/pre>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u30eb\u30fc\u30d7\u5185\u306ePreserve\u306f\u300c\u6700\u5f8c\u306b1\u56de\u3060\u3051\u300d\u304c\u9244\u5247<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u6bce\u56deReDim Preserve\u3092\u547c\u3076\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u30eb\u30fc\u30d7\u306e\u5916\u3067\u6700\u5f8c\u306b1\u56de\u3060\u3051\u300d\u547c\u3076\u8a2d\u8a08\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u51e6\u7406\u901f\u5ea6\u306e\u52a3\u5316\u3092\u9632\u3052\u307e\u3059\u3002\u4ef6\u6570\u304c\u6570\u767e\u4ef6\u3092\u8d85\u3048\u308b\u30de\u30af\u30ed\u3067\u306f\u3001\u3053\u306e\u5dee\u304c\u4f53\u611f\u3067\u304d\u308b\u30ec\u30d9\u30eb\u306e\u901f\u5ea6\u5dee\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>\u5927\u304d\u3081\u306e\u30b5\u30a4\u30ba\u3067<br>\u5148\u306bReDim<\/strong><br><span style=\"font-size:12px;\">\u4f59\u88d5\u3092\u6301\u305f\u305b\u3066<br>1\u56de\u3060\u3051\u78ba\u4fdd<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u30eb\u30fc\u30d7\u5185\u3067<br>\u5024\u3092\u4ee3\u5165<\/strong><br><span style=\"font-size:12px;\">Preserve\u306f<br>\u547c\u3070\u306a\u3044<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u30eb\u30fc\u30d7\u7d42\u4e86\u5f8c\u306b<br>1\u56de\u3060\u3051Preserve<\/strong><br><span style=\"font-size:12px;\">\u5b9f\u969b\u306e\u4ef6\u6570\u306b<br>\u5207\u308a\u8a70\u3081\u308b<\/span><\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">ReDim Preserve\u3092\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u9023\u767a\u3057\u3066\u3057\u307e\u3046\u30d0\u30b0\u306f\u3001VBA\u3092\u72ec\u5b66\u3067\u899a\u3048\u305f\u65b9\u306e\u591a\u304f\u304c\u4e00\u5ea6\u306f\u901a\u308b\u9053\u3067\u3059\u3002\u4ef6\u6570\u304c\u5c11\u306a\u3044\u3046\u3061\u306f\u6c17\u3065\u304b\u305a\u3001\u30c7\u30fc\u30bf\u304c\u5897\u3048\u3066\u304b\u3089\u6025\u306b\u9045\u304f\u306a\u3063\u3066\u767a\u899a\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u304c\u5178\u578b\u7684\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-06\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">06<\/span>\n  <span class=\"section-label\" style=\"display:block;\">UBOUND LBOUND<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u5fdc\u7528\u3011UBound\/LBound\u3067\u8981\u7d20\u6570\u3092\u610f\u8b58\u305b\u305a\u64cd\u4f5c\u3059\u308b<\/span>\n  <span class=\"section-desc\">\u914d\u5217\u306e\u300c\u4eca\u306e\u5927\u304d\u3055\u300d\u3092\u30b3\u30fc\u30c9\u306b\u805e\u304f\u65b9\u6cd5<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u52d5\u7684\u914d\u5217\u3092\u6271\u3046\u5b9f\u52d9\u30b3\u30fc\u30c9\u3067\u306f\u3001<strong>\u300c\u4eca\u3001\u3053\u306e\u914d\u5217\u306b\u4f55\u500b\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u300d\u3092\u90fd\u5ea6\u53d6\u5f97\u3059\u308b<\/strong>\u5834\u9762\u304c\u983b\u7e41\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u4f7f\u3046\u306e\u304cUBound\u95a2\u6570\u3068LBound\u95a2\u6570\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>UBound\u95a2\u6570<\/strong>\uff1a\u914d\u5217\u306e\u300c\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\uff08Upper Bound\uff09\u300d\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3002UBound(arr)\u3068\u66f8\u304f\u3068\u3001\u914d\u5217arr\u306e\u672b\u5c3e\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u304c\u8fd4\u308b\u3002\u300c\u8981\u7d20\u6570\u300d\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u304f\u300c\u756a\u53f7\u300d\u3067\u3042\u308b\u70b9\u306b\u6ce8\u610f\uff08\u8981\u7d20\u6570\u3092\u6c42\u3081\u305f\u3044\u5834\u5408\u306fUBound(arr) - LBound(arr) + 1\u3067\u8a08\u7b97\u3059\u308b\uff09\u3002<\/p>\n<\/div>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>LBound\u95a2\u6570<\/strong>\uff1a\u914d\u5217\u306e\u300c\u6700\u5c0f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\uff08Lower Bound\uff09\u300d\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3002\u591a\u304f\u306e\u5834\u54080\u304c\u8fd4\u308b\u304c\u3001Option Base 1\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u74b0\u5883\u3084\u3001ReDim\u3067\u660e\u793a\u7684\u306b\u958b\u59cb\u4f4d\u7f6e\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f1\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u3002<\/p>\n<\/div>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Dim arr() As String\nReDim arr(5)\n\nDebug.Print UBound(arr)   ' \u2192 5 \u304c\u51fa\u529b\u3055\u308c\u308b\nDebug.Print LBound(arr)   ' \u2192 0 \u304c\u51fa\u529b\u3055\u308c\u308b\uff08\u901a\u5e38\u6642\uff09\nDebug.Print UBound(arr) - LBound(arr) + 1   ' \u2192 \u8981\u7d20\u6570 6 \u304c\u51fa\u529b\u3055\u308c\u308b<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6-1. \u30eb\u30fc\u30d7\u306e\u7d42\u7aef\u3092UBound\u3067\u52d5\u7684\u306b\u6307\u5b9a\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u5217\u306e\u8981\u7d20\u6570\u304c\u305d\u306e\u90fd\u5ea6\u5909\u308f\u308b\u5834\u5408\u3001For\u30eb\u30fc\u30d7\u306e\u7d42\u7aef\u3092\u56fa\u5b9a\u306e\u6570\u5024\u3067\u66f8\u3044\u3066\u3057\u307e\u3046\u3068\u3001<strong>\u30c7\u30fc\u30bf\u304c\u5897\u6e1b\u3059\u308b\u305f\u3073\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u76f4\u3059<\/strong>\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3059\u3002UBound\u3092\u4f7f\u3048\u3070\u3001\u3053\u306e\u624b\u9593\u3092\u306a\u304f\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>' NG: \u4ef6\u6570\u3092\u6c7a\u3081\u6253\u3061\u3057\u3066\u3044\u308b\uff08\u30c7\u30fc\u30bf\u304c\u5897\u3048\u308b\u3068\u5bfe\u5fdc\u3067\u304d\u306a\u3044\uff09\nFor i = 0 To 99\n    Debug.Print results(i)\nNext i\n\n' OK: UBound\u3067\u300c\u4eca\u306e\u914d\u5217\u306e\u5927\u304d\u3055\u300d\u3092\u6bce\u56de\u805e\u3044\u3066\u3044\u308b\nFor i = LBound(results) To UBound(results)\n    Debug.Print results(i)\nNext i<\/code><\/pre>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>UBound\u306f\u914d\u5217\u306e\u300c\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u300d\u3092\u8fd4\u3059\uff08\u8981\u7d20\u6570\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u3044\uff09<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u8981\u7d20\u6570\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306f UBound(arr) - LBound(arr) + 1 \u3067\u8a08\u7b97\u3059\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30eb\u30fc\u30d7\u306e\u7d42\u7aef\u306fUBound\u3067\u52d5\u7684\u306b\u53d6\u5f97\u3059\u308b\u3068\u3001\u4ef6\u6570\u5909\u52d5\u306b\u5f37\u3044\u30b3\u30fc\u30c9\u306b\u306a\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>LBound\u306f\u901a\u5e380\u3060\u304c\u3001\u74b0\u5883\u8a2d\u5b9a\u6b21\u7b2c\u30671\u306b\u306a\u308b\u5834\u5408\u3082\u3042\u308b\u305f\u3081\u6c7a\u3081\u6253\u3061\u3057\u306a\u3044<\/span><\/div>\n\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">UBound\u3092\u4f7f\u308f\u305a\u306b\u8981\u7d20\u6570\u3092\u6c7a\u3081\u6253\u3061\u3057\u305f\u30b3\u30fc\u30c9\u306f\u3001\u30c7\u30fc\u30bf\u304c1\u4ef6\u5897\u3048\u305f\u3060\u3051\u3067\u52d5\u304b\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u300c\u52d5\u304f\u3051\u3069\u58ca\u308c\u3084\u3059\u3044\u30b3\u30fc\u30c9\u300d\u3068\u300c\u52d5\u304d\u7d9a\u3051\u308b\u30b3\u30fc\u30c9\u300d\u306e\u5206\u304b\u308c\u76ee\u304c\u3001\u3053\u306e\u8003\u3048\u65b9\u306b\u3042\u308b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-07\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">07<\/span>\n  <span class=\"section-label\" style=\"display:block;\">ERRORS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u52d5\u7684\u914d\u5217\u3067\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u51e6\u6cd5<\/span>\n  <span class=\"section-desc\">\u3064\u307e\u305a\u304d\u3084\u3059\u30443\u3064\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u89e3\u8aac<\/span>\n<\/h2>\n\n\n\n<table>\n<thead><tr><th>\u30a8\u30e9\u30fc\u5185\u5bb9<\/th><th>\u4e3b\u306a\u539f\u56e0<\/th><th>\u5bfe\u51e6\u6cd5<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u300c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u6709\u52b9\u7bc4\u56f2\u306b\u3042\u308a\u307e\u305b\u3093\u300d<\/td><td>ReDim\u3067\u78ba\u4fdd\u3057\u3066\u3044\u306a\u3044\u8981\u7d20\u756a\u53f7\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b<\/td><td>\u5b9f\u969b\u306b\u78ba\u4fdd\u3057\u305f\u8981\u7d20\u6570\u306e\u7bc4\u56f2\u5185\u304bUBound\u3067\u78ba\u8a8d\u3059\u308b<\/td><\/tr>\n<tr><td>\u300c\u914d\u5217\u306f\u56fa\u5b9a\u3067\u3042\u308b\u304b\u3001\u307e\u305f\u306f\u4e00\u6642\u7684\u306b\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u300d<\/td><td>ReDim Preserve\u3067\u304d\u306a\u3044\u6b21\u5143\u3092\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b<\/td><td>2\u6b21\u5143\u914d\u5217\u3067\u306f\u6700\u5f8c\u306e\u6b21\u5143\u3057\u304bPreserve\u3067\u304d\u306a\u3044\u4ed5\u69d8\u3092\u78ba\u8a8d\u3059\u308b<\/td><\/tr>\n<tr><td>\u610f\u56f3\u305b\u305a\u30c7\u30fc\u30bf\u304c\u6d88\u3048\u308b<\/td><td>Preserve\u306a\u3057\u3067ReDim\u3092\u547c\u3093\u3067\u3057\u307e\u3063\u3066\u3044\u308b<\/td><td>\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u3044\u5834\u5408\u306f\u5fc5\u305aReDim Preserve\u3092\u4f7f\u3046<\/td><\/tr>\n<tr><td>\u51e6\u7406\u304c\u7570\u5e38\u306b\u9045\u3044<\/td><td>\u30eb\u30fc\u30d7\u5185\u3067ReDim Preserve\u3092\u9023\u767a\u3057\u3066\u3044\u308b<\/td><td>\u4f59\u88d5\u3092\u6301\u3063\u305f\u30b5\u30a4\u30ba\u3067\u5148\u306bReDim\u3057\u3001\u6700\u5f8c\u306b1\u56de\u3060\u3051Preserve\u3059\u308b<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">7-1. \u30c7\u30d0\u30c3\u30b0\u6642\u306b\u4fbf\u5229\u306a\u78ba\u8a8d\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u52d5\u7684\u914d\u5217\u306e\u30d0\u30b0\u3092\u8abf\u67fb\u3059\u308b\u3068\u304d\u306f\u3001Debug.Print\u3067\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u73fe\u5728\u306e\u72b6\u614b\u3092\u51fa\u529b\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Debug.Print \"\u8981\u7d20\u6570: \" &amp; (UBound(arr) - LBound(arr) + 1)\nDebug.Print \"LBound: \" &amp; LBound(arr) &amp; \" \/ UBound: \" &amp; UBound(arr)<\/code><\/pre>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u914d\u5217\u304c\u672a\u521d\u671f\u5316\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u52d5\u7684\u914d\u5217\u306f\u3001\u5ba3\u8a00\u3057\u305f\u3060\u3051\u3067ReDim\u3092\u4e00\u5ea6\u3082\u547c\u3093\u3067\u3044\u306a\u3044\u72b6\u614b\u3060\u3068\u300c\u672a\u521d\u671f\u5316\u300d\u306e\u72b6\u614b\u306b\u306a\u308a\u3001UBound\u3092\u547c\u3076\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002On Error Resume Next\u3068\u7d44\u307f\u5408\u308f\u305b\u3066UBound\u306e\u547c\u3073\u51fa\u3057\u3092\u8a66\u3059\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u3067\u3059\uff08IsArray\u95a2\u6570\u306f\u5909\u6570\u304c\u914d\u5217\u578b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308b\u306e\u307f\u3067\u3001ReDim\u6e08\u307f\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u306b\u306f\u4f7f\u3048\u306a\u3044\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">VBA\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u6b63\u76f4\u5206\u304b\u308a\u306b\u304f\u3044\u3082\u306e\u304c\u591a\u3044\u3067\u3059\u3002\u300c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u6709\u52b9\u7bc4\u56f2\u306b\u3042\u308a\u307e\u305b\u3093\u300d\u3068\u51fa\u305f\u3089\u3001\u307e\u305a\u300c\u914d\u5217\u306e\u30b5\u30a4\u30ba\u3068\u3001\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u756a\u53f7\u304c\u30ba\u30ec\u3066\u3044\u306a\u3044\u304b\u300d\u3092\u7591\u3046\u30af\u30bb\u3092\u3064\u3051\u3066\u304a\u304f\u3068\u3001\u539f\u56e0\u7a76\u660e\u304c\u901f\u304f\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n<h3 class=\"wp-block-heading\">7-2. \u5b9f\u8df5\u4f8b\uff1a\u6761\u4ef6\u62bd\u51fa\u3092\u307e\u3068\u3081\u3066\u95a2\u6570\u5316\u3059\u308b\u30d1\u30bf\u30fc\u30f3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6761\u4ef6\u306b\u5408\u3046\u30c7\u30fc\u30bf\u3060\u3051\u3092\u62bd\u51fa\u3059\u308b\u51e6\u7406\u306f\u3001\u696d\u52d9\u30de\u30af\u30ed\u3067\u6700\u3082\u983b\u51fa\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u306e\u4e00\u3064\u3067\u3059\u3002\u52d5\u7684\u914d\u5217\u30fbUBound\u30fbReDim Preserve\u306e3\u70b9\u30bb\u30c3\u30c8\u3092\u3001\u518d\u5229\u7528\u3067\u304d\u308b\u95a2\u6570\u306e\u5f62\u3067\u307e\u3068\u3081\u3066\u304a\u304f\u3068\u3001\u8907\u6570\u306e\u30de\u30af\u30ed\u3067\u4f7f\u3044\u56de\u305b\u3066\u4fdd\u5b88\u6027\u3082\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:14px;line-height:1.7;margin:16px 0;\"><code>Function FilterOverAmount(dataRange As Range, threshold As Long) As Variant()\n    Dim result() As Variant\n    ReDim result(dataRange.Rows.Count - 1)  ' \u4f59\u88d5\u3092\u6301\u3063\u3066\u6700\u5927\u4ef6\u6570\u3076\u3093\u78ba\u4fdd\n\n    Dim i As Long, cnt As Long\n    cnt = 0\n    For i = 1 To dataRange.Rows.Count\n        If dataRange.Cells(i, 1).Value &gt;= threshold Then\n            result(cnt) = dataRange.Cells(i, 1).Value\n            cnt = cnt + 1\n        End If\n    Next i\n\n    If cnt = 0 Then\n        ReDim result(0 To -1)  ' \u8a72\u5f53\u306a\u3057\u306e\u5834\u5408\u306f\u8981\u7d20\u65700\u306e\u7a7a\u914d\u5217\u3092\u8fd4\u3059\uff08UBound\u3092LBound\u3088\u308a\u5c0f\u3055\u304f\u3059\u308b\uff09\n    Else\n        ReDim Preserve result(cnt - 1)  ' \u5b9f\u969b\u306e\u4ef6\u6570\u306b\u5207\u308a\u8a70\u3081\u3066\u8fd4\u3059\n    End If\n    FilterOverAmount = result\nEnd Function<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u95a2\u6570\u306f\u300c\u7bc4\u56f2\u300d\u3068\u300c\u3057\u304d\u3044\u5024\u300d\u3092\u6e21\u3059\u3060\u3051\u3067\u3001\u6761\u4ef6\u306b\u5408\u3046\u30c7\u30fc\u30bf\u3060\u3051\u3092\u307e\u3068\u3081\u305f\u914d\u5217\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u547c\u3073\u51fa\u3057\u5074\u306e\u30b3\u30fc\u30c9\u306f\u6761\u4ef6\u5224\u5b9a\u306e\u8a73\u7d30\u3092\u610f\u8b58\u305b\u305a\u3001<strong>\u300c\u30d5\u30a3\u30eb\u30bf\u5f8c\u306e\u914d\u5217\u3092\u53d7\u3051\u53d6\u3063\u3066\u4f7f\u3046\u3060\u3051\u300d<\/strong>\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u95a2\u6570\u5316\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u300c\u30c6\u30b9\u30c8\u306e\u3057\u3084\u3059\u3055\u300d\u306b\u3082\u3042\u308b<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u6761\u4ef6\u62bd\u51fa\u306e\u51e6\u7406\u3092\u72ec\u7acb\u3057\u305f\u95a2\u6570\u306b\u3057\u3066\u304a\u304f\u3068\u3001\u5225\u306e\u30de\u30af\u30ed\u3084\u30c6\u30b9\u30c8\u7528\u306e\u30b7\u30fc\u30c8\u304b\u3089\u3082\u540c\u3058\u30ed\u30b8\u30c3\u30af\u3092\u547c\u3073\u51fa\u3057\u3066\u691c\u8a3c\u3067\u304d\u307e\u3059\u30021\u3064\u306e\u5de8\u5927\u306aSub\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u51e6\u7406\u3092\u3059\u3079\u3066\u8a70\u3081\u8fbc\u3080\u3088\u308a\u3001\u6a5f\u80fd\u3054\u3068\u306b\u5c0f\u3055\u306a\u95a2\u6570\u3078\u5206\u5272\u3057\u3066\u304a\u304f\u65b9\u304c\u3001\u5f8c\u304b\u3089\u306e\u30c7\u30d0\u30c3\u30b0\u3084\u6539\u4fee\u304c\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-08\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">08<\/span>\n  <span class=\"section-label\" style=\"display:block;\">COMMON MISTAKES<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u5b9f\u52d9\u3067\u3088\u304f\u3042\u308b\u9593\u9055\u3044\u30d1\u30bf\u30fc\u30f3<\/span>\n  <span class=\"section-desc\">\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u3092\u300c\u4e8b\u6545\u306e\u30d1\u30bf\u30fc\u30f3\u96c6\u300d\u3068\u3057\u3066\u7dcf\u6574\u7406<\/span>\n<\/h2>\n\n\n\n<table>\n<thead><tr><th>\u9593\u9055\u3044\u30d1\u30bf\u30fc\u30f3<\/th><th>\u75c7\u72b6<\/th><th>\u5bfe\u7b56<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u8981\u7d20\u6570\u3092\u6c7a\u3081\u6253\u3061\u3057\u305fFor\u30eb\u30fc\u30d7\u3092\u66f8\u304f<\/td><td>\u30c7\u30fc\u30bf\u4ef6\u6570\u304c\u5909\u308f\u308b\u3068\u52d5\u304b\u306a\u304f\u306a\u308b<\/td><td>UBound(arr)\u3067\u30eb\u30fc\u30d7\u306e\u7d42\u7aef\u3092\u52d5\u7684\u306b\u53d6\u5f97\u3059\u308b<\/td><\/tr>\n<tr><td>\u30eb\u30fc\u30d7\u5185\u3067ReDim Preserve\u3092\u9023\u767a\u3059\u308b<\/td><td>\u4ef6\u6570\u304c\u5897\u3048\u308b\u307b\u3069\u51e6\u7406\u304c\u6025\u6fc0\u306b\u9045\u304f\u306a\u308b<\/td><td>\u4f59\u88d5\u3092\u6301\u3063\u3066ReDim\u3057\u3001\u6700\u5f8c\u306b1\u56de\u3060\u3051Preserve\u3059\u308b<\/td><\/tr>\n<tr><td>ReDim\u3068ReDim Preserve\u3092\u6df7\u540c\u3059\u308b<\/td><td>\u65e2\u5b58\u30c7\u30fc\u30bf\u304c\u610f\u56f3\u305b\u305a\u6d88\u3048\u3066\u3057\u307e\u3046<\/td><td>\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u3044\u5834\u9762\u3067\u306f\u5fc5\u305aPreserve\u3092\u4ed8\u3051\u308b<\/td><\/tr>\n<tr><td>\u591a\u6b21\u5143\u914d\u5217\u306e1\u6b21\u5143\u76ee\u3092Preserve\u3067\u5909\u66f4\u3057\u3088\u3046\u3068\u3059\u308b<\/td><td>\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3001\u307e\u305f\u306f\u610f\u56f3\u901a\u308a\u306b\u52d5\u304b\u306a\u3044<\/td><td>\u6700\u5f8c\u306e\u6b21\u5143\u3057\u304bPreserve\u3067\u304d\u306a\u3044\u4ed5\u69d8\u3092\u7406\u89e3\u3057\u305f\u4e0a\u3067\u8a2d\u8a08\u3059\u308b<\/td><\/tr>\n<tr><td>\u30bb\u30eb\u30921\u4ef6\u305a\u3064\u30eb\u30fc\u30d7\u3067\u8aad\u307f\u66f8\u304d\u3059\u308b<\/td><td>\u6570\u5343\u884c\u898f\u6a21\u3067\u51e6\u7406\u304c\u975e\u5e38\u306b\u9045\u304f\u306a\u308b<\/td><td>Range().Value\u3067\u914d\u5217\u306b\u4e00\u62ec\u4ee3\u5165\u3057\u3066\u304b\u3089\u51e6\u7406\u3059\u308b<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">8-1. \u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3067\u78ba\u8a8d\u3059\u3079\u304d\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8<\/h3>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30eb\u30fc\u30d7\u306e\u7d42\u7aef\u304c\u6c7a\u3081\u6253\u3061\u306e\u6570\u5024\u3067\u306f\u306a\u304f\u3001UBound\u3067\u52d5\u7684\u306b\u53d6\u5f97\u3055\u308c\u3066\u3044\u308b\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>ReDim Preserve\u304c\u30eb\u30fc\u30d7\u306e\u5916\uff08\u6700\u5f8c\u306b1\u56de\u3060\u3051\uff09\u3067\u547c\u3070\u308c\u3066\u3044\u308b\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30bb\u30eb\u7bc4\u56f2\u306e\u8aad\u307f\u66f8\u304d\u304c\u30011\u4ef6\u305a\u3064\u306e\u30eb\u30fc\u30d7\u3067\u306f\u306a\u304f\u4e00\u62ec\u4ee3\u5165\u306b\u306a\u3063\u3066\u3044\u308b\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u914d\u5217\u304c\u672a\u521d\u671f\u5316\u306e\u72b6\u614b\u3067UBound\u3092\u547c\u3093\u3067\u3044\u306a\u3044\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u591a\u6b21\u5143\u914d\u5217\u306ePreserve\u5236\u7d04\uff08\u6700\u5f8c\u306e\u6b21\u5143\u306e\u307f\uff09\u3092\u8e0f\u307e\u3048\u305f\u8a2d\u8a08\u306b\u306a\u3063\u3066\u3044\u308b\u304b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3046\u3057\u305f\u7d30\u304b\u3044\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u4ef6\u6570\u304c\u5c11\u306a\u3044\u3046\u3061\u306f\u554f\u984c\u3068\u3057\u3066\u8868\u9762\u5316\u3057\u307e\u305b\u3093\u3002<strong>\u4ef6\u6570\u304c\u5897\u3048\u305f\u3068\u304d\u306b\u521d\u3081\u3066\u51e6\u7406\u901f\u5ea6\u3084\u30a8\u30e9\u30fc\u3068\u3057\u3066\u9855\u5728\u5316\u3059\u308b<\/strong>\u305f\u3081\u3001\u30ec\u30d3\u30e5\u30fc\u6bb5\u968e\u3067\u4ed5\u7d44\u307f\u3068\u3057\u3066\u62bc\u3055\u3048\u3066\u304a\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">VBA\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u554f\u984c\u306f\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u5c11\u306a\u3044\u3046\u3061\u306f\u6c17\u3065\u3051\u307e\u305b\u3093\u3002\u672c\u756a\u30c7\u30fc\u30bf\u306b\u8fd1\u3044\u4ef6\u6570\u3067\u30c6\u30b9\u30c8\u3059\u308b\u7fd2\u6163\u304c\u306a\u3044\u3068\u3001\u601d\u308f\u306c\u3068\u3053\u308d\u3067\u51e6\u7406\u304c\u56fa\u307e\u308b\u30de\u30af\u30ed\u3092\u7d0d\u54c1\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-dynamic-array&#038;blog_slug=vba-dynamic-array\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-dynamic-array&#038;utm_content=h2-banner-kanri\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u9b3c\u7ba1\u7406 \u516c\u5f0f\u30b5\u30a4\u30c8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_blog_1to1.jpg\" alt=\"Claude Code\u3092\u7d4c\u55b6\u306b\u6d3b\u304b\u3057\u305f\u3044\u65b9\u3078 \u2014 AI\u9b3c\u7ba1\u7406\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-09\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">09<\/span>\n  <span class=\"section-label\" style=\"display:block;\">AI CODING<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u72ec\u81ea\u3011VBA\u306e\u300c\u5730\u9053\u306a\u51e6\u7406\u300d\u3092AI\u306b\u4efb\u305b\u308b<\/span>\n  <span class=\"section-desc\">\u914d\u5217\u64cd\u4f5c\u30fb\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u3088\u3046\u306a\u5b9a\u578b\u4f5c\u696d\u306b\u3053\u305dAI\u304c\u52b9\u304f<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u7d39\u4ecb\u3057\u3066\u304d\u305f\u52d5\u7684\u914d\u5217\u306e\u5ba3\u8a00\u30fbReDim Preserve\u306e\u4f7f\u3044\u5206\u3051\u30fbUBound\u3067\u306e\u52d5\u7684\u306a\u30eb\u30fc\u30d7\u51e6\u7406\u306f\u3001<strong>\u300c\u6b63\u3057\u304f\u66f8\u3051\u3070\u52d5\u304f\u304c\u3001\u66f8\u304d\u9593\u9055\u3048\u308b\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u4e0d\u5177\u5408\u306b\u306a\u308b\u300d<\/strong>\u5178\u578b\u7684\u306a\u9818\u57df\u3067\u3059\u3002\u3053\u3046\u3057\u305f<strong>\u5b9a\u578b\u7684\u3060\u304c\u9593\u9055\u3048\u3084\u3059\u3044\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u4f5c\u696d<\/strong>\u3053\u305d\u3001Claude Code\u306e\u3088\u3046\u306aAI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u529b\u3092\u767a\u63ee\u3057\u3084\u3059\u3044\u9818\u57df\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>Claude Code<\/strong>\uff1aAnthropic\u304c\u63d0\u4f9b\u3059\u308bAI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3002\u300c\u3053\u306e\u30b7\u30fc\u30c8\u306e\u6700\u7d42\u884c\u307e\u3067\u306e\u30c7\u30fc\u30bf\u3092\u914d\u5217\u306b\u8aad\u307f\u8fbc\u3093\u3067\u3001\u6761\u4ef6\u306b\u5408\u3046\u3082\u306e\u3060\u3051\u65b0\u3057\u3044\u914d\u5217\u306b\u307e\u3068\u3081\u3066\u300d\u3068\u3044\u3063\u305f\u81ea\u7136\u306a\u8a00\u8449\u306e\u6307\u793a\u3060\u3051\u3067\u3001ReDim\u30fbReDim Preserve\u30fbUBound\u3092\u9069\u5207\u306b\u4f7f\u3044\u5206\u3051\u305fVBA\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\uff08\u682a\u5f0f\u4f1a\u793eGENAI\uff09\u3067\u306f\u3001\u7d4c\u7406\u30fb\u55b6\u696d\u306e\u30c7\u30fc\u30bf\u96c6\u8a08\u51e6\u7406\u306b\u3082Claude Code\u3092\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u300c\u3053\u306e\u58f2\u4e0a\u30c7\u30fc\u30bf\u304b\u3089100\u4e07\u5186\u4ee5\u4e0a\u306e\u884c\u3060\u3051\u62bd\u51fa\u3057\u3066\u3001\u4ef6\u6570\u3092\u610f\u8b58\u305b\u305a\u306b\u65b0\u3057\u3044\u30b7\u30fc\u30c8\u306b\u307e\u3068\u3081\u3066\u300d\u3068\u3044\u3063\u305f\u611f\u899a\u7684\u306a\u6307\u793a\u3067\u3082\u3001\u52d5\u7684\u914d\u5217\u3084Preserve\u306e\u6b63\u3057\u3044\u4f7f\u3044\u65b9\u3092\u8e0f\u307e\u3048\u305f\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u304f\u308c\u308b\u305f\u3081\u3001VBA\u306e\u7d30\u304b\u3044\u6587\u6cd5\u3092\u90fd\u5ea6\u8abf\u3079\u308b\u624b\u9593\u304c\u5927\u304d\u304f\u6e1b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9-1. \u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u304cVBA\u696d\u52d9\u306b\u95a2\u308f\u308b\u610f\u5473<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300cVBA\u306a\u3093\u3066\u81ea\u5206\u306b\u306f\u66f8\u3051\u306a\u3044\u300d\u3068\u3044\u3046\u7d4c\u55b6\u8005\u30fb\u4e8b\u52d9\u62c5\u5f53\u306e\u65b9\u3082\u591a\u3044\u306f\u305a\u3067\u3059\u3002\u3057\u304b\u3057\u3001<strong>Excel\u3067\u306e\u96c6\u8a08\u30fb\u30c7\u30fc\u30bf\u6574\u5f62\u696d\u52d9<\/strong>\u306f\u3001\u591a\u304f\u306e\u4f1a\u793e\u3067\u4eca\u3082\u624b\u4f5c\u696d\u3084\u30b3\u30d4\u30da\u3067\u884c\u308f\u308c\u3066\u3044\u308b\u975e\u52b9\u7387\u306e\u6e29\u5e8a\u3067\u3082\u3042\u308a\u307e\u3059\u3002\u300c\u3053\u306e\u8868\u304b\u3089\u3053\u306e\u6761\u4ef6\u306e\u30c7\u30fc\u30bf\u3060\u3051\u629c\u304d\u51fa\u3057\u3066\u300d\u300c\u4ef6\u6570\u304c\u5909\u308f\u3063\u3066\u3082\u52d5\u304f\u3088\u3046\u306b\u3057\u3066\u300d\u3068\u3044\u3063\u305f\u8981\u671b\u3092\u3001VBA\u306e\u69cb\u6587\u3092\u77e5\u3089\u306a\u3044\u307e\u307eClaude Code\u306b\u76f4\u63a5\u4f1d\u3048\u3066\u5b9f\u88c5\u3055\u305b\u3089\u308c\u308b\u306e\u306f\u3001\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u5927\u304d\u306a\u4fa1\u5024\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u300c\u3053\u306e\u30c7\u30fc\u30bf\u304b\u3089\u6761\u4ef6\u306b\u5408\u3046\u3082\u306e\u3060\u3051\u3001\u4ef6\u6570\u3092\u6c17\u306b\u305b\u305a\u62bd\u51fa\u3057\u3066\u300d\u3068\u81ea\u7136\u306a\u8a00\u8449\u3067\u4f9d\u983c\u3067\u304d\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>ReDim\u30fbPreserve\u30fbUBound\u3068\u3044\u3063\u305f\u69cb\u6587\u3092\u899a\u3048\u3066\u3044\u306a\u304f\u3066\u3082\u3001\u610f\u56f3\u3055\u3048\u4f1d\u308f\u308c\u3070\u5b9f\u88c5\u3055\u308c\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u751f\u6210\u3055\u308c\u305f\u30de\u30af\u30ed\u306e\u51e6\u7406\u901f\u5ea6\u304c\u9045\u3044\u5834\u5408\u3001\u300c\u3082\u3063\u3068\u901f\u304f\u3057\u3066\u300d\u3068\u4f1d\u3048\u308b\u3060\u3051\u3067\u6700\u9069\u5316\u3092\u4f9d\u983c\u3067\u304d\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u65e2\u5b58\u306e\u91cd\u3044\u30de\u30af\u30ed\u306b\u5bfe\u3057\u3066\u300c\u306a\u305c\u9045\u3044\u306e\u304b\u8aac\u660e\u3057\u3066\u300d\u3068\u3044\u3046\u539f\u56e0\u8abf\u67fb\u306e\u4f9d\u983c\u3082\u53ef\u80fd<\/span><\/div>\n\n<\/div>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>\u300c\u3053\u306e\u30c7\u30fc\u30bf\u3092<br>\u3053\u3046\u51e6\u7406\u3057\u305f\u3044\u300d<br>\u3068\u4f1d\u3048\u308b<\/strong><br><span style=\"font-size:12px;\">\u611f\u899a\u7684\u306a\u8a00\u8449\u3067OK<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Claude Code\u304c<br>VBA\u30b3\u30fc\u30c9\u3092\u751f\u6210<\/strong><br><span style=\"font-size:12px;\">\u52d5\u7684\u914d\u5217\u3092<br>\u9069\u5207\u306b\u8a2d\u8a08<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Excel\u3067<br>\u52d5\u4f5c\u78ba\u8a8d<\/strong><br><span style=\"font-size:12px;\">\u4ef6\u6570\u3092\u5909\u3048\u3066<br>\u30c6\u30b9\u30c8<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u5fae\u8abf\u6574\u3092<br>\u7e70\u308a\u8fd4\u3057\u3066\u5b8c\u6210<\/strong><br><span style=\"font-size:12px;\">\u8a66\u884c\u932f\u8aa4\u306e<br>\u6642\u9593\u3092\u5927\u5e45\u77ed\u7e2e<\/span><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3061\u308d\u3093\u3001\u696d\u52d9\u30eb\u30fc\u30eb\u306e\u6700\u7d42\u78ba\u8a8d\u3084\u3001\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u6271\u3044\u306f\u4eba\u9593\u304c\u5224\u65ad\u3059\u3079\u304d\u9818\u57df\u3067\u3059\u3002Claude Code\u306f\u3042\u304f\u307e\u3067<strong>\u300c\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u8a66\u884c\u932f\u8aa4\u3092\u9ad8\u901f\u5316\u3059\u308b\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u300d<\/strong>\u3068\u3044\u3046\u4f4d\u7f6e\u3065\u3051\u3067\u3042\u308a\u3001\u6700\u7d42\u7684\u306a\u696d\u52d9\u5224\u65ad\u3092\u4ee3\u66ff\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5f0a\u793e\u3067\u306fVBA\u30fb\u30c7\u30fc\u30bf\u51e6\u7406\u4ee5\u5916\u306b\u3082\u55b6\u696d\u30fb\u5e83\u544a\u30fb\u7d4c\u7406\u30fb\u79d8\u66f8\u696d\u52d9\u307e\u3067Claude Code\u3092\u7d44\u307f\u8fbc\u3093\u3067\u304a\u308a\u3001\u6708\u984d\u7d0430,000\u5186\uff08Max 20x\u30d7\u30e9\u30f3\uff09\u306e\u6295\u8cc7\u3067\u3001\u3053\u3046\u3057\u305f\u5b9a\u578b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u4f5c\u696d\u307e\u3067\u542b\u3081\u3066\u696d\u52d9\u3092\u5206\u62c5\u3067\u304d\u3066\u3044\u308b\u808c\u611f\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u304b\u3064\u3066\u306f\u300c\u52d5\u7684\u914d\u5217\u306ePreserve\u3092\u3069\u3053\u306b\u7f6e\u304f\u304b\u300d\u30671\u6642\u9593\u8fd1\u304f\u60a9\u3080\u3053\u3068\u3082\u3042\u308a\u307e\u3057\u305f\u3002\u4eca\u306fClaude Code\u306b\u305f\u305f\u304d\u53f0\u3092\u4f5c\u3089\u305b\u3066\u3001\u52d5\u4f5c\u78ba\u8a8d\u3060\u3051\u4eba\u9593\u304c\u3084\u308b\u3068\u3044\u3046\u5206\u62c5\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u96c6\u8a08\u30de\u30af\u30ed\u3092\u4f5c\u308b\u6642\u9593\u304c\u5927\u5e45\u306b\u77ed\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u307e\u305a\u306f\u81ea\u793e\u306e\u96c6\u8a08\u30de\u30af\u30ed1\u672c\u3060\u3051\u3001Claude Code\u306b\u300c\u3082\u3063\u3068\u901f\u304f\u3001\u4ef6\u6570\u5909\u52d5\u306b\u5f37\u304f\u3057\u3066\u300d\u3068\u983c\u3093\u3067\u307f\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002VBA\u306e\u69cb\u6587\u3092\u77e5\u3089\u306a\u304f\u3066\u3082\u3069\u3053\u307e\u3067\u5bfe\u5fdc\u3067\u304d\u308b\u304b\u3001\u4f53\u611f\u3057\u3066\u307f\u308b\u306e\u304c\u4e00\u756a\u65e9\u3044\u7406\u89e3\u306e\u4ed5\u65b9\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">VBA\u30fbExcel\u696d\u52d9\u306e\u52b9\u7387\u5316\u3082\u3001Claude Code\u306e\u5168\u793e\u6d3b\u7528\u3082\u3001AI\u9b3c\u7ba1\u7406\u304c\u4f34\u8d70\u3057\u307e\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300cExcel\u306e\u96c6\u8a08\u4f5c\u696d\u3092\u65e9\u304f\u7d42\u308f\u3089\u305b\u305f\u3044\u300d\u300c\u958b\u767a\u4ee5\u5916\u306e\u696d\u52d9\u306b\u3082AI\u3092\u6d3b\u304b\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u7d4c\u55b6\u8005\u30fb\u4e8b\u52d9\u62c5\u5f53\u306e\u65b9\u306b\u5411\u3051\u3066\u3001Claude Code\u306e\u5c0e\u5165\u8a2d\u8a08\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u307e\u305a\u306f\u7121\u6599\u76f8\u8ac7\u3067\u3001\u8cb4\u793e\u306eExcel\u696d\u52d9\u30fb\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u3069\u3053\u306bAI\u6d3b\u7528\u306e\u4f59\u5730\u304c\u3042\u308b\u304b\u3001\u4e00\u7dd2\u306b\u6574\u7406\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n\n\n\n<div style=\"background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);border-radius:16px;padding:36px 32px;margin:48px 0 16px;color:#fff;\">\n  <p style=\"font-size:13px;font-weight:700;color:#dc2626;letter-spacing:2px;margin:0 0 12px;\">NEXT STEP<\/p>\n  <p style=\"font-size:22px;font-weight:800;line-height:1.5;margin:0 0 20px;\">\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u3092\u3001\u3042\u306a\u305f\u306e\u30d3\u30b8\u30cd\u30b9\u3067<br>\u5b9f\u8df5\u3057\u3066\u307f\u307e\u305b\u3093\u304b\uff1f<\/p>\n  <div style=\"background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:24px;max-width:560px;margin:0 auto;\">\n    <p style=\"font-size:13px;color:#dc2626;font-weight:700;margin:0 0 8px;\">AI\u6d3b\u7528\u3092\u81ea\u793e\u3067\u56de\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u65b9\u3078<\/p>\n    <p style=\"font-size:20px;font-weight:800;margin:0 0 12px;\">AI\u9b3c\u7ba1\u7406<\/p>\n    <p style=\"font-size:14px;color:rgba(255,255,255,0.75);margin:0 0 20px;line-height:1.7;\">Claude Code\u30fbCowork\u5c0e\u5165\u652f\u63f4\u304b\u3089\u696d\u52d9\u8a2d\u8a08\u30fb\u793e\u5185\u6d78\u900f\u307e\u3067\u5b9f\u8df5\u30d9\u30fc\u30b9\u3067\u4f34\u8d70\u3002\u300c\u81ea\u793e\u3067\u56de\u305b\u308b\u7d44\u7e54\u300d\u309290\u65e5\u3067\u4f5c\u308b\u7d4c\u55b6\u8005\u5411\u3051\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3002<\/p>\n    <div style=\"text-align:center;\">\n      <a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&utm_medium=article&utm_campaign=vba-dynamic-array&utm_content=next-step-cta\" target=\"_blank\" rel=\"noopener\" style=\"display:inline-block;background:#dc2626;color:#fff;font-weight:700;font-size:15px;padding:14px 32px;border-radius:30px;text-decoration:none;\">AI\u9b3c\u7ba1\u7406\u3092\u8a73\u3057\u304f\u898b\u308b \u2192<\/a>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u9759\u7684\u914d\u5217\u3068\u52d5\u7684\u914d\u5217\u306f\u4f55\u304c\u9055\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u9759\u7684\u914d\u5217\u306f\u5ba3\u8a00\u6642\u306b\u8981\u7d20\u6570\u304c\u56fa\u5b9a\u3055\u308c\u308b\u914d\u5217\u3001\u52d5\u7684\u914d\u5217\u306f\u5ba3\u8a00\u6642\u306b\u30ab\u30c3\u30b3\u3092\u7a7a\u306b\u3057\u3066\u304a\u304d\u3001\u5b9f\u884c\u6642\u306bReDim\u3067\u8981\u7d20\u6570\u3092\u6c7a\u3081\u308b\u914d\u5217\u3067\u3059\u3002\u4ef6\u6570\u304c\u5b9f\u884c\u3057\u3066\u307f\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u696d\u52d9\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5834\u5408\u306f\u3001\u52d5\u7684\u914d\u5217\u3092\u4f7f\u3046\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. ReDim\u3092\u4f7f\u3046\u3068\u3001\u914d\u5217\u306e\u4e2d\u306e\u30c7\u30fc\u30bf\u306f\u6d88\u3048\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u901a\u5e38\u306eReDim\u306f\u914d\u5217\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u306f\u6d88\u3048\u307e\u3059\u3002\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u8981\u7d20\u6570\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001ReDim Preserve\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. ReDim Preserve\u3092\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u7981\u6b62\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30eb\u30fc\u30d7\u5185\u3067\u6bce\u56de\u547c\u3073\u51fa\u3059\u3068\u3001\u4ef6\u6570\u304c\u5897\u3048\u308b\u307b\u3069\u51e6\u7406\u304c\u6025\u6fc0\u306b\u9045\u304f\u306a\u308a\u307e\u3059\u3002\u3042\u3089\u304b\u3058\u3081\u4f59\u88d5\u3092\u6301\u3063\u305f\u30b5\u30a4\u30ba\u3067ReDim\u3057\u3001\u30eb\u30fc\u30d7\u306e\u5916\u3067\u6700\u5f8c\u306b1\u56de\u3060\u3051Preserve\u3059\u308b\u8a2d\u8a08\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. UBound\u95a2\u6570\u306f\u4f55\u3092\u8fd4\u3059\u95a2\u6570\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u914d\u5217\u306e\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u8fd4\u3057\u307e\u3059\u3002\u8981\u7d20\u6570\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u3044\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3001\u8981\u7d20\u6570\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306fUBound(arr) - LBound(arr) + 1\u3067\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u591a\u6b21\u5143\u306e\u52d5\u7684\u914d\u5217\u3067ReDim Preserve\u3092\u4f7f\u3046\u3068\u304d\u306e\u6ce8\u610f\u70b9\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. 2\u6b21\u5143\u4ee5\u4e0a\u306e\u52d5\u7684\u914d\u5217\u3067\u306f\u3001ReDim Preserve\u3067\u5909\u66f4\u3067\u304d\u308b\u306e\u306f\u300c\u6700\u5f8c\u306e\u6b21\u5143\u300d\u306e\u307f\u3068\u3044\u3046\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u30021\u6b21\u5143\u76ee\uff08\u884c\u6570\uff09\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306fPreserve\u304c\u4f7f\u3048\u306a\u3044\u305f\u3081\u3001\u5225\u306e\u914d\u5217\u306b\u9000\u907f\u3057\u3066\u304b\u3089\u518d\u69cb\u7bc9\u3059\u308b\u306a\u3069\u306e\u5bfe\u5fdc\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. VBA\u3067\u306e\u96c6\u8a08\u30fb\u30c7\u30fc\u30bf\u51e6\u7406\u3092AI\u30c4\u30fc\u30eb\u3067\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u53ef\u80fd\u3067\u3059\u3002Claude Code\u306e\u3088\u3046\u306aAI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u300c\u3053\u306e\u6761\u4ef6\u3067\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3066\u300d\u3068\u81ea\u7136\u306a\u8a00\u8449\u3067\u4f9d\u983c\u3059\u308b\u3068\u3001\u52d5\u7684\u914d\u5217\u3084ReDim Preserve\u3092\u9069\u5207\u306b\u4f7f\u3044\u5206\u3051\u305fVBA\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u304f\u308c\u307e\u3059\u3002VBA\u306e\u69cb\u6587\u3092\u7d30\u304b\u304f\u899a\u3048\u3066\u3044\u306a\u3044\u65b9\u3067\u3082\u6d3b\u7528\u3057\u3084\u3059\u3044\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u9759\u7684\u914d\u5217\u3068\u52d5\u7684\u914d\u5217\u306f\u4f55\u304c\u9055\u3044\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u9759\u7684\u914d\u5217\u306f\u5ba3\u8a00\u6642\u306b\u8981\u7d20\u6570\u304c\u56fa\u5b9a\u3055\u308c\u308b\u914d\u5217\u3001\u52d5\u7684\u914d\u5217\u306f\u5ba3\u8a00\u6642\u306b\u30ab\u30c3\u30b3\u3092\u7a7a\u306b\u3057\u3066\u304a\u304d\u3001\u5b9f\u884c\u6642\u306bReDim\u3067\u8981\u7d20\u6570\u3092\u6c7a\u3081\u308b\u914d\u5217\u3067\u3059\u3002\u4ef6\u6570\u304c\u5b9f\u884c\u3057\u3066\u307f\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u696d\u52d9\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5834\u5408\u306f\u3001\u52d5\u7684\u914d\u5217\u3092\u4f7f\u3046\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"ReDim\u3092\u4f7f\u3046\u3068\u3001\u914d\u5217\u306e\u4e2d\u306e\u30c7\u30fc\u30bf\u306f\u6d88\u3048\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u901a\u5e38\u306eReDim\u306f\u914d\u5217\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u306f\u6d88\u3048\u307e\u3059\u3002\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u8981\u7d20\u6570\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001ReDim Preserve\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"ReDim Preserve\u3092\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u7981\u6b62\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30eb\u30fc\u30d7\u5185\u3067\u6bce\u56de\u547c\u3073\u51fa\u3059\u3068\u3001\u4ef6\u6570\u304c\u5897\u3048\u308b\u307b\u3069\u51e6\u7406\u304c\u6025\u6fc0\u306b\u9045\u304f\u306a\u308a\u307e\u3059\u3002\u3042\u3089\u304b\u3058\u3081\u4f59\u88d5\u3092\u6301\u3063\u305f\u30b5\u30a4\u30ba\u3067ReDim\u3057\u3001\u30eb\u30fc\u30d7\u306e\u5916\u3067\u6700\u5f8c\u306b1\u56de\u3060\u3051Preserve\u3059\u308b\u8a2d\u8a08\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"UBound\u95a2\u6570\u306f\u4f55\u3092\u8fd4\u3059\u95a2\u6570\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u914d\u5217\u306e\u6700\u5927\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u8fd4\u3057\u307e\u3059\u3002\u8981\u7d20\u6570\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u3044\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3001\u8981\u7d20\u6570\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306fUBound(arr) - LBound(arr) + 1\u3067\u8a08\u7b97\u3057\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u591a\u6b21\u5143\u306e\u52d5\u7684\u914d\u5217\u3067ReDim Preserve\u3092\u4f7f\u3046\u3068\u304d\u306e\u6ce8\u610f\u70b9\u306f\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"2\u6b21\u5143\u4ee5\u4e0a\u306e\u52d5\u7684\u914d\u5217\u3067\u306f\u3001ReDim Preserve\u3067\u5909\u66f4\u3067\u304d\u308b\u306e\u306f\u300c\u6700\u5f8c\u306e\u6b21\u5143\u300d\u306e\u307f\u3068\u3044\u3046\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u30021\u6b21\u5143\u76ee\uff08\u884c\u6570\uff09\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306fPreserve\u304c\u4f7f\u3048\u306a\u3044\u305f\u3081\u3001\u5225\u306e\u914d\u5217\u306b\u9000\u907f\u3057\u3066\u304b\u3089\u518d\u69cb\u7bc9\u3059\u308b\u306a\u3069\u306e\u5bfe\u5fdc\u304c\u5fc5\u8981\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"VBA\u3067\u306e\u96c6\u8a08\u30fb\u30c7\u30fc\u30bf\u51e6\u7406\u3092AI\u30c4\u30fc\u30eb\u3067\u52b9\u7387\u5316\u3067\u304d\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u53ef\u80fd\u3067\u3059\u3002Claude Code\u306e\u3088\u3046\u306aAI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u300c\u3053\u306e\u6761\u4ef6\u3067\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3066\u300d\u3068\u81ea\u7136\u306a\u8a00\u8449\u3067\u4f9d\u983c\u3059\u308b\u3068\u3001\u52d5\u7684\u914d\u5217\u3084ReDim Preserve\u3092\u9069\u5207\u306b\u4f7f\u3044\u5206\u3051\u305fVBA\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u304f\u308c\u307e\u3059\u3002VBA\u306e\u69cb\u6587\u3092\u7d30\u304b\u304f\u899a\u3048\u3066\u3044\u306a\u3044\u65b9\u3067\u3082\u6d3b\u7528\u3057\u3084\u3059\u3044\u65b9\u6cd5\u3067\u3059\u3002\"\n      }\n    }\n  ]\n}\n<\/script>\n\n\n","protected":false},"excerpt":{"rendered":"<p>ExcelVBA\u306e\u52d5\u7684\u914d\u5217\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u9759\u7684\u914d\u5217\u3068\u306e\u9055\u3044\u3001ReDim\u30fbReDim Preserve\u306e\u66f8\u304d\u65b9\u3001UBound\/LBound\u3067\u8981\u7d20\u6570\u3092\u610f\u8b58\u305b\u305a\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3001Claude Code\u3092\u4f7f\u3063\u305fVBA\u696d\u52d9\u52b9\u7387\u5316\u307e\u3067\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":26714,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sitemap_hide":"","_veu_custom_css":"","vkexunit_cta_each_option":"","footnotes":"","rank_math_description":"ExcelVBA\u306e\u52d5\u7684\u914d\u5217\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u9759\u7684\u914d\u5217\u3068\u306e\u9055\u3044\u3001ReDim\u30fbReDim Preserve\u306e\u66f8\u304d\u65b9\u3001UBound\/LBound\u3067\u8981\u7d20\u6570\u3092\u610f\u8b58\u305b\u305a\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3001Claude Code\u3092\u4f7f\u3063\u305fVBA\u696d\u52d9\u52b9\u7387\u5316\u307e\u3067\u6574\u7406\u3057\u307e\u3059\u3002","rank_math_focus_keyword":"VBA \u52d5\u7684\u914d\u5217","rank_math_title":"\u30102026\u5e748\u6708\u6700\u65b0\u3011ExcelVBA\u306e\u52d5\u7684\u914d\u5217\u3068\u306f\uff1fReDim\u30fbPreserve\u306e\u4f7f\u3044\u65b9\u304b\u3089\u9759\u7684\u914d\u5217\u3068\u306e\u9055\u3044\u307e\u3067\u5b8c\u5168\u30ac\u30a4\u30c9","pending_rewrite_html":"","pending_rewrite_id":"","pending_rewrite_kw":"","pending_rewrite_at":"","pending_rewrite_source":"","pending_rewrite_brief":"","pending_rewrite_evidence":"","approved_rewrite_html":"","approved_rewrite_id":"","approved_rewrite_kw":"","approved_rewrite_at":"","approved_rewrite_by":"","approved_rewrite_brief":"","approved_rewrite_evidence":"","rewrite_tracker_baseline":"","rewrite_tracker_7day":"","rewrite_tracker_14day":"","rewrite_tracker_30day":"","rewrite_tracker_notified":""},"categories":[2],"tags":[],"class_list":["post-26715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-claude-tips"],"_links":{"self":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/26715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/comments?post=26715"}],"version-history":[{"count":5,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/26715\/revisions"}],"predecessor-version":[{"id":26720,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/26715\/revisions\/26720"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media\/26714"}],"wp:attachment":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media?parent=26715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/categories?post=26715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/tags?post=26715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}