{"id":18259,"date":"2026-07-18T20:41:12","date_gmt":"2026-07-18T11:41:12","guid":{"rendered":"https:\/\/genai-ai.co.jp\/ai-kanri\/?p=18259"},"modified":"2026-07-18T20:41:12","modified_gmt":"2026-07-18T11:41:12","slug":"cc-vba-with","status":"publish","type":"post","link":"https:\/\/genai-ai.co.jp\/ai-kanri\/blog\/cc-vba-with\/","title":{"rendered":"\u30102026\u5e747\u6708\u6700\u65b0\u3011VBA With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u5165\u308c\u5b50(\u30cd\u30b9\u30c8)\u30fbExcel\/Word\u5b9f\u8df5\u4f8b\u30fb\u30a8\u30e9\u30fc\u5bfe\u51e6\u307e\u3067"},"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\/07\/thumb-cc-vba-with.jpg\" alt=\"\u30102026\u5e747\u6708\u6700\u65b0\u3011VBA With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u5165\u308c\u5b50(\u30cd\u30b9\u30c8)\u30fbExcel\/Word\u5b9f\u8df5\u4f8b\u30fb\u30a8\u30e9\u30fc\u5bfe\u51e6\u307e\u3067\" 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>VBA With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f<\/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>With\u306a\u3057\u3068\u3042\u308a\u306e\u30b3\u30fc\u30c9\u6bd4\u8f03<\/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>With\u306e\u57fa\u672c\u69cb\u6587\uff08End With\u30fb\u30cd\u30b9\u30c8\u69cb\u9020\uff09<\/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>Excel\u3067\u306e\u5b9f\u8df5\u4f8b\uff08\u30bb\u30eb\u66f8\u5f0f\u30fb\u30d5\u30a9\u30f3\u30c8\u4e00\u62ec\u8a2d\u5b9a\uff09<\/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>Word\u3067\u306e\u5b9f\u8df5\u4f8b\uff08\u6bb5\u843d\u8a2d\u5b9a\u306e\u4e00\u62ec\u6307\u5b9a\uff09<\/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>\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u306e\u4f7f\u3044\u65b9\u3068\u6ce8\u610f\u70b9<\/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>WithEvents\u30ad\u30fc\u30ef\u30fc\u30c9\uff08\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u3078\u306e\u5fdc\u7528\uff09<\/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>\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u51e6\u6cd5<\/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>With + Loop \u306e\u7d44\u307f\u5408\u308f\u305b\uff08\u5927\u91cf\u51e6\u7406\u9ad8\u901f\u5316\uff09<\/a><\/li>\n    <li><a href=\"#sec-10\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">10<\/span>GENAI\u5b9f\u904b\u7528\u306eExcel\u81ea\u52d5\u5316\u4e8b\u4f8b<\/a><\/li>\n    <li><a href=\"#sec-11\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">11<\/span>Claude Code\u306bVBA With\u3092\u66f8\u304b\u305b\u308b\u65b9\u6cd5<\/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\">\u300cVBA\u306e\u30b3\u30fc\u30c9\u304c\u9577\u304f\u306a\u308a\u3059\u304e\u3066\u3001\u3069\u3053\u306b\u4f55\u3092\u66f8\u3044\u305f\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u2014\u2014\u305d\u3093\u306a\u60a9\u307f\u3092\u89e3\u6c7a\u3057\u3066\u304f\u308c\u308b\u306e\u304c<strong>With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u3067\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u8907\u6570\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u3001\u6bce\u56de\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u7e70\u308a\u8fd4\u3057\u66f8\u304f\u306e\u306f\u975e\u5e38\u306b\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Excel\u306e\u30bb\u30ebA1\u306b\u5bfe\u3057\u3066\u30d5\u30a9\u30f3\u30c8\u30fb\u30b5\u30a4\u30ba\u30fb\u8272\u30fb\u592a\u5b57\u30fb\u4e0b\u7dda\u3092\u3059\u3079\u3066\u6307\u5b9a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001<code>Range(\"A1\").Font.Name<\/code>\u30fb<code>Range(\"A1\").Font.Size<\/code>\u30fb<code>Range(\"A1\").Font.Bold<\/code>\u2026\u2026\u3068\u3001\u4f55\u884c\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u3048\u3070\u3001\u3053\u306e\u7e70\u308a\u8fd4\u3057\u3092\u307e\u3068\u3081\u3066\u7701\u7565\u3067\u304d\u307e\u3059\u3002<strong>\u8a18\u8ff0\u91cf\u304c\u7d0440\u301c60%\u524a\u6e1b<\/strong>\u3067\u304d\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u304c\u5287\u7684\u306b\u4e0a\u304c\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001With\u306e\u57fa\u672c\u69cb\u6587\u304b\u3089\u3001Excel\/Word\u5b9f\u8df5\u4f8b\u30fb\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u306e\u6b63\u3057\u3044\u4f7f\u3044\u65b9\u30fbWithEvents\u30ad\u30fc\u30ef\u30fc\u30c9\u30fb\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u5bfe\u51e6\u307e\u3067\u3001<strong>2026\u5e747\u6708\u6700\u65b0\u306e\u60c5\u5831<\/strong>\u3067\u5b8c\u5168\u89e3\u8aac\u3057\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\">VBA\u3067\u30de\u30af\u30ed\u3092\u66f8\u304d\u59cb\u3081\u305f\u4eba\u304c\u307e\u305a\u899a\u3048\u308b\u3079\u304d\u30c6\u30af\u30cb\u30c3\u30af\u306e\u3072\u3068\u3064\u304cWith\u3067\u3059\u3002\u30b3\u30fc\u30c9\u304c\u6574\u7406\u3055\u308c\u308b\u3068\u3001\u30d0\u30b0\u3082\u898b\u3064\u3051\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3057\u3001\u5f8c\u304b\u3089\u4fee\u6b63\u3059\u308b\u3068\u304d\u306e\u5de5\u6570\u3082\u5927\u5e45\u306b\u4e0b\u304c\u308a\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\">VBA\u521d\u5fc3\u8005\u306e\u3046\u3061\u306f\u300cWith\u306a\u3057\u3067\u3082\u52d5\u304f\u304b\u3089\u3044\u3044\u3084\u300d\u3068\u601d\u3044\u304c\u3061\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b100\u884c\u30fb200\u884c\u306e\u30de\u30af\u30ed\u3092\u66f8\u304f\u3088\u3046\u306b\u306a\u308b\u3068\u3001With\u306e\u6709\u7121\u3067\u30b3\u30fc\u30c9\u306e\u7ba1\u7406\u3057\u3084\u3059\u3055\u304c\u5168\u7136\u9055\u3063\u3066\u304d\u307e\u3059\u3002\u6700\u521d\u304b\u3089\u7fd2\u6163\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u6b21\u306e\u5185\u5bb9\u304c\u7406\u89e3\u3067\u304d\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>VBA With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4ed5\u7d44\u307f\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u7701\u7565\u306e\u539f\u7406<\/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>With\u306a\u3057\u30fb\u3042\u308a\u306e\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u6bd4\u8f03\u3067\u9055\u3044\u304c\u4e00\u76ee\u77ad\u7136<\/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>Excel\u30fbWord\u3067\u306e\u5b9f\u8df5\u7684\u306aWith\u6d3b\u7528\u30d1\u30bf\u30fc\u30f3<\/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>\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u306e\u6b63\u3057\u3044\u66f8\u304d\u65b9\u3068\u9593\u9055\u3044\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8<\/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>WithEvents\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e<\/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>\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u30a8\u30e9\u30fc\uff09\u306e\u539f\u56e0\u3068\u89e3\u6c7a\u7b56<\/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>With + Loop\u3067\u5927\u91cf\u30bb\u30eb\u3092\u9ad8\u901f\u51e6\u7406\u3059\u308b\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>Claude Code\u306bVBA\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u305b\u308b\u5b9f\u8df5\u7684\u30d7\u30ed\u30f3\u30d7\u30c8\u8853<\/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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">WHAT IS WITH<\/span>\n  <span class=\"section-title\" style=\"display:block;\">VBA With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f<\/span>\n  <span class=\"section-desc\">\u30b3\u30fc\u30c9\u7701\u7565\u306e\u4ed5\u7d44\u307f\u3068\u8a18\u8ff0\u91cf\u524a\u6e1b\u306e\u30e1\u30ea\u30c3\u30c8\u3092\u7406\u89e3\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306e<strong>With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u306f\u3001\u540c\u4e00\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u8907\u6570\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\u3084\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u3092\u307e\u3068\u3081\u3066\u66f8\u304f\u305f\u3081\u306e\u69cb\u6587\u3067\u3059\u3002With\u301cEnd With\u30d6\u30ed\u30c3\u30af\u306e\u5185\u5074\u3067\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u7701\u7565\u3057\u3066\u300c.\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u300d\u3084\u300c.\u30e1\u30bd\u30c3\u30c9\u540d\u300d\u3060\u3051\u3067\u8a18\u8ff0\u3067\u304d\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>With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\uff1aVBA\uff08Visual Basic for Applications\uff09\u306b\u304a\u3051\u308b\u69cb\u6587\u306e\u3072\u3068\u3064\u3002With \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d \u301c End With \u3067\u56f2\u307e\u308c\u305f\u30d6\u30ed\u30c3\u30af\u5185\u3067\u306f\u3001\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7e70\u308a\u8fd4\u3057\u53c2\u7167\u3059\u308b\u969b\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u7701\u7565\u3067\u304d\u307e\u3059\u3002Excel\u30de\u30af\u30ed\u30fbWord\u30de\u30af\u30ed\u306a\u3069Office\u30a2\u30d7\u30ea\u306eVBA\u3059\u3079\u3066\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u767b\u5834\u3057\u305f\u306e\u306f\u3001VBA\u306e\u524d\u8eab\u3067\u3042\u308bVisual Basic\u306e\u6642\u4ee3\u304b\u3089\u3002\u9577\u3044\u6b74\u53f2\u3092\u6301\u3064\u69cb\u6587\u3067\u3059\u304c\u3001\u73fe\u5728\u3082<strong>Excel VBA\u30fbWord VBA\u30fbAccess VBA<\/strong>\u306a\u3069\u3059\u3079\u3066\u306eOffice VBA\u74b0\u5883\u3067\u6a19\u6e96\u7684\u306b\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1-1. With\u304c\u89e3\u6c7a\u3059\u308b\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u306e\u7e70\u308a\u8fd4\u3057\u300d\u554f\u984c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u3067Excel\u306e\u30bb\u30eb\u66f8\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u5178\u578b\u7684\u306a\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002With\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub WithNashiNo():\n    Range(\"A1\").Font.Name = \"\u30e1\u30a4\u30ea\u30aa\"\n    Range(\"A1\").Font.Size = 14\n    Range(\"A1\").Font.Bold = True\n    Range(\"A1\").Font.Color = RGB(220, 38, 38)\n    Range(\"A1\").Font.Underline = xlUnderlineStyleSingle\n    Range(\"A1\").Interior.Color = RGB(255, 244, 244)\n    Range(\"A1\").HorizontalAlignment = xlCenter\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u3058\u30bb\u30eb\uff08<code>Range(\"A1\")<\/code>\uff09\u3068\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08<code>.Font<\/code>\uff09\u30927\u884c\u7e70\u308a\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002\u30b3\u30fc\u30c9\u304c\u5197\u9577\u306a\u3046\u3048\u3001\u5bfe\u8c61\u30bb\u30eb\u3092\u5909\u66f4\u3057\u305f\u3044\u3068\u304d\u306b7\u7b87\u6240\u3059\u3079\u3066\u3092\u66f8\u304d\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With\u3092\u4f7f\u3046\u3068\u3001\u3053\u308c\u304c\u6b21\u306e\u3088\u3046\u306b\u30b9\u30c3\u30ad\u30ea\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub WithAriNo():\n    With Range(\"A1\").Font\n        .Name = \"\u30e1\u30a4\u30ea\u30aa\"\n        .Size = 14\n        .Bold = True\n        .Color = RGB(220, 38, 38)\n        .Underline = xlUnderlineStyleSingle\n    End With\n    With Range(\"A1\")\n        .Interior.Color = RGB(255, 244, 244)\n        .HorizontalAlignment = xlCenter\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u306e\u7e70\u308a\u8fd4\u3057\u304c\u306a\u304f\u306a\u308a\u3001\u3072\u3068\u76ee\u3067\u300c\u3069\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u304b\u300d\u304c\u5206\u304b\u308b\u69cb\u9020\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1-2. With\u306e\u30e1\u30ea\u30c3\u30c83\u3064<\/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><strong>\u8a18\u8ff0\u91cf\u306e\u524a\u6e1b<\/strong>\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u3092\u7e70\u308a\u8fd4\u3055\u306a\u3044\u305f\u3081\u3001\u30b3\u30fc\u30c9\u884c\u6570\u304c\u7d0430\u301c60%\u6e1b\u308b\u3002\u66f8\u304f\u624b\u9593\u30fb\u8aad\u3080\u624b\u9593\u306e\u4e21\u65b9\u304c\u4e0b\u304c\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><strong>\u4fdd\u5b88\u6027\u306e\u5411\u4e0a<\/strong>\uff1a\u5bfe\u8c61\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u66f4\u3059\u308b\u3068\u304d\u306e\u4fee\u6b63\u7b87\u6240\u304c1\u7b87\u6240\uff08With\u306e\u884c\uff09\u3060\u3051\u306b\u306a\u308b\u3002\u30d0\u30b0\u6df7\u5165\u30ea\u30b9\u30af\u304c\u4e0b\u304c\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><strong>\u5b9f\u884c\u901f\u5ea6\u306e\u6539\u5584<\/strong>\uff1aVBA\u306e\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u3092\u89e3\u6c7a\u3059\u308b\u56de\u6570\u304c\u6e1b\u308b\u305f\u3081\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5927\u91cf\u306b\u8a2d\u5b9a\u3059\u308b\u5834\u9762\u3067\u306f\u308f\u305a\u304b\u306b\u9ad8\u901f\u5316\u304c\u671f\u5f85\u3067\u304d\u308b<\/span><\/div>\n\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>\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf<\/strong>\uff1a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b3\u30fc\u30c9\u3092\u4e0a\u304b\u30891\u884c\u305a\u3064\u8aad\u307f\u53d6\u3063\u3066\u5b9f\u884c\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3002VBA\u306f\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u65b9\u5f0f\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\uff08Range(\"A1\").Font \u306a\u3069\uff09\u3092\u8a55\u4fa1\u3059\u308b\u305f\u3073\u306b\u51e6\u7406\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308a\u307e\u3059\u3002With\u3092\u4f7f\u3046\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u306e\u8a55\u4fa1\u56de\u6570\u304c\u6e1b\u308b\u305f\u3081\u3001\u9ad8\u983b\u5ea6\u51e6\u7406\u3067\u308f\u305a\u304b\u306a\u304c\u3089\u901f\u5ea6\u5411\u4e0a\u304c\u5f97\u3089\u308c\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\">With\u306f\u300c\u66f8\u304f\u306e\u304c\u697d\u306b\u306a\u308b\u300d\u3060\u3051\u3067\u306a\u304f\u3001\u300c\u5f8c\u3067\u8aad\u3093\u3060\u3068\u304d\u306b\u30b3\u30fc\u30c9\u306e\u610f\u56f3\u304c\u4f1d\u308f\u308a\u3084\u3059\u3044\u300d\u3068\u3044\u3046\u52b9\u679c\u3082\u5927\u304d\u3044\u3067\u3059\u3002\u30c1\u30fc\u30e0\u3067\u958b\u767a\u3059\u308b\u3068\u304d\u3084\u3001\u6570\u30f6\u6708\u5f8c\u306b\u81ea\u5206\u306e\u30b3\u30fc\u30c9\u3092\u898b\u76f4\u3059\u3068\u304d\u306b\u3001\u3053\u306e\u5dee\u304c\u5b9f\u611f\u3067\u304d\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">BEFORE \/ AFTER<\/span>\n  <span class=\"section-title\" style=\"display:block;\">With\u306a\u3057\u3068\u3042\u308a\u306e\u30b3\u30fc\u30c9\u6bd4\u8f03<\/span>\n  <span class=\"section-desc\">\u540c\u3058\u51e6\u7406\u3067\u3069\u308c\u3060\u3051\u9055\u3046\u304b\u3001\u4e26\u3079\u3066\u898b\u3066\u307f\u3088\u3046<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u767e\u805e\u306f\u4e00\u898b\u306b\u3057\u304b\u305a\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u540c\u3058\u51e6\u7406\u3092With\u306a\u3057\u30fb\u3042\u308a\u3067\u4e26\u3079\u3066\u6bd4\u8f03\u3057\u307e\u3059\u3002With\u304c\u3069\u308c\u307b\u3069\u30b3\u30fc\u30c9\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u3059\u308b\u304b\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u4f53\u611f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2-1. \u30bb\u30eb\u66f8\u5f0f\u8a2d\u5b9a\uff1aWith\u306a\u3057 vs \u3042\u308a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Excel\u306e\u30bb\u30eb\u7bc4\u56f2\u306b\u3001\u80cc\u666f\u8272\u30fb\u30d5\u30a9\u30f3\u30c8\u30fb\u67a0\u7dda\u30fb\u914d\u7f6e\u3092\u307e\u3068\u3081\u3066\u8a2d\u5b9a\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">With\u306a\u3057\uff0827\u884c\uff09<\/h4>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub FormatWithout():\n    ' \u30bb\u30ebA1:C5\u306b\u66f8\u5f0f\u8a2d\u5b9a\uff08With\u306a\u3057\uff09\n    Range(\"A1:C5\").Interior.Color = RGB(255, 235, 235)\n    Range(\"A1:C5\").Font.Name = \"\u6e38\u30b4\u30b7\u30c3\u30af\"\n    Range(\"A1:C5\").Font.Size = 11\n    Range(\"A1:C5\").Font.Color = RGB(50, 50, 50)\n    Range(\"A1:C5\").Font.Bold = False\n    Range(\"A1:C5\").HorizontalAlignment = xlCenter\n    Range(\"A1:C5\").VerticalAlignment = xlCenter\n    Range(\"A1:C5\").WrapText = True\n    Range(\"A1:C5\").Borders(xlEdgeLeft).LineStyle = xlContinuous\n    Range(\"A1:C5\").Borders(xlEdgeLeft).Weight = xlThin\n    Range(\"A1:C5\").Borders(xlEdgeRight).LineStyle = xlContinuous\n    Range(\"A1:C5\").Borders(xlEdgeRight).Weight = xlThin\n    Range(\"A1:C5\").Borders(xlEdgeTop).LineStyle = xlContinuous\n    Range(\"A1:C5\").Borders(xlEdgeTop).Weight = xlThin\n    Range(\"A1:C5\").Borders(xlEdgeBottom).LineStyle = xlContinuous\n    Range(\"A1:C5\").Borders(xlEdgeBottom).Weight = xlThin\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">With\u3042\u308a\uff0817\u884c\uff09<\/h4>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub FormatWith():\n    ' \u30bb\u30ebA1:C5\u306b\u66f8\u5f0f\u8a2d\u5b9a\uff08With\u3042\u308a\uff09\n    With Range(\"A1:C5\")\n        .Interior.Color = RGB(255, 235, 235)\n        .HorizontalAlignment = xlCenter\n        .VerticalAlignment = xlCenter\n        .WrapText = True\n        With .Font\n            .Name = \"\u6e38\u30b4\u30b7\u30c3\u30af\"\n            .Size = 11\n            .Color = RGB(50, 50, 50)\n            .Bold = False\n        End With\n        With .Borders\n            .LineStyle = xlContinuous\n            .Weight = xlThin\n        End With\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">With\u3092\u4f7f\u3046\u3053\u3068\u3067<strong>17\u884c\u3068\u7d041\/3\u77ed\u304f<\/strong>\u306a\u308a\u3001\u300cA1:C5\u3068\u3044\u3046\u30bb\u30eb\u7bc4\u56f2\u306e\u8a2d\u5b9a\u3092\u307e\u3068\u3081\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u69cb\u9020\u304c\u3072\u3068\u76ee\u3067\u5206\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\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;\">\u30b3\u30fc\u30c9\u884c\u6570\u524a\u6e1b\u306e\u76ee\u5b89<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">With\u3092\u4f7f\u3046\u3068\u3001\u540c\u4e00\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u304c5\u56de\u4ee5\u4e0a\u3042\u308b\u5834\u5408\u306b\u7279\u306b\u52b9\u679c\u7684\u3067\u3059\u30023\u301c4\u56de\u7a0b\u5ea6\u306a\u3089\u898b\u305f\u76ee\u306e\u9055\u3044\u306f\u5c0f\u3055\u3044\u3067\u3059\u304c\u300110\u56de\u4ee5\u4e0a\u306b\u306a\u308b\u3068\u8a18\u8ff0\u91cf\u306f\u534a\u5206\u4ee5\u4e0b\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-2. \u30b0\u30e9\u30d5\u8a2d\u5b9a\uff1aWith\u306a\u3057 vs \u3042\u308a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Excel\u306e\u30b0\u30e9\u30d5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3082With\u306f\u975e\u5e38\u306b\u6709\u52b9\u3067\u3059\u3002\u30b0\u30e9\u30d5\u306e\u30bf\u30a4\u30c8\u30eb\u30fb\u8ef8\u30fb\u51e1\u4f8b\u306a\u3069\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u9762\u3067\u306f\u7279\u306b\u6069\u6075\u304c\u5927\u304d\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">With\u306a\u3057<\/h4>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub ChartFormatWithout():\n    Dim cht As Chart\n    Set cht = ActiveSheet.ChartObjects(1).Chart\n    cht.HasTitle = True\n    cht.ChartTitle.Text = \"\u6708\u5225\u58f2\u4e0a\u63a8\u79fb\"\n    cht.ChartTitle.Font.Size = 16\n    cht.ChartTitle.Font.Bold = True\n    cht.ChartTitle.Font.Color = RGB(30, 30, 30)\n    cht.Axes(xlCategory).HasTitle = True\n    cht.Axes(xlCategory).AxisTitle.Text = \"\u6708\"\n    cht.Axes(xlValue).HasTitle = True\n    cht.Axes(xlValue).AxisTitle.Text = \"\u91d1\u984d\uff08\u4e07\u5186\uff09\"\n    cht.Legend.Position = xlLegendPositionBottom\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">With\u3042\u308a<\/h4>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub ChartFormatWith():\n    With ActiveSheet.ChartObjects(1).Chart\n        .HasTitle = True\n        With .ChartTitle\n            .Text = \"\u6708\u5225\u58f2\u4e0a\u63a8\u79fb\"\n            With .Font\n                .Size = 16\n                .Bold = True\n                .Color = RGB(30, 30, 30)\n            End With\n        End With\n        With .Axes(xlCategory)\n            .HasTitle = True\n            .AxisTitle.Text = \"\u6708\"\n        End With\n        With .Axes(xlValue)\n            .HasTitle = True\n            .AxisTitle.Text = \"\u91d1\u984d\uff08\u4e07\u5186\uff09\"\n        End With\n        .Legend.Position = xlLegendPositionBottom\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b0\u30e9\u30d5\u306e\u3088\u3046\u306a\u968e\u5c64\u69cb\u9020\u304c\u6df1\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u306eWith\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001<strong>\u30b3\u30fc\u30c9\u306e\u8ad6\u7406\u69cb\u9020\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u968e\u5c64\u304c\u4e00\u81f4\u3057<\/strong>\u3001\u975e\u5e38\u306b\u8aad\u307f\u3084\u3059\u304f\u306a\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\">\u300cWith\u306a\u3057\u3067\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u300d\u3092\u898b\u308b\u3068\u3001\u3069\u3053\u3067\u4f55\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u8aad\u307f\u89e3\u304f\u306e\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002With\u3042\u308a\u306e\u30b3\u30fc\u30c9\u306f\u3001\u69cb\u9020\u304c\u30d6\u30ed\u30c3\u30af\u3067\u8996\u899a\u7684\u306b\u5206\u304b\u308b\u306e\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u306e\u6642\u9593\u304c\u4f53\u611f\u3067\u534a\u5206\u4ee5\u4e0b\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">BASIC SYNTAX<\/span>\n  <span class=\"section-title\" style=\"display:block;\">With\u306e\u57fa\u672c\u69cb\u6587<\/span>\n  <span class=\"section-desc\">End With\u30fb\u30cd\u30b9\u30c8\u53ef\u80fd\u306a\u69cb\u9020\u3092\u6b63\u3057\u304f\u7406\u89e3\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u57fa\u672c\u69cb\u6587\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u6b63\u3057\u304f\u4f7f\u3046\u305f\u3081\u306b\u3044\u304f\u3064\u304b\u306e\u30eb\u30fc\u30eb\u3092\u62bc\u3055\u3048\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3-1. \u57fa\u672c\u69cb\u6587\u306e\u5f62<\/h3>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">With \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\n    .\u30d7\u30ed\u30d1\u30c6\u30a31 = \u50241\n    .\u30d7\u30ed\u30d1\u30c6\u30a32 = \u50242\n    .\u30e1\u30bd\u30c3\u30c9\u540d \u5f15\u6570\n    ' ...\nEnd With<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dd\u30a4\u30f3\u30c8\u306f3\u3064\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><strong>With\u306e\u5f8c\u308d\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a<\/strong>\u3059\u308b\uff08\u5909\u6570\u3067\u3082\u76f4\u63a5\u53c2\u7167\u3067\u3082OK\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><strong>\u30d6\u30ed\u30c3\u30af\u5185\u3067\u306f\u300c.\u300d\uff08\u30c9\u30c3\u30c8\uff09\u304b\u3089\u66f8\u304d\u59cb\u3081\u308b<\/strong>\uff08\u7701\u7565\u3055\u308c\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u306e\u4ee3\u308f\u308a\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><strong>\u5fc5\u305aEnd With\u3067\u9589\u3058\u308b<\/strong>\uff08End With\u304c\u306a\u3044\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\uff09<\/span><\/div>\n\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>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff1aVBA\u3067\u64cd\u4f5c\u3067\u304d\u308b\u300c\u30e2\u30ce\u300d\u306e\u7dcf\u79f0\u3002Excel\u306eRange\uff08\u30bb\u30eb\u7bc4\u56f2\uff09\u30fbWorksheet\uff08\u30b7\u30fc\u30c8\uff09\u30fbWorkbook\uff08\u30d6\u30c3\u30af\uff09\u30fbFont\uff08\u30d5\u30a9\u30f3\u30c8\uff09\u30fb\u30b0\u30e9\u30d5\u306a\u3069\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30d7\u30ed\u30d1\u30c6\u30a3\uff08\u5c5e\u6027\uff09\u3068\u30e1\u30bd\u30c3\u30c9\uff08\u52d5\u4f5c\uff09\u3092\u6301\u3061\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3-2. \u5909\u6570\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u683c\u7d0d\u3057\u3066With\u3092\u4f7f\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With\u306b\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3082\u4f7f\u3048\u307e\u3059\u3002\u9577\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u3092\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066\u304b\u3089With\u30d6\u30ed\u30c3\u30af\u306b\u6e21\u3059\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027\u3092\u9ad8\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub WithVariable():\n    Dim ws As Worksheet\n    Dim rng As Range\n\n    Set ws = ThisWorkbook.Sheets(\"\u58f2\u4e0a\u30c7\u30fc\u30bf\")\n    Set rng = ws.Range(\"B2:B100\")\n\n    With rng\n        .Font.Bold = True\n        .NumberFormat = \"#,##0\"\n        .HorizontalAlignment = xlRight\n        .Interior.Color = RGB(240, 249, 240)\n    End With\nEnd Sub<\/pre>\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;\">\u5909\u6570\uff0bWith\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u6700\u5f37<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u9577\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d1\u30b9\uff08\u4f8b\uff1aThisWorkbook.Sheets(\"\u58f2\u4e0a\").Range(\"A1\")\uff09\u3092\u6bce\u56de\u66f8\u304f\u306e\u306f\u8aa4\u308a\u306e\u5143\u3067\u3059\u3002Set\u3067\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066\u304b\u3089With\u30d6\u30ed\u30c3\u30af\u3067\u4f7f\u3046\u30d1\u30bf\u30fc\u30f3\u304c\u3001\u6700\u3082\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u3084\u3059\u3044VBA\u306e\u66f8\u304d\u65b9\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3-3. \u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u306e\u57fa\u672c\u30eb\u30fc\u30eb<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With\u306f\u5165\u308c\u5b50\uff08\u30cd\u30b9\u30c8\uff09\u306b\u3067\u304d\u307e\u3059\u3002\u5916\u5074\u306eWith\u30d6\u30ed\u30c3\u30af\u306e\u5185\u5074\u306b\u3001\u3055\u3089\u306b\u5225\u306eWith\u30d6\u30ed\u30c3\u30af\u3092\u66f8\u304f\u3053\u3068\u3067\u3001\u968e\u5c64\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u69cb\u9020\u3092\u6574\u7406\u3057\u3066\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub NestedWith():\n    With ActiveSheet\n        .Name = \"\u96c6\u8a08\u30b7\u30fc\u30c8\"\n        With .Range(\"A1\")\n            .Value = \"\u58f2\u4e0a\u5408\u8a08\"\n            With .Font\n                .Bold = True\n                .Size = 14\n                .Color = RGB(220, 38, 38)\n            End With\n        End With\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30cd\u30b9\u30c8\u306e\u30eb\u30fc\u30eb\u306f\u300c<strong>\u5185\u5074\u306eEnd With\u306fFont\u3092\u9589\u3058\u3001\u305d\u306e\u6b21\u306eEnd With\u306fRange\u3092\u9589\u3058\u3001\u6700\u5f8c\u306eEnd With\u306fActiveSheet\u3092\u9589\u3058\u308b<\/strong>\u300d\u3068\u3044\u3046\u9806\u756a\u306b\u306a\u308a\u307e\u3059\u3002\u958b\u3044\u305f\u9806\u306e\u9006\u306b\u9589\u3058\u308b\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">With ActiveSheet<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">With .Range(\"A1\")<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">With .Font<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">End With\uff08Font\u9589\u3058\uff09<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">End With\uff08Range\u9589\u3058\uff09<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">End With\uff08Sheet\u9589\u3058\uff09<\/div>\n<\/div>\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;\">End With\u306e\u5bfe\u5fdc\u95a2\u4fc2\u306b\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">With\u3092\u30cd\u30b9\u30c8\u3059\u308b\u3068\u304d\u306f\u3001End With\u304c\u3069\u306eWith\u3068\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304b\u3092\u610f\u8b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a4\u30f3\u30c7\u30f3\u30c8\uff08\u5b57\u4e0b\u3052\uff09\u3092\u9069\u5207\u306b\u4f7f\u3046\u3068\u3001\u5bfe\u5fdc\u95a2\u4fc2\u304c\u8996\u899a\u7684\u306b\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002End With\u304c1\u3064\u591a\u3044\u30fb\u5c11\u306a\u3044\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308a\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">EXCEL PRACTICE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Excel\u3067\u306e\u5b9f\u8df5\u4f8b<\/span>\n  <span class=\"section-desc\">\u30bb\u30eb\u66f8\u5f0f\u30fb\u30d5\u30a9\u30f3\u30c8\u30fb\u30b0\u30e9\u30d5\u3092With\u3067\u307e\u3068\u3081\u3066\u8a2d\u5b9a\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u5b9f\u8df5\u7684\u306a\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002Excel\u3067\u6700\u3082\u3088\u304f\u4f7f\u308f\u308c\u308bWith\u306e\u6d3b\u7528\u30d1\u30bf\u30fc\u30f3\u3092\u3001\u30b3\u30d4\u30fc&\u30da\u30fc\u30b9\u30c8\u3067\u4f7f\u3048\u308b\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4-1. \u30bb\u30eb\u306e\u66f8\u5f0f\u3092\u4e00\u62ec\u8a2d\u5b9a\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Excel\u306e\u30bb\u30eb\u66f8\u5f0f\u8a2d\u5b9a\u306f\u3001With\u3068\u6700\u3082\u76f8\u6027\u304c\u3088\u3044\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306e\u3072\u3068\u3064\u3067\u3059\u3002\u30d5\u30a9\u30f3\u30c8\u30fb\u80cc\u666f\u8272\u30fb\u914d\u7f6e\u30fb\u67a0\u7dda\u3092\u3072\u3068\u3064\u306eWith\u30d6\u30ed\u30c3\u30af\u306b\u307e\u3068\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub ExcelCellFormat():\n    ' \u30d8\u30c3\u30c0\u30fc\u884c\uff081\u884c\u76ee\uff09\u306b\u898b\u6804\u3048\u3088\u3044\u66f8\u5f0f\u3092\u4e00\u62ec\u8a2d\u5b9a\n    With Range(\"A1:F1\")\n        ' \u80cc\u666f\u8272\n        .Interior.Color = RGB(30, 64, 175)\n        ' \u30d5\u30a9\u30f3\u30c8\u8a2d\u5b9a\n        With .Font\n            .Name = \"\u6e38\u30b4\u30b7\u30c3\u30af Medium\"\n            .Size = 12\n            .Bold = True\n            .Color = RGB(255, 255, 255)\n        End With\n        ' \u914d\u7f6e\n        .HorizontalAlignment = xlCenter\n        .VerticalAlignment = xlCenter\n        .RowHeight = 32\n        ' \u67a0\u7dda\n        With .Borders\n            .LineStyle = xlContinuous\n            .Weight = xlThin\n            .Color = RGB(255, 255, 255)\n        End With\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d8\u30c3\u30c0\u30fc\u884c\u306e\u30c7\u30b6\u30a4\u30f3\u3092\u5909\u3048\u305f\u3044\u3068\u304d\u306f\u3001<code>Range(\"A1:F1\")<\/code>\u306e\u90e8\u5206\u30921\u7b87\u6240\u5909\u3048\u308b\u3060\u3051\u3067\u5168\u8a2d\u5b9a\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4-2. \u8907\u6570\u30b7\u30fc\u30c8\u3092With\u3067\u8a2d\u5b9a\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8907\u6570\u306e\u30b7\u30fc\u30c8\u306b\u540c\u3058\u8a2d\u5b9a\u3092\u9069\u7528\u3059\u308b\u5834\u5408\u3082With\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub MultiSheetSetup():\n    Dim ws As Worksheet\n\n    For Each ws In ThisWorkbook.Worksheets\n        With ws\n            ' \u30da\u30fc\u30b8\u8a2d\u5b9a\n            With .PageSetup\n                .Orientation = xlLandscape\n                .PaperSize = xlPaperA4\n                .FitToPagesWide = 1\n                .FitToPagesTall = False\n                .LeftMargin = Application.InchesToPoints(0.5)\n                .RightMargin = Application.InchesToPoints(0.5)\n                .TopMargin = Application.InchesToPoints(0.7)\n                .BottomMargin = Application.InchesToPoints(0.7)\n            End With\n            ' \u8868\u793a\u8a2d\u5b9a\n            .DisplayGridlines = False\n            .DisplayHeadings = False\n            .Zoom = 100\n        End With\n    Next ws\nEnd Sub<\/pre>\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\">For Each + With \u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u975e\u5e38\u306b\u5f37\u529b\u3067\u3059\u3002\u300c\u5168\u30b7\u30fc\u30c8\u306b\u540c\u3058\u8a2d\u5b9a\u3092\u9069\u7528\u3059\u308b\u300d\u300c\u5168\u884c\u306e\u66f8\u5f0f\u3092\u7d71\u4e00\u3059\u308b\u300d\u3068\u3044\u3063\u305f\u4e00\u62ec\u51e6\u7406\u3067\u5927\u6d3b\u8e8d\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4-3. \u30b0\u30e9\u30d5\u306e\u898b\u305f\u76ee\u3092With\u3067\u6574\u3048\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b0\u30e9\u30d5\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u968e\u5c64\u304c\u6df1\u3044\u305f\u3081\u3001With\u306e\u30cd\u30b9\u30c8\u306b\u3088\u308b\u30b3\u30fc\u30c9\u304cVBA\u3089\u3057\u3044\u66f8\u304d\u65b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub GraphDesign():\n    With ActiveSheet.ChartObjects(1).Chart\n        ' \u30c1\u30e3\u30fc\u30c8\u30a8\u30ea\u30a2\u306e\u30c7\u30b6\u30a4\u30f3\n        With .ChartArea\n            .Format.Fill.ForeColor.RGB = RGB(255, 255, 255)\n            With .Format.Line\n                .Visible = True\n                .ForeColor.RGB = RGB(200, 200, 200)\n                .Weight = 1\n            End With\n        End With\n        ' \u30d7\u30ed\u30c3\u30c8\u30a8\u30ea\u30a2\n        With .PlotArea\n            .Format.Fill.ForeColor.RGB = RGB(248, 249, 250)\n        End With\n        ' \u51e1\u4f8b\n        With .Legend\n            .Position = xlLegendPositionBottom\n            .Font.Size = 10\n        End With\n        ' \u30bf\u30a4\u30c8\u30eb\n        With .ChartTitle\n            .Text = \"\u56db\u534a\u671f\u58f2\u4e0a\u6bd4\u8f03\"\n            With .Font\n                .Size = 14\n                .Bold = True\n            End With\n        End With\n    End With\nEnd Sub<\/pre>\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>ChartObjects<\/strong>\uff1aExcel\u30b7\u30fc\u30c8\u306b\u3042\u308b\u30b0\u30e9\u30d5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3002ChartObjects(1)\u30671\u756a\u76ee\u306e\u30b0\u30e9\u30d5\u3092\u6307\u5b9a\u3057\u3001\u3055\u3089\u306b.Chart\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30b0\u30e9\u30d5\u672c\u4f53\uff08Chart \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002Chart\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306fChartArea\u30fbPlotArea\u30fbAxes\u30fbLegend\u306a\u3069\u591a\u304f\u306e\u5b50\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6301\u3064\u305f\u3081\u3001With\u30cd\u30b9\u30c8\u304c\u7279\u306b\u6709\u52b9\u3067\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">WORD PRACTICE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Word\u3067\u306e\u5b9f\u8df5\u4f8b<\/span>\n  <span class=\"section-desc\">\u6bb5\u843d\u8a2d\u5b9a\u30fb\u30d5\u30a9\u30f3\u30c8\u30fb\u30b9\u30bf\u30a4\u30eb\u3092With\u3067\u307e\u3068\u3081\u3066\u6307\u5b9a\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306fExcel\u3060\u3051\u3067\u306a\u304f\u3001<strong>Word VBA<\/strong>\u3067\u3082\u5e83\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002\u6bb5\u843d\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u30fb\u30b9\u30da\u30fc\u30b7\u30f3\u30b0\u30fb\u30d5\u30a9\u30f3\u30c8\u306a\u3069\u3001Word\u306e\u66f8\u5f0f\u8a2d\u5b9a\u306f\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u591a\u3044\u305f\u3081\u3001With\u306e\u52b9\u679c\u304c\u7279\u306b\u5927\u304d\u3044\u5834\u9762\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5-1. \u6bb5\u843d\u66f8\u5f0f\u306e\u4e00\u62ec\u8a2d\u5b9a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Word\u306e\u6bb5\u843d\u306b\u5bfe\u3057\u3066\u30a4\u30f3\u30c7\u30f3\u30c8\u30fb\u884c\u9593\u30fb\u30b9\u30da\u30fc\u30b9\u3092With\u3067\u307e\u3068\u3081\u3066\u8a2d\u5b9a\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub WordParagraphFormat():\n    ' \u30a2\u30af\u30c6\u30a3\u30d6\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u6700\u521d\u306e\u6bb5\u843d\u3092\u8a2d\u5b9a\n    With ActiveDocument.Paragraphs(1)\n        With .Format\n            .SpaceBefore = 6\n            .SpaceAfter = 6\n            .LineSpacingRule = wdLineSpaceExactly\n            .LineSpacing = 20\n            .LeftIndent = InchesToPoints(0.5)\n            .RightIndent = InchesToPoints(0.5)\n            .FirstLineIndent = InchesToPoints(0)\n            .Alignment = wdAlignParagraphJustify\n        End With\n        With .Range.Font\n            .Name = \"\u6e38\u660e\u671d\"\n            .Size = 12\n            .Bold = False\n            .Color = RGB(40, 40, 40)\n        End With\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5-2. \u6587\u66f8\u5168\u4f53\u306e\u30b9\u30bf\u30a4\u30eb\u3092With\u3067\u4e00\u62ec\u5909\u66f4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d3\u30b8\u30cd\u30b9\u6587\u66f8\u5168\u4f53\u306e\u30d5\u30a9\u30f3\u30c8\u3068\u30ec\u30a4\u30a2\u30a6\u30c8\u3092With\u3067\u8a2d\u5b9a\u3059\u308b\u4f8b\u3067\u3059\u3002\u8907\u6570\u306e\u8a2d\u5b9a\u7b87\u6240\u3092\u307e\u3068\u3081\u308b\u3053\u3068\u3067\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4e00\u8cab\u3057\u305f\u30c7\u30b6\u30a4\u30f3\u3092\u52b9\u7387\u3088\u304f\u7dad\u6301\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub WordDocumentSetup():\n    Dim doc As Document\n    Set doc = ActiveDocument\n\n    With doc\n        ' \u30da\u30fc\u30b8\u8a2d\u5b9a\n        With .PageSetup\n            .PageWidth = CentimetersToPoints(21)\n            .PageHeight = CentimetersToPoints(29.7)\n            .TopMargin = CentimetersToPoints(3)\n            .BottomMargin = CentimetersToPoints(2.5)\n            .LeftMargin = CentimetersToPoints(2.5)\n            .RightMargin = CentimetersToPoints(2)\n        End With\n        ' \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30a9\u30f3\u30c8\n        With .Styles(wdStyleNormal).Font\n            .Name = \"\u6e38\u660e\u671d\"\n            .Size = 10.5\n        End With\n        With .Styles(wdStyleNormal).ParagraphFormat\n            .LineSpacingRule = wdLineSpaceMultiple\n            .LineSpacing = LinesToPoints(1.2)\n            .SpaceAfter = 0\n        End With\n    End With\n\n    MsgBox \"\u6587\u66f8\u306e\u57fa\u672c\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\"\nEnd Sub<\/pre>\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\">Word\u30de\u30af\u30ed\u306f\u300c\u7e70\u308a\u8fd4\u3057\u4f5c\u696d\u306e\u81ea\u52d5\u5316\u300d\u3067\u7279\u306b\u5a01\u529b\u3092\u767a\u63ee\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u300c\u6bce\u6708\u306e\u5831\u544a\u66f8\u3092\u540c\u3058\u30c7\u30b6\u30a4\u30f3\u3067\u51fa\u529b\u3059\u308b\u300d\u4f5c\u696d\u3092With\u3067\u66f8\u3044\u3066\u304a\u304f\u3068\u3001\u30b9\u30bf\u30a4\u30eb\u3092\u5909\u3048\u305f\u3044\u3068\u304d\u306b1\u7b87\u6240\u76f4\u3059\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002<\/div>\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;\">Word VBA\u3067With\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">Word\u306eDocument\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306fPageSetup\u30fbStyles\u30fbSections\u30fbParagraphs\u306a\u3069\u591a\u304f\u306e\u5b50\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6301\u3061\u307e\u3059\u3002\u3053\u308c\u3089\u3092\u30cd\u30b9\u30c8\u306eWith\u3067\u307e\u3068\u3081\u308b\u3068\u3001\u8907\u96d1\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u8a2d\u5b9a\u3067\u3082\u30b3\u30fc\u30c9\u304c\u6574\u7406\u3055\u308c\u3001\u5f8c\u304b\u3089\u5909\u66f4\u30fb\u518d\u5229\u7528\u304c\u3057\u3084\u3059\u304f\u306a\u308a\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">NESTED WITH<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u306e\u4f7f\u3044\u65b9\u3068\u6ce8\u610f\u70b9<\/span>\n  <span class=\"section-desc\">\u6b63\u3057\u3044\u66f8\u304d\u65b9\u30fb\u9593\u9055\u3048\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u3092\u5b8c\u5168\u653b\u7565<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With\u306e\u30cd\u30b9\u30c8\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u968e\u5c64\u306b\u6cbf\u3063\u3066\u30b3\u30fc\u30c9\u3092\u5165\u308c\u5b50\u306b\u3059\u308b\u300d\u6280\u6cd5\u3067\u3059\u3002\u6b63\u3057\u304f\u4f7f\u3048\u3070\u53ef\u8aad\u6027\u304c\u5927\u5e45\u306b\u4e0a\u304c\u308a\u307e\u3059\u304c\u3001\u3044\u304f\u3064\u304b\u306e\u843d\u3068\u3057\u7a74\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6-1. \u30cd\u30b9\u30c8\u306e\u57fa\u672c\u30d1\u30bf\u30fc\u30f3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30cd\u30b9\u30c8\u306fWith\u301cEnd With\u306e\u4e2d\u306b\u3001\u3055\u3089\u306bWith\u301cEnd With\u3092\u66f8\u304f\u5f62\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub NestingBasic():\n    With ThisWorkbook.Sheets(\"Sheet1\")       ' \u5916\u5074: \u30b7\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\n        .Tab.Color = RGB(220, 38, 38)        ' \u30b7\u30fc\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\n\n        With .Range(\"A1:E1\")                 ' \u4e2d\u5074: \u30bb\u30eb\u7bc4\u56f2\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\n            .Merge                           ' \u30bb\u30eb\u3092\u7d50\u5408\n\n            With .Font                       ' \u5185\u5074: \u30d5\u30a9\u30f3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\n                .Name = \"\u6e38\u30b4\u30b7\u30c3\u30af\"\n                .Size = 16\n                .Bold = True\n                .Color = RGB(255, 255, 255)\n            End With                         ' Font \u3092\u9589\u3058\u308b\n\n            .Interior.Color = RGB(30, 64, 175)\n            .HorizontalAlignment = xlCenter\n            .VerticalAlignment = xlCenter\n        End With                             ' Range \u3092\u9589\u3058\u308b\n\n        .Columns(\"A:E\").AutoFit             ' \u30b7\u30fc\u30c8\u306e\u30e1\u30bd\u30c3\u30c9\n    End With                                 ' Sheet1 \u3092\u9589\u3058\u308b\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30fc\u30c9\u306e\u30b3\u30e1\u30f3\u30c8\u3067\u793a\u3057\u305f\u3088\u3046\u306b\u3001<strong>\u5185\u5074\u306eEnd With\u304cFont\u3092\u9589\u3058\u3001\u6b21\u306eEnd With\u304cRange\u3092\u9589\u3058\u3001\u6700\u5f8c\u306eEnd With\u304cSheet\u3092\u9589\u3058\u308b<\/strong>\u3068\u3044\u3046\u9806\u756a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6-2. \u9593\u9055\u3048\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\uff1a\u5916\u5074\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30cd\u30b9\u30c8\u3057\u305fWith\u306e\u4e2d\u304b\u3089\u3001\u5916\u5074\u306eWith\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u5834\u5408\u3001\u5358\u7d14\u306a\u300c.\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3067\u306f<strong>\u5185\u5074\u306eWith\u304c\u512a\u5148\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059<\/strong>\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub NestingMistake():\n    ' \u9593\u9055\u3044\u3084\u3059\u3044\u4f8b\n    With Range(\"A1\")\n        With .Font\n            .Name = \"\u6e38\u30b4\u30b7\u30c3\u30af\"\n            ' \u3053\u3053\u3067 .Value = \"\u30c6\u30b9\u30c8\" \u3068\u66f8\u3044\u3066\u3082\u3001\n            ' Font.Value \u3092\u63a2\u3057\u3066\u3057\u307e\u3044\u30a8\u30e9\u30fc\u306b\u306a\u308b\uff01\n        End With\n        .Value = \"\u30c6\u30b9\u30c8\"  ' Range(\"A1\")\u306eValue\u306f\u3053\u3053\u3067\u66f8\u304f\n    End With\nEnd Sub<\/pre>\n<\/div>\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;\">\u30cd\u30b9\u30c8\u5185\u3067\u5916\u5074\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u5185\u5074\u306eWith\u30d6\u30ed\u30c3\u30af\u5185\u3067\u306f\u3001\u5916\u5074\u306eWith\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u76f4\u63a5\u300c.\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3067\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002\u5916\u5074\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u5834\u5408\u306f\u3001End With\u3067\u5185\u5074\u3092\u9589\u3058\u3066\u304b\u3089\u66f8\u304f\u304b\u3001\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066\u304b\u3089\u5909\u6570\u540d\u3067\u53c2\u7167\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6-3. \u30cd\u30b9\u30c8\u306f3\u968e\u5c64\u307e\u3067\u304c\u76ee\u5b89<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With\u306e\u30cd\u30b9\u30c8\u306f\u7406\u8ad6\u4e0a\u4f55\u968e\u5c64\u3067\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001<strong>3\u968e\u5c64\u3092\u8d85\u3048\u308b\u3068\u53ef\u8aad\u6027\u304c\u9006\u306b\u4e0b\u304c\u308b<\/strong>\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u30014\u968e\u5c64\u30fb5\u968e\u5c64\u306b\u306a\u308b\u3068\u5bfe\u5fdc\u3059\u308bEnd With\u304c\u3069\u3053\u304b\u3092\u628a\u63e1\u3057\u306b\u304f\u304f\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>2\u301c3\u968e\u5c64\u306a\u3089\u53ef\u8aad\u6027\u304c\u5411\u4e0a\u3059\u308b\u3002\u7a4d\u6975\u7684\u306b\u4f7f\u3046\u3079\u304d<\/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>4\u968e\u5c64\u4ee5\u4e0a\u306b\u306a\u3063\u305f\u3089\u3001\u4e2d\u9593\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066With\u3092\u5206\u5272\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\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>\u30b3\u30e1\u30f3\u30c8\u3067\u300c\u3069\u306eWith\u3092\u9589\u3058\u3066\u3044\u308b\u304b\u300d\u3092\u660e\u8a18\u3059\u308b\u3068\u3001\u6df1\u3044\u30cd\u30b9\u30c8\u3067\u3082\u7ba1\u7406\u3057\u3084\u3059\u3044<\/span><\/div>\n\n<\/div>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">1\u968e\u5c64 With\uff08\u5916\u5074\uff09<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">2\u968e\u5c64 With\uff08\u4e2d\u5074\uff09<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">3\u968e\u5c64 With\uff08\u5185\u5074\uff09<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\uff1c\u3053\u3053\u307e\u3067\u304c\u63a8\u5968\uff1e<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">4\u968e\u5c64\u4ee5\u4e0a\u306f\u8981\u691c\u8a0e<\/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\">With \u306e\u30cd\u30b9\u30c8\u304c4\u968e\u5c64\u4ee5\u4e0a\u306b\u306a\u3063\u3066\u304d\u305f\u3089\u300c\u3053\u306e\u30b3\u30fc\u30c9\u306f\u5206\u5272\u3067\u304d\u306a\u3044\u304b\uff1f\u300d\u3092\u8003\u3048\u308b\u30b5\u30a4\u30f3\u3067\u3059\u3002\u51e6\u7406\u3092\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u306b\u5206\u3051\u3066\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u9020\u3092\u4fdd\u3064\u65b9\u304c\u9577\u671f\u7684\u306a\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u30b3\u30b9\u30c8\u304c\u4e0b\u304c\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">WITHEVENTS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">WithEvents\u30ad\u30fc\u30ef\u30fc\u30c9<\/span>\n  <span class=\"section-desc\">\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3078\u306e\u5fdc\u7528<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>WithEvents<\/strong>\u306f\u3001With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f\u5225\u306e\u7528\u9014\u3092\u6301\u3064\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u3059\u304c\u3001\u540d\u524d\u306b\u300cWith\u300d\u304c\u4ed8\u304f\u305f\u3081\u6df7\u540c\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u4e21\u8005\u306e\u9055\u3044\u3068\u3001WithEvents\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\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>WithEvents<\/strong>\uff1aVBA\u3067\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u307e\u305f\u306f\u30d5\u30a9\u30fc\u30e0\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u30ec\u30d9\u30eb\u3067\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u3068\u304d\u306b\u4f7f\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3002WithEvents\u3067\u5ba3\u8a00\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306f\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u767a\u751f\u3055\u305b\u308b\u30a4\u30d9\u30f3\u30c8\u3092\u30b3\u30fc\u30c9\u3067\u6355\u6349\uff08\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\uff09\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff08\u66f8\u5f0f\u7701\u7565\uff09\u3068\u306f\u5168\u304f\u5225\u306e\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">7-1. WithEvents\u3068With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u9055\u3044<\/h3>\n\n\n\n<table>\n<thead><tr><th>\u9805\u76ee<\/th><th>With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/th><th>WithEvents\u30ad\u30fc\u30ef\u30fc\u30c9<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u7528\u9014<\/td><td>\u540c\u4e00\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u3092\u7701\u7565\u3057\u3066\u8a18\u8ff0<\/td><td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u6355\u6349\u3067\u304d\u308b\u5909\u6570\u3092\u5ba3\u8a00<\/td><\/tr>\n<tr><td>\u66f8\u304f\u5834\u6240<\/td><td>\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185\u306e\u30b3\u30fc\u30c9<\/td><td>\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5ba3\u8a00\u30bb\u30af\u30b7\u30e7\u30f3\uff08Dim\u884c\uff09<\/td><\/tr>\n<tr><td>End With\u304c\u5fc5\u8981\u304b<\/td><td>\u5fc5\u8981<\/td><td>\u4e0d\u8981\uff08Dim\u6587\u306e\u307f\uff09<\/td><\/tr>\n<tr><td>\u4e3b\u306a\u4f7f\u7528\u5834\u9762<\/td><td>\u30bb\u30eb\u66f8\u5f0f\u30fb\u30b0\u30e9\u30d5\u30fb\u30da\u30fc\u30b8\u8a2d\u5b9a\u306a\u3069\u306e\u4e00\u62ec\u6307\u5b9a<\/td><td>Excel\u30d6\u30c3\u30af\u30fb\u30b7\u30fc\u30c8\u30fb\u30d5\u30a9\u30fc\u30e0\u306e\u30a4\u30d9\u30f3\u30c8\u51e6\u7406<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">7-2. WithEvents\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WithEvents\u306e\u5178\u578b\u7684\u306a\u4f7f\u3044\u65b9\u306f\u3001\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u3067\u5225\u306e\u30d6\u30c3\u30af\u3084\u30b7\u30fc\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u76e3\u8996\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">' \u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\u4f8b: Class1\uff09\u5185\nPrivate WithEvents ExcelApp As Application\n\nPrivate Sub Class_Initialize()\n    Set ExcelApp = Application\nEnd Sub\n\nPrivate Sub ExcelApp_WorkbookOpen(ByVal Wb As Workbook)\n    MsgBox \"\u30d6\u30c3\u30af\u300c\" & Wb.Name & \"\u300d\u304c\u958b\u304b\u308c\u307e\u3057\u305f\u3002\"\nEnd Sub\n\nPrivate Sub ExcelApp_WorkbookBeforeSave(ByVal Wb As Workbook, _\n    ByVal SaveAsUI As Boolean, Cancel As Boolean)\n    ' \u4fdd\u5b58\u524d\u306b\u81ea\u52d5\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u4f8b\n    Wb.SaveCopyAs Wb.Path & \"\\backup_\" & Format(Now, \"yyyymmdd_hhnnss\") & \".xlsx\"\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u306e\u4f8b\u3067\u306f\u3001<code>WithEvents ExcelApp As Application<\/code>\u3068\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3067\u3001Excel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u30a4\u30d9\u30f3\u30c8\uff08\u30d6\u30c3\u30af\u3092\u958b\u3044\u305f\u3068\u304d\u30fb\u4fdd\u5b58\u3059\u308b\u3068\u304d\u306a\u3069\uff09\u3092\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u3067\u6355\u6349\u3057\u3066\u3044\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;\">WithEvents\u304c\u4f7f\u3048\u308b\u306e\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u30ec\u30d9\u30eb\u306e\u307f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">WithEvents\u3067\u5ba3\u8a00\u3057\u305f\u5909\u6570\u306f\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185\u3067\u306f\u5ba3\u8a00\u3067\u304d\u307e\u305b\u3093\uff08\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff09\u3002\u5fc5\u305a\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5192\u982d\uff08\u5ba3\u8a00\u30bb\u30af\u30b7\u30e7\u30f3\uff09\u306b\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001WithEvents\u304c\u4f7f\u3048\u308b\u306e\u306f\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u30fb\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30fc\u30e0\u30e2\u30b8\u30e5\u30fc\u30eb\u30fb\u30b7\u30fc\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\u30fbThisworkbook\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">7-3. WithEvents\u306e\u5b9f\u7528\u4f8b\uff1a\u30b7\u30fc\u30c8\u306e\u5909\u66f4\u3092\u76e3\u8996\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30fc\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u66f8\u304f\u5834\u5408\u306f\u3001\u30af\u30e9\u30b9\u306e\u521d\u671f\u5316\u304c\u4e0d\u8981\u3067\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">'\u30b7\u30fc\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\uff08Sheet1\uff09\u5185\nPrivate Sub Worksheet_Change(ByVal Target As Range)\n    ' A\u5217\u306e\u5024\u304c\u5909\u66f4\u3055\u308c\u305f\u3068\u304d\u306bB\u5217\u306b\u66f4\u65b0\u65e5\u6642\u3092\u81ea\u52d5\u5165\u529b\n    If Not Intersect(Target, Columns(\"A\")) Is Nothing Then\n        Application.EnableEvents = False\n        With Target.Offset(0, 1)\n            .Value = Now\n            .NumberFormat = \"yyyy\/mm\/dd hh:mm\"\n        End With\n        Application.EnableEvents = True\n    End If\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u65e5\u6642\u30bb\u30eb\uff08Target.Offset(0,1)\uff09\u306e\u5024\u3068\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u4e00\u7dd2\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002WithEvents\u3068With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092<strong>\u7d44\u307f\u5408\u308f\u305b\u308b<\/strong>\u306e\u304c\u5b9f\u8df5\u7684\u306aVBA\u306e\u66f8\u304d\u65b9\u3067\u3059\u3002<\/p>\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">ERROR HANDLING<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u51e6\u6cd5<\/span>\n  <span class=\"section-desc\">With\u4f7f\u7528\u4e2d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u3046\u3068\u304d\u306b\u767a\u751f\u3057\u3084\u3059\u3044\u30a8\u30e9\u30fc\u3068\u305d\u306e\u5bfe\u51e6\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306e\u30c7\u30d0\u30c3\u30b0\u624b\u9806\u3082\u3042\u308f\u305b\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8-1. \u5b9f\u884c\u6642\u30a8\u30e9\u30fc91\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u307e\u305f\u306fWith\u30d6\u30ed\u30c3\u30af\u5909\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u3082\u3088\u304f\u898b\u304b\u3051\u308b\u30a8\u30e9\u30fc\u304c\u300c<strong>\u5b9f\u884c\u6642\u30a8\u30e9\u30fc 91<\/strong>\u300d\u3067\u3059\u3002\u3053\u306e\u30a8\u30e9\u30fc\u306fWith\u306e\u5bfe\u8c61\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c<strong>Nothing\uff08\u7a7a\uff09<\/strong>\u306e\u3068\u304d\u306b\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub Error91Example():\n    Dim ws As Worksheet\n    ' Set\u6587\u3092\u5fd8\u308c\u3066With\u3092\u4f7f\u3046 \u2192 \u30a8\u30e9\u30fc91\n    With ws          ' ws \u306f Nothing \u306e\u307e\u307e \u2192 \u30a8\u30e9\u30fc\uff01\n        .Name = \"\u30c6\u30b9\u30c8\"\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u6c7a\u7b56\u306f\u3001With\u30d6\u30ed\u30c3\u30af\u306e\u524d\u306b\u5fc5\u305aSet\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub Error91Fix():\n    Dim ws As Worksheet\n    Set ws = ThisWorkbook.Sheets(\"Sheet1\")  ' Set\u3067\u683c\u7d0d\n\n    If ws Is Nothing Then\n        MsgBox \"\u30b7\u30fc\u30c8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\"\n        Exit Sub\n    End If\n\n    With ws\n        .Name = \"\u30c6\u30b9\u30c8\"\n    End With\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">8-2. \u5b9f\u884c\u6642\u30a8\u30e9\u30fc424\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30d6\u30ed\u30c3\u30af\u5185\u3067\u30c9\u30c3\u30c8\uff08.\uff09\u304b\u3089\u59cb\u307e\u3089\u306a\u3044\u884c\u3092\u66f8\u3044\u305f\u5834\u5408\u3001\u610f\u56f3\u305b\u305a\u5916\u5074\u306e\u30b9\u30b3\u30fc\u30d7\u306e\u5909\u6570\u3092\u53c2\u7167\u3057\u3088\u3046\u3068\u3057\u3066\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub Error424Example():\n    With Range(\"A1\")\n        .Value = \"\u30c6\u30b9\u30c8\"\n        Interior.Color = RGB(255, 0, 0)  ' \u2190 \u30c9\u30c3\u30c8\u304c\u629c\u3051\u3066\u3044\u308b\uff01\n        ' .Interior.Color = ... \u304c\u6b63\u3057\u3044\n    End With\nEnd Sub<\/pre>\n<\/div>\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;\">\u30c9\u30c3\u30c8\uff08.\uff09\u306e\u66f8\u304d\u5fd8\u308c\u306b\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">With\u30d6\u30ed\u30c3\u30af\u5185\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6307\u5b9a\u3059\u308b\u3068\u304d\u3001\u5148\u982d\u306e\u30c9\u30c3\u30c8\uff08.\uff09\u3092\u5fd8\u308c\u308b\u3068\u3001With\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u304f\u30e2\u30b8\u30e5\u30fc\u30eb\u30ec\u30d9\u30eb\u306e\u5909\u6570\u306a\u3069\u3092\u53c2\u7167\u3057\u3088\u3046\u3068\u3057\u3066\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002VBA\u30a8\u30c7\u30a3\u30bf\u306e\u30aa\u30fc\u30c8\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u6b63\u3057\u304f\u6a5f\u80fd\u3057\u3066\u3044\u308c\u3070\u898b\u305f\u76ee\u3067\u308f\u304b\u308b\u3053\u3068\u3082\u591a\u3044\u3067\u3059\u304c\u3001\u6163\u308c\u308b\u307e\u3067\u306f\u610f\u8b58\u7684\u306b\u30c9\u30c3\u30c8\u306e\u6709\u7121\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">8-3. With\u30d6\u30ed\u30c3\u30af\u4e2d\u306b\u5bfe\u8c61\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5909\u308f\u308b\u30b1\u30fc\u30b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30d6\u30ed\u30c3\u30af\u306e\u5b9f\u884c\u4e2d\u306b\u3001\u5bfe\u8c61\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5909\u66f4\u30fb\u524a\u9664\u3055\u308c\u308b\u3068\u4e88\u671f\u3057\u306a\u3044\u52d5\u4f5c\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub WithObjectChanged():\n    With ActiveCell\n        .Value = \"\u5165\u529b\u524d\"\n        ActiveSheet.Cells(1, 1).Select  ' \u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30eb\u304c\u5909\u308f\u308b\uff01\n        .Font.Bold = True  ' \u5143\u306eActiveCell\uff08\u79fb\u52d5\u524d\uff09\u306b\u9069\u7528\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\n    End With\nEnd Sub<\/pre>\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;\">\u5bfe\u8c61\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066\u5b89\u5168\u306b\u3059\u308b<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">With\u306bActiveCell\u3084Selection\u3092\u76f4\u63a5\u6e21\u3059\u3068\u3001\u30d6\u30ed\u30c3\u30af\u5185\u3067\u9078\u629e\u304c\u5909\u308f\u3063\u305f\u5834\u5408\u306b\u610f\u56f3\u3057\u306a\u3044\u52d5\u4f5c\u304c\u8d77\u304d\u307e\u3059\u3002With ws.Range(\"A1\") \u306e\u3088\u3046\u306b\u56fa\u5b9a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3059\u308b\u304b\u3001Set\u3067\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066\u304b\u3089\u4f7f\u3046\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">8-4. \u30c7\u30d0\u30c3\u30b0\u624b\u9806\uff1aWith\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306e\u78ba\u8a8d\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\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>With\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304cNothing\u3067\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b\uff08<code>If obj Is Nothing Then ...<\/code>\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>\u30d6\u30ed\u30c3\u30af\u5185\u306e\u3059\u3079\u3066\u306e\u884c\u304c\u30c9\u30c3\u30c8\uff08.\uff09\u304b\u3089\u59cb\u307e\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\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>End With\u306e\u5bfe\u5fdc\u95a2\u4fc2\u304c\u6b63\u3057\u304f\u9589\u3058\u3089\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\uff08\u30cd\u30b9\u30c8\u6642\u306f\u7279\u306b\u6ce8\u610f\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>With\u30d6\u30ed\u30c3\u30af\u5185\u3067\u5bfe\u8c61\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9078\u629e\u30fb\u79fb\u52d5\u304c\u8d77\u304d\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\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>On Error Resume Next\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30a8\u30e9\u30fc\u304c\u96a0\u308c\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u4e00\u6642\u7684\u306b\u5916\u3057\u3066\u30c6\u30b9\u30c8\u3059\u308b<\/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\">VBA\u306e\u30a8\u30e9\u30fc\u306f\u6700\u521d\u306f\u6238\u60d1\u3044\u307e\u3059\u304c\u3001\u30d1\u30bf\u30fc\u30f3\u304c\u6c7a\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u30a8\u30e9\u30fc91\u306e9\u5272\u306f\u300cSet\u3057\u5fd8\u308c\u300d\u3001\u30a8\u30e9\u30fc424\u306e\u591a\u304f\u306f\u300c\u30c9\u30c3\u30c8\u629c\u3051\u300d\u3067\u3059\u3002\u3053\u306e2\u3064\u3092\u62bc\u3055\u3048\u3066\u304a\u304f\u3060\u3051\u3067\u3001With\u30a8\u30e9\u30fc\u306e\u307b\u3068\u3093\u3069\u306f\u5bfe\u51e6\u3067\u304d\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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;\">WITH + LOOP<\/span>\n  <span class=\"section-title\" style=\"display:block;\">With + Loop \u306e\u7d44\u307f\u5408\u308f\u305b<\/span>\n  <span class=\"section-desc\">\u5927\u91cf\u30bb\u30eb\u51e6\u7406\u306e\u9ad8\u901f\u5316\u30fbFor Each\u30fbDo While\u3068\u306e\u9023\u643a<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u30eb\u30fc\u30d7\u3092\u3046\u307e\u304fQ\u3078\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u5927\u91cf\u306e\u30bb\u30eb\u3084\u884c\u3092\u52b9\u7387\u3088\u304f\u51e6\u7406\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u5b9f\u969b\u306e\u696d\u52d9\u3067\u4f7f\u3048\u308b\u5b9f\u8df5\u7684\u306a\u30d1\u30bf\u30fc\u30f3\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9-1. For Each + With\uff1a\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u5404\u8981\u7d20\u306b\u540c\u3058\u8a2d\u5b9a\u3092\u9069\u7528<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff08Sheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30fbRange\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306a\u3069\uff09\u306e\u5404\u8981\u7d20\u306b\u3001\u540c\u3058\u8a2d\u5b9a\u3092\u7e70\u308a\u8fd4\u3057\u9069\u7528\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub ForEachWith():\n    Dim ws As Worksheet\n\n    ' \u5168\u30b7\u30fc\u30c8\u306e\u30d8\u30c3\u30c0\u30fc\u884c\u3092\u7d71\u4e00\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\n    For Each ws In ThisWorkbook.Worksheets\n        With ws.Rows(1)\n            .RowHeight = 28\n            With .Font\n                .Name = \"\u6e38\u30b4\u30b7\u30c3\u30af Medium\"\n                .Size = 11\n                .Bold = True\n                .Color = RGB(255, 255, 255)\n            End With\n            .Interior.Color = RGB(17, 94, 89)\n            .HorizontalAlignment = xlCenter\n            .VerticalAlignment = xlCenter\n        End With\n    Next ws\n\n    MsgBox \"\u5168\u30b7\u30fc\u30c8\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002\"\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">9-2. For Next + With\uff1a\u884c\u756a\u53f7\u3092\u4f7f\u3063\u305f\u5927\u91cf\u884c\u51e6\u7406<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For Next\u30eb\u30fc\u30d7\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u6761\u4ef6\u306b\u5fdc\u3058\u305f\u30bb\u30eb\u66f8\u5f0f\u3092\u5927\u91cf\u884c\u306b\u9069\u7528\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub ForNextWith():\n    Dim i As Long\n    Dim lastRow As Long\n\n    lastRow = Cells(Rows.Count, \"A\").End(xlUp).Row\n\n    ' 1000\u884c\u306e\u30c7\u30fc\u30bf\u306b\u4ea4\u4e92\u306e\u7e1e\u6a21\u69d8\u66f8\u5f0f\u3092\u9069\u7528\n    Application.ScreenUpdating = False  ' \u753b\u9762\u66f4\u65b0\u3092\u6b62\u3081\u3066\u9ad8\u901f\u5316\n\n    For i = 2 To lastRow\n        With Rows(i)\n            If i Mod 2 = 0 Then\n                .Interior.Color = RGB(240, 249, 240)  ' \u5076\u6570\u884c\uff1a\u8584\u3044\u30b0\u30ea\u30fc\u30f3\n            Else\n                .Interior.Color = RGB(255, 255, 255)  ' \u5947\u6570\u884c\uff1a\u767d\n            End If\n            With .Font\n                .Name = \"\u6e38\u30b4\u30b7\u30c3\u30af\"\n                .Size = 10\n            End With\n        End With\n    Next i\n\n    Application.ScreenUpdating = True\n    MsgBox lastRow - 1 & \" \u884c\u306e\u66f8\u5f0f\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\"\nEnd Sub<\/pre>\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;\">ScreenUpdating = False \u3067\u5927\u5e45\u9ad8\u901f\u5316<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u30eb\u30fc\u30d7\u5185\u3067\u30bb\u30eb\u3092\u5927\u91cf\u306b\u64cd\u4f5c\u3059\u308b\u5834\u5408\u3001Application.ScreenUpdating = False \u3092\u4e8b\u524d\u306b\u5b9f\u884c\u3059\u308b\u3068\u753b\u9762\u306e\u518d\u63cf\u753b\u3092\u6291\u5236\u3057\u3066\u51e6\u7406\u304c\u683c\u6bb5\u306b\u901f\u304f\u306a\u308a\u307e\u3059\u3002\u51e6\u7406\u5f8c\u306f\u5fc5\u305a True \u306b\u623b\u3057\u3066\u304f\u3060\u3055\u3044\u3002With + Loop \u306b\u3053\u306e\u8a2d\u5b9a\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u6570\u5343\u884c\u306e\u51e6\u7406\u3082\u73fe\u5b9f\u7684\u306a\u6642\u9593\u3067\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">9-3. Do While + With\uff1a\u6761\u4ef6\u304c\u7d9a\u304f\u9593\u3001\u52d5\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u51e6\u7406<\/h3>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub DoWhileWith():\n    Dim i As Long\n    i = 2  ' \u30c7\u30fc\u30bf\u958b\u59cb\u884c\n\n    Do While Cells(i, 1).Value <> \"\"\n        With Cells(i, 1)\n            ' A\u5217\u306e\u5024\u306b\u5fdc\u3058\u3066\u80cc\u666f\u8272\u3092\u5909\u3048\u308b\n            Select Case .Value\n                Case \"\u5b8c\u4e86\"\n                    .Interior.Color = RGB(209, 250, 229)\n                    .Font.Color = RGB(6, 95, 70)\n                Case \"\u672a\u7740\u624b\"\n                    .Interior.Color = RGB(255, 237, 213)\n                    .Font.Color = RGB(154, 52, 18)\n                Case \"\u9032\u884c\u4e2d\"\n                    .Interior.Color = RGB(219, 234, 254)\n                    .Font.Color = RGB(30, 64, 175)\n                Case Else\n                    .Interior.Color = RGB(243, 244, 246)\n                    .Font.Color = RGB(75, 85, 99)\n            End Select\n        End With\n        i = i + 1\n    Loop\nEnd Sub<\/pre>\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\">Do While + With \u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u3001\u300c\u30c7\u30fc\u30bf\u306e\u6700\u7d42\u884c\u307e\u3067\u81ea\u52d5\u3067\u51e6\u7406\u3059\u308b\u300d\u7cfb\u306e\u30de\u30af\u30ed\u3067\u983b\u7e41\u306b\u767b\u5834\u3057\u307e\u3059\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u7fd2\u5f97\u3057\u3066\u304a\u304f\u3068\u3001\u696d\u52d9\u52b9\u7387\u5316\u30de\u30af\u30ed\u306e\u5e45\u304c\u304b\u306a\u308a\u5e83\u304c\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">Application.ScreenUpdating = False<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u30eb\u30fc\u30d7\u958b\u59cb\uff08For\/Do While\uff09<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">With \u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53d6\u5f97<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">.\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u30eb\u30fc\u30d7\u7d42\u7aef\u3078<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">Application.ScreenUpdating = True<\/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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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-10\"><\/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;\">10<\/span>\n  <span class=\"section-label\" style=\"display:block;\">GENAI CASE STUDY<\/span>\n  <span class=\"section-title\" style=\"display:block;\">GENAI\u5b9f\u904b\u7528\u306eExcel\u81ea\u52d5\u5316\u4e8b\u4f8b<\/span>\n  <span class=\"section-desc\">With + Loop \u3067\u696d\u52d9\u30de\u30af\u30ed\u306e\u4f5c\u696d\u5de5\u6570\u3092\u5927\u5e45\u524a\u6e1b\u3057\u305f\u5b9f\u4f8b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u3067\u306f\u3001\u5f0a\u793e\u682a\u5f0f\u4f1a\u793eGENAI\u304c\u5b9f\u969b\u306bVBA\u306eWith\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u6d3b\u7528\u3057\u3066\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u305f\u4e8b\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10-1. \u6708\u6b21\u58f2\u4e0a\u30ec\u30dd\u30fc\u30c8\u306e\u81ea\u52d5\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\uff08\u6bce\u67083\u6642\u9593\u21928\u5206\u306b\u77ed\u7e2e\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\u3067\u306f\u6bce\u6708\u3001\u8907\u6570\u306eExcel\u30b7\u30fc\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u96c6\u7d04\u3057\u3066\u58f2\u4e0a\u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u4ee5\u524d\u306f\u30bb\u30eb\u66f8\u5f0f\u306e\u8a2d\u5b9a\u30fb\u30b0\u30e9\u30d5\u306e\u66f4\u65b0\u30fb\u30d8\u30c3\u30c0\u30fc\u306e\u7d71\u4e00\u3092\u624b\u52d5\u3067\u884c\u3063\u3066\u304a\u308a\u3001\u6bce\u67081\u4eba\u304c\u7d043\u6642\u9593\u304b\u3051\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306eWith\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u6d3b\u7528\u3057\u305f\u30de\u30af\u30ed\u3092\u7d44\u3093\u3060\u7d50\u679c\u3001\u540c\u3058\u4f5c\u696d\u304c<strong>8\u5206\u7a0b\u5ea6\u3067\u5b8c\u4e86<\/strong>\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u6708\u9593\u3067\u7d042.5\u6642\u9593\u306e\u5de5\u6570\u524a\u6e1b\u3067\u3059\u3002\u5e74\u9593\u63db\u7b97\u306730\u6642\u9593\u4ee5\u4e0a\u306e\u524a\u6e1b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub MonthlyReportFormat():\n    ' \u6708\u6b21\u30ec\u30dd\u30fc\u30c8\u306e\u5168\u30b7\u30fc\u30c8\u3092\u4e00\u62ec\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\n    Dim ws As Worksheet\n    Application.ScreenUpdating = False\n\n    For Each ws In ThisWorkbook.Worksheets\n        ' \u30b7\u30fc\u30c8\u30bf\u30d6\u306e\u8272\u5206\u3051\n        With ws\n            Select Case ws.Name\n                Case \"\u30b5\u30de\u30ea\u30fc\": .Tab.Color = RGB(220, 38, 38)\n                Case \"\u5e83\u544a\u8cbb\": .Tab.Color = RGB(30, 64, 175)\n                Case \"\u4eba\u4ef6\u8cbb\": .Tab.Color = RGB(22, 163, 74)\n                Case Else: .Tab.Color = RGB(107, 114, 128)\n            End Select\n\n            ' \u30d8\u30c3\u30c0\u30fc\u884c\u306e\u66f8\u5f0f\n            With .Rows(1)\n                With .Font\n                    .Name = \"\u6e38\u30b4\u30b7\u30c3\u30af Medium\"\n                    .Size = 11\n                    .Bold = True\n                    .Color = RGB(255, 255, 255)\n                End With\n                .Interior.Color = RGB(30, 30, 30)\n                .RowHeight = 30\n                .HorizontalAlignment = xlCenter\n                .VerticalAlignment = xlCenter\n            End With\n\n            ' \u5217\u5e45\u306e\u81ea\u52d5\u8abf\u6574\n            .Columns.AutoFit\n        End With\n    Next ws\n\n    ' \u30b5\u30de\u30ea\u30fc\u30b7\u30fc\u30c8\u306e\u30b0\u30e9\u30d5\u66f4\u65b0\n    With ThisWorkbook.Sheets(\"\u30b5\u30de\u30ea\u30fc\").ChartObjects(1).Chart\n        With .ChartTitle\n            .Text = Format(Date, \"yyyy\u5e74m\u6708\") & \"\u5ea6 \u58f2\u4e0a\u30b5\u30de\u30ea\u30fc\"\n            .Font.Size = 14\n        End With\n    End With\n\n    Application.ScreenUpdating = True\n    MsgBox \"\u6708\u6b21\u30ec\u30dd\u30fc\u30c8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\"\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">10-2. \u9867\u5ba2\u30ea\u30b9\u30c8\u7ba1\u7406\u30de\u30af\u30ed\uff08\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u3092\u52d5\u7684\u306b\u9069\u7528\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u55b6\u696d\u30c1\u30fc\u30e0\u304c\u7ba1\u7406\u3059\u308b\u9867\u5ba2\u30ea\u30b9\u30c8\u306b\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\uff08\u5546\u8ac7\u4e2d\u30fb\u6210\u7d04\u30fb\u5931\u6ce8\u306a\u3069\uff09\u306b\u5fdc\u3058\u305f\u8272\u5206\u3051\u3092\u81ea\u52d5\u9069\u7528\u3059\u308b\u30de\u30af\u30ed\u3067\u3059\u3002\u6bce\u9031\u6708\u66dc\u671d\u306b\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30c1\u30fc\u30e0\u5168\u54e1\u304c\u3072\u3068\u76ee\u3067\u30ea\u30b9\u30c8\u306e\u72b6\u6cc1\u3092\u628a\u63e1\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div style=\"background:#1e1e1e;border-radius:8px;padding:20px 24px;margin:20px 0;overflow-x:auto;\">\n  <div style=\"font-size:11px;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:1px;\">vba<\/div>\n  <pre style=\"margin:0;font-family:'Courier New',Consolas,monospace;font-size:14px;line-height:1.8;color:#d4d4d4;white-space:pre;\">Sub CustomerListColorCode():\n    Dim lastRow As Long\n    Dim i As Long\n\n    lastRow = Cells(Rows.Count, \"A\").End(xlUp).Row\n    Application.ScreenUpdating = False\n\n    For i = 2 To lastRow\n        With Rows(i)\n            Select Case Cells(i, \"F\").Value  ' F\u5217 = \u30b9\u30c6\u30fc\u30bf\u30b9\u5217\n                Case \"\u6210\u7d04\"\n                    With .Interior\n                        .Color = RGB(209, 250, 229)  ' \u8584\u3044\u30b0\u30ea\u30fc\u30f3\n                        .Pattern = xlSolid\n                    End With\n                    .Font.Color = RGB(6, 95, 70)\n                Case \"\u5931\u6ce8\"\n                    With .Interior\n                        .Color = RGB(254, 226, 226)  ' \u8584\u3044\u30ec\u30c3\u30c9\n                        .Pattern = xlSolid\n                    End With\n                    .Font.Color = RGB(153, 27, 27)\n                Case \"\u5546\u8ac7\u4e2d\"\n                    With .Interior\n                        .Color = RGB(254, 249, 195)  ' \u8584\u3044\u30a4\u30a8\u30ed\u30fc\n                        .Pattern = xlSolid\n                    End With\n                    .Font.Color = RGB(133, 77, 14)\n                Case Else\n                    With .Interior\n                        .Color = RGB(249, 250, 251)  ' \u8584\u3044\u30b0\u30ec\u30fc\n                        .Pattern = xlSolid\n                    End With\n                    .Font.Color = RGB(75, 85, 99)\n            End Select\n        End With\n    Next i\n\n    Application.ScreenUpdating = True\n    MsgBox \"\u9867\u5ba2\u30ea\u30b9\u30c8\u306e\u8272\u5206\u3051\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff08\" & lastRow - 1 & \"\u4ef6\uff09\u3002\"\nEnd Sub<\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30de\u30af\u30ed\u3092\u5c0e\u5165\u3057\u305f\u7d50\u679c\u3001\u300c\u30ea\u30b9\u30c8\u3092\u898b\u305f\u3060\u3051\u3067\u5404\u6848\u4ef6\u306e\u72b6\u6cc1\u304c\u308f\u304b\u308b\u300d\u3068\u3044\u3046\u72b6\u614b\u306b\u306a\u308a\u3001\u9031\u6b21\u30df\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u306e\u78ba\u8a8d\u4f5c\u696d\u304c\u534a\u5206\u4ee5\u4e0b\u306e\u6642\u9593\u3067\u5b8c\u4e86\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\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\u30de\u30af\u30ed\u306f\u300c\u4e00\u5ea6\u4f5c\u308c\u3070\u4f55\u5ea6\u3067\u3082\u4f7f\u3048\u308b\u300d\u306e\u304c\u6700\u5927\u306e\u30e1\u30ea\u30c3\u30c8\u3067\u3059\u3002With\u3092\u4f7f\u3063\u3066\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u306b\u3057\u3066\u304a\u304f\u3068\u3001\u6570\u30f6\u6708\u5f8c\u306b\u300c\u3053\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u305f\u3044\u300d\u3068\u306a\u3063\u305f\u3068\u304d\u3082\u4fee\u6b63\u304c1\u7b87\u6240\u3067\u6e08\u307f\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"point-box\">\n  <div class=\"point-title\">VBA With \u5b9f\u52d9\u6d3b\u7528\u306e\u30dd\u30a4\u30f3\u30c8<\/div>\n  <p>\u6700\u521d\u306f\u300cWith\u306a\u3057\u3067\u52d5\u304f\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u300d\u2192\u300c\u5f8c\u304b\u3089With\u3067\u6574\u7406\u3059\u308b\u300d\u3068\u3044\u3046\u624b\u9806\u304c\u7fd2\u5f97\u3057\u3084\u3059\u3044\u3002\u52d5\u304f\u30b3\u30fc\u30c9\u304c\u5148\u306b\u3042\u308b\u3053\u3068\u3067\u3001With\u3078\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u524d\u5f8c\u3067\u52d5\u4f5c\u3092\u6bd4\u8f03\u3067\u304d\u308b\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;\">\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u306e\u30b3\u30c4<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u65e2\u5b58\u306eVBA\u30b3\u30fc\u30c9\u3092With\u3067\u6574\u7406\u3059\u308b\uff08\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\uff09\u969b\u306f\u3001\u307e\u305a\u540c\u4e00\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\uff08Range(\"A1\")\u306a\u3069\uff09\u3092\u691c\u7d22\u3057\u3066\u3001\u4f55\u56de\u767b\u5834\u3059\u308b\u304b\u6570\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u30025\u56de\u4ee5\u4e0a\u7e70\u308a\u8fd4\u3055\u308c\u3066\u3044\u308c\u3070With\u306b\u66f8\u304d\u63db\u3048\u308b\u4fa1\u5024\u304c\u3042\u308a\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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-11\"><\/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;\">11<\/span>\n  <span class=\"section-label\" style=\"display:block;\">CLAUDE CODE \u00d7 VBA<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Claude Code\u306bVBA With\u3092\u66f8\u304b\u305b\u308b\u65b9\u6cd5<\/span>\n  <span class=\"section-desc\">AI\u3092\u4f7f\u3063\u305fVBA\u30b3\u30fc\u30c9\u81ea\u52d5\u751f\u6210\u306e\u5b9f\u8df5\u30d7\u30ed\u30f3\u30d7\u30c8\u96c6<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306eWith\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u542b\u3080\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u3001\u6bce\u56de\u81ea\u5206\u3067\u4e00\u304b\u3089\u66f8\u304f\u306e\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<strong>Claude Code<\/strong>\uff08Anthropic\u304c\u63d0\u4f9b\u3059\u308bAI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\uff09\u3092\u6d3b\u7528\u3059\u308c\u3070\u3001\u696d\u52d9\u8981\u4ef6\u3092\u65e5\u672c\u8a9e\u3067\u4f1d\u3048\u308b\u3060\u3051\u3067With\u3092\u6b63\u3057\u304f\u4f7f\u3063\u305fVBA\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306b\u5f0a\u793e\u3067\u306f\u3001\u65b0\u3057\u3044Excel\u30de\u30af\u30ed\u306e\u521d\u7a3f\u306f<strong>\u307b\u307c\u3059\u3079\u3066Claude Code\u306b\u751f\u6210\u3055\u305b\u3066\u3044\u307e\u3059<\/strong>\u3002\u751f\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3092\u30d9\u30fc\u30b9\u306b\u3001\u696d\u52d9\u306e\u7d30\u304b\u3044\u6761\u4ef6\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3044\u3046\u6d41\u308c\u304c\u6700\u3082\u52b9\u7387\u7684\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">11-1. Claude Code\u3078\u306e\u52b9\u679c\u7684\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u306bVBA With\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3055\u305b\u308b\u3068\u304d\u306f\u3001\u300c<strong>\u4f55\u3092\u3057\u305f\u3044\u304b\uff08\u76ee\u7684\uff09<\/strong>\u300d\u300c<strong>\u5bfe\u8c61\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30bb\u30eb\u7bc4\u56f2\u30fb\u30b7\u30fc\u30c8\u30fb\u30b0\u30e9\u30d5\u306a\u3069\uff09<\/strong>\u300d\u300c<strong>\u8a2d\u5b9a\u3057\u305f\u3044\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u300d\u3092\u5177\u4f53\u7684\u306b\u4f1d\u3048\u308b\u3068\u7cbe\u5ea6\u304c\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"point-box\">\n  <div class=\"point-title\">\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b1\uff1a\u30bb\u30eb\u66f8\u5f0f\u8a2d\u5b9a<\/div>\n  <p>Excel\u306eVBA\u3067\u3001\u30bb\u30eb\u7bc4\u56f2A1:G1\u3092\u30d8\u30c3\u30c0\u30fc\u884c\u3068\u3057\u3066\u66f8\u5f0f\u8a2d\u5b9a\u3059\u308b\u30de\u30af\u30ed\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br>\u6761\u4ef6\uff1a\u30d5\u30a9\u30f3\u30c8\u306f\u6e38\u30b4\u30b7\u30c3\u30af\u30fb\u30b5\u30a4\u30ba12\u30fb\u767d\u30fb\u592a\u5b57\u3001\u80cc\u666f\u8272\u306fRGB(17,94,89)\u3001\u884c\u9ad8\u305530\u3001\u6a2a\u30fb\u7e26\u65b9\u5411\u3068\u3082\u306b\u4e2d\u592e\u63c3\u3048\u3002<br>With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u6d3b\u7528\u3057\u3066\u30cd\u30b9\u30c8\u3092\u4f7f\u3044\u3001\u6574\u7406\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"point-box\">\n  <div class=\"point-title\">\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b2\uff1a\u30b7\u30fc\u30c8\u5168\u4f53\u306e\u66f8\u5f0f\u7d71\u4e00<\/div>\n  <p>VBA\u3067\u3001\u30d6\u30c3\u30af\u5185\u306e\u5168\u30b7\u30fc\u30c8\u306b\u5bfe\u3057\u3066For Each Worksheet\u30eb\u30fc\u30d7\u3092\u4f7f\u3044\u3001\u4ee5\u4e0b\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u30de\u30af\u30ed\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br>\u24601\u884c\u76ee\u3092\u898b\u51fa\u3057\u3068\u3057\u3066\u8272\u30fb\u30d5\u30a9\u30f3\u30c8\u3092\u8a2d\u5b9a \u2461\u5370\u5237\u8a2d\u5b9a\u3067A4\u6a2a\u5411\u304d\u30fb1\u30da\u30fc\u30b8\u306b\u53ce\u3081\u308b \u2462\u30b0\u30ea\u30c3\u30c9\u7dda\u3068\u884c\u5217\u898b\u51fa\u3057\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u3002<br>With\u306e\u30cd\u30b9\u30c8\u3092\u9069\u5207\u306b\u6d3b\u7528\u3057\u3001Application.ScreenUpdating = False\u3067\u9ad8\u901f\u5316\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"point-box\">\n  <div class=\"point-title\">\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b3\uff1a\u30a8\u30e9\u30fc\u51e6\u7406\u4ed8\u304d\u30b3\u30fc\u30c9<\/div>\n  <p>Excel\u306eVBA\u3067\u3001\u6307\u5b9a\u3055\u308c\u305f\u30b7\u30fc\u30c8\u304c\u5b58\u5728\u3059\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304b\u3089With\u30d6\u30ed\u30c3\u30af\u3067\u30bb\u30eb\u66f8\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b\u30de\u30af\u30ed\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br>\u30b7\u30fc\u30c8\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306fMsgBox\u3067\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066Exit Sub\u3002\u30b7\u30fc\u30c8\u304c\u898b\u3064\u304b\u3063\u305f\u3089Range(\"A1:D10\")\u306e\u30d5\u30a9\u30f3\u30c8\u30fb\u80cc\u666f\u30fb\u67a0\u7dda\u3092With\u3067\u8a2d\u5b9a\u3002<br>\u30a8\u30e9\u30fc91\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u3001Is Nothing \u30c1\u30a7\u30c3\u30af\u3092\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">11-2. Claude Code\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u306f\u5358\u306b\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u300c\u306a\u305c\u305d\u306e\u30b3\u30fc\u30c9\u3067\u52d5\u304f\u304b\u300d\u306e\u8aac\u660e\u3084\u300c\u3053\u3046\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u300d\u3068\u3044\u3046\u6539\u5584\u63d0\u6848\u3082\u3057\u3066\u304f\u308c\u307e\u3059\u3002VBA\u306e\u5b66\u7fd2\u30c4\u30fc\u30eb\u3068\u3057\u3066\u3082\u975e\u5e38\u306b\u6709\u52b9\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><strong>\u696d\u52d9\u8981\u4ef6\u3092\u65e5\u672c\u8a9e\u3067\u4f1d\u3048\u308b\u3060\u3051\u3067OK<\/strong>\uff1a\u300c\u30cd\u30b9\u30c8\u3057\u305fWith\u3092\u4f7f\u3063\u3066\u300d\u300c\u9ad8\u901f\u5316\u3057\u3066\u300d\u306a\u3069\u306e\u6761\u4ef6\u3082\u6307\u5b9a\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><strong>\u30a8\u30e9\u30fc\u51e6\u7406\u30fb\u30b3\u30e1\u30f3\u30c8\u3082\u540c\u6642\u751f\u6210<\/strong>\uff1a\u300c\u30a8\u30e9\u30fc91\u304c\u51fa\u306a\u3044\u3088\u3046\u306b\u300d\u3068\u6307\u793a\u3059\u308c\u3070\u3001Is Nothing\u30c1\u30a7\u30c3\u30af\u3082\u542b\u3081\u305f\u30b3\u30fc\u30c9\u304c\u51fa\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><strong>\u65e2\u5b58\u30b3\u30fc\u30c9\u306e\u6539\u5584\u63d0\u6848<\/strong>\uff1aWith\u306a\u3057\u306e\u65e2\u5b58\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u300cWith\u3092\u4f7f\u3063\u3066\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u300d\u3068\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><strong>\u30d0\u30b0\u89e3\u6790<\/strong>\uff1a\u300c\u3053\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u884c\u6642\u30a8\u30e9\u30fc91\u304c\u51fa\u308b\u3002\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u3092\u6559\u3048\u3066\u300d\u3068\u3044\u3046\u4f7f\u3044\u65b9\u3082\u6709\u52b9<\/span><\/div>\n\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\">Claude Code\u306fVBA\u306e\u30c7\u30d0\u30c3\u30b0\u306b\u3082\u4f7f\u3048\u307e\u3059\u3002\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30b3\u30fc\u30c9\u3092\u4e00\u7dd2\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u300c\u3053\u306e\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u306f\uff1f\u300d\u3068\u805e\u304f\u3060\u3051\u3067\u3001\u5927\u62b5\u306e\u554f\u984c\u306f\u3059\u3050\u306b\u89e3\u6c7a\u3057\u307e\u3059\u3002VBA\u3092\u899a\u3048\u59cb\u3081\u306e\u6642\u671f\u306b\u7279\u306b\u91cd\u5b9d\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">11-3. Claude Code\u3067\u306e\u5177\u4f53\u7684\u306a\u64cd\u4f5c\u624b\u9806<\/h3>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\">Claude Code\u3092\u8d77\u52d5<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u696d\u52d9\u8981\u4ef6\u3092\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u5165\u529b<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u30b3\u30fc\u30c9\u751f\u6210\u30fb\u78ba\u8a8d<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">VBA\u30a8\u30c7\u30a3\u30bf\u306b\u8cbc\u308a\u4ed8\u3051<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u30c6\u30b9\u30c8\u5b9f\u884c\u30fb\u4fee\u6b63<\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\">\u672c\u756a\u904b\u7528\u958b\u59cb<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u3092\u4f7f\u3046\u306b\u306fAnthropic\u306ePro\u30d7\u30e9\u30f3\uff08\u6708$20\uff09\u4ee5\u4e0a\u306e\u5951\u7d04\u304c\u5fc5\u8981\u3067\u3059\u3002\u8ffd\u52a0\u6599\u91d1\u306a\u3057\u3067Claude Code\u304c\u4f7f\u3048\u308b\u305f\u3081\u3001<strong>VBA\u30b3\u30fc\u30c9\u751f\u6210\u306b\u9650\u3089\u305a\u3001\u30d3\u30b8\u30cd\u30b9\u5168\u822c\u306e\u81ea\u52d5\u5316\u30fb\u6587\u66f8\u4f5c\u6210\u30fb\u30c7\u30fc\u30bf\u5206\u6790\u307e\u3067\u5e45\u5e83\u304f\u6d3b\u7528\u3067\u304d\u307e\u3059<\/strong>\u3002<\/p>\n\n\n\n<div style=\"background:linear-gradient(135deg,#1a1a1a,#2a1015);border-radius:12px;padding:20px 24px;margin:24px 0;display:flex;align-items:center;gap:16px;color:#fff;\">\n  <span style=\"font-size:36px;\">&#127942;<\/span>\n  <div>\n    <div style=\"font-size:13px;color:#dc2626;font-weight:700;letter-spacing:1px;\">VERDICT<\/div>\n    <div style=\"font-size:18px;font-weight:800;\">Claude \u306b\u8ecd\u914d<\/div>\n    <div style=\"font-size:14px;color:rgba(255,255,255,0.7);margin-top:4px;\">VBA\u306eWith\u30b3\u30fc\u30c9\u3092\u30bc\u30ed\u304b\u3089\u66f8\u304f\u6642\u9593\u3092\u3001Claude Code\u3078\u306e\u4f9d\u983c\u6642\u9593\uff085\u301c10\u5206\uff09\u306b\u7f6e\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u3001\u751f\u7523\u6027\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3059\u308b\u3002<\/div>\n  <\/div>\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>Claude Code<\/strong>\uff1aAnthropic\u306eAI\u30e2\u30c7\u30eb\u300cClaude\u300d\u3092\u6d3b\u7528\u3057\u305f\u30bf\u30fc\u30df\u30ca\u30eb\u578bAI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3002\u30b3\u30fc\u30c9\u306e\u751f\u6210\u30fb\u30c7\u30d0\u30c3\u30b0\u30fb\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3092\u30c1\u30e3\u30c3\u30c8\u5f62\u5f0f\u3067\u4f9d\u983c\u3067\u304d\u308b\u3002VBA\u306b\u9650\u3089\u305a\u3001Python\u30fbJavaScript\u30fbSQL\u30fb\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u591a\u69d8\u306a\u8a00\u8a9e\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793eGENAI\u3067\u306f\u3001Claude Code\u3092\u300c\u3082\u30461\u4eba\u306e\u958b\u767a\u8005\u300d\u3068\u3057\u3066\u4f4d\u7f6e\u3065\u3051\u3066\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u3002VBA\u30de\u30af\u30ed\u306e\u4f9d\u983c\u30fbExcel\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u7d71\u4e00\u30fb\u696d\u52d9\u30d5\u30ed\u30fc\u81ea\u52d5\u5316\u30b3\u30fc\u30c9\u306e\u4f5c\u6210\u307e\u3067\u3001AI\u304c\u521d\u7a3f\u3092\u51fa\u3057\u3066\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u3068\u3044\u3046\u6d41\u308c\u304c\u5b9a\u7740\u3057\u3066\u3044\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\">VBA\u306f\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u9ad8\u3044\u3068\u601d\u308f\u308c\u304c\u3061\u3067\u3059\u304c\u3001Claude Code\u3068\u7d44\u307f\u5408\u308f\u305b\u308c\u3070\u300c\u52d5\u304f\u30b3\u30fc\u30c9\u300d\u3092\u5373\u5ea7\u306b\u624b\u306b\u5165\u308c\u3066\u3001\u305d\u3053\u304b\u3089\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300c\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u306a\u3044\u304b\u3089\u81ea\u52d5\u5316\u3067\u304d\u306a\u3044\u300d\u3068\u3044\u3046\u6642\u4ee3\u306f\u7d42\u308f\u3063\u3066\u3044\u307e\u3059\u3002<\/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. VBA With \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306fExcel\u4ee5\u5916\u3067\u3082\u4f7f\u3048\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u306f\u3044\u3001VBA\u3092\u642d\u8f09\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306eOffice\u30a2\u30d7\u30ea\uff08Word\u30fbAccess\u30fbPowerPoint\u30fbOutlook\uff09\u3067With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u4f7f\u3048\u307e\u3059\u3002\u305f\u3068\u3048\u3070Word\u3067\u306f\u6bb5\u843d\u66f8\u5f0f\u30fb\u30da\u30fc\u30b8\u8a2d\u5b9a\u306e\u4e00\u62ec\u6307\u5b9a\u3001Access\u3067\u306f\u30d5\u30a9\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u8a2d\u5b9a\u306a\u3069\u306bWith\u304c\u6d3b\u7528\u3055\u308c\u307e\u3059\u3002Office\u30a2\u30d7\u30ea\u9593\u3067\u30b3\u30fc\u30c9\u3092\u79fb\u690d\u3059\u308b\u969b\u3082\u3001With\u306e\u4f7f\u3044\u65b9\u306f\u540c\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. With \u3068 End With \u306e\u9593\u306b Exit Sub \u3084 GoTo \u3092\u5165\u308c\u3066\u3082\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. Exit Sub \u306fWith\u30d6\u30ed\u30c3\u30af\u306e\u9014\u4e2d\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001GoTo\u3067With\u30d6\u30ed\u30c3\u30af\u306e\u5916\u306b\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u5834\u5408\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002GoTo\u3067With\u30d6\u30ed\u30c3\u30af\u3092\u9014\u4e2d\u3067\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u3068\u3001\u5185\u90e8\u72b6\u614b\u304c\u4e0d\u5b9a\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u306f\u300cWith\u30d6\u30ed\u30c3\u30af\u306b\u306f\u5165\u308b\u524d\u306b\u6761\u4ef6\u5206\u5c90\u3057\u3001\u30d6\u30ed\u30c3\u30af\u5185\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u8a2d\u5b9a\u3060\u3051\u306b\u3059\u308b\u300d\u8a2d\u8a08\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. With\u3092\u4f7f\u3046\u3068\u30b3\u30fc\u30c9\u304c\u901f\u304f\u306a\u308b\u3068\u805e\u304d\u307e\u3057\u305f\u304c\u672c\u5f53\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u5927\u91cf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\u3067\u306f\u82e5\u5e72\u306e\u9ad8\u901f\u5316\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002\u7406\u7531\u306f\u3001VBA\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u3092\u8a55\u4fa1\u3059\u308b\u56de\u6570\u304c\u6e1b\u308b\u305f\u3081\u3067\u3059\u3002\u305f\u3060\u3057\u73fe\u4ee3\u306ePC\u3067\u306f\u6570\u30df\u30ea\u79d2\u306e\u5dee\u306b\u904e\u304e\u306a\u3044\u3053\u3068\u3082\u591a\u304f\u3001\u5927\u304d\u306a\u901f\u5ea6\u6539\u5584\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fApplication.ScreenUpdating = False\u3084Application.Calculation = xlCalculationManual\u306e\u65b9\u304c\u52b9\u679c\u7684\u3067\u3059\u3002With\u306e\u4e3b\u306a\u30e1\u30ea\u30c3\u30c8\u306f\u3042\u304f\u307e\u3067\u300c\u53ef\u8aad\u6027\u306e\u5411\u4e0a\u300d\u3068\u300c\u4fdd\u5b88\u306e\u3057\u3084\u3059\u3055\u300d\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. WithEvents\u3068With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306f\u3069\u3046\u9055\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u307e\u3063\u305f\u304f\u5225\u306e\u6a5f\u80fd\u3067\u3059\u3002With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff08With\u301cEnd With\uff09\u306f\u300c\u540c\u4e00\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u3092\u7701\u7565\u3059\u308b\u69cb\u6587\u300d\u3067\u3001\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185\u3067\u4f7f\u3044\u307e\u3059\u3002\u4e00\u65b9\u306eWithEvents\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u6355\u6349\u3067\u304d\u308b\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u300d\u3067\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5ba3\u8a00\u30bb\u30af\u30b7\u30e7\u30f3\uff08Dim\u884c\uff09\u306b\u66f8\u304d\u307e\u3059\u3002\u540d\u524d\u306bWith\u304c\u4ed8\u3044\u3066\u3044\u308b\u305f\u3081\u6df7\u540c\u3055\u308c\u307e\u3059\u304c\u3001\u7528\u9014\u3082\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u5834\u6240\u3082\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u30cd\u30b9\u30c8\u3057\u305fWith\u3067End With\u306e\u6570\u3092\u9593\u9055\u3048\u308b\u3068\u3069\u3046\u306a\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. End With\u304c\u5c11\u306a\u3044\uff08\u958b\u3044\u305f\u307e\u307e\u306eWith\u304c\u6b8b\u308b\uff09\u5834\u5408\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u300cEnd With\u306e\u306a\u3044\u30d6\u30ed\u30c3\u30af\u3067\u3059\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u9006\u306bEnd With\u304c\u591a\u3059\u304e\u308b\uff08\u5bfe\u5fdc\u3059\u308bWith\u304c\u306a\u3044\uff09\u5834\u5408\u3082\u540c\u69d8\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002VBA\u30a8\u30c7\u30a3\u30bf\u306fWith\u3068End With\u306e\u5bfe\u5fdc\u3092\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u3001\u5b9f\u884c\u524d\u306b\u30c7\u30d0\u30c3\u30b0\u2192\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u4e8b\u524d\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. Claude Code\u3067VBA\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u5834\u5408\u3001Pro\u30d7\u30e9\u30f3\u3067\u8db3\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u306f\u3044\u3001Pro\u30d7\u30e9\u30f3\uff08\u6708$20\uff09\u3067Claude Code\u304c\u5229\u7528\u3067\u304d\u3001VBA\u30b3\u30fc\u30c9\u306e\u751f\u6210\u306b\u5341\u5206\u306a\u4f7f\u7528\u91cf\u304c\u3042\u308a\u307e\u3059\u3002\u65e5\u5e38\u7684\u306bVBA\u30de\u30af\u30ed\u306e\u751f\u6210\u30fb\u6539\u5584\u30fb\u30c7\u30d0\u30c3\u30b0\u3092AI\u306b\u4f9d\u983c\u3059\u308b\u7a0b\u5ea6\u3067\u3042\u308c\u3070\u3001Pro\u30d7\u30e9\u30f3\u3067\u554f\u984c\u306a\u304f\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u30571\u65e5\u306b\u5927\u91cf\u306e\u30b3\u30fc\u30c9\u751f\u6210\u3084\u8907\u96d1\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u306e\u81ea\u52d5\u5316\u3092\u4e26\u884c\u3057\u3066\u884c\u3046\u5834\u5408\u306f\u3001Max 5x\u30d7\u30e9\u30f3\uff08\u6708$100\uff09\u4ee5\u4e0a\u3092\u691c\u8a0e\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\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\": \"VBA With \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306fExcel\u4ee5\u5916\u3067\u3082\u4f7f\u3048\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u306f\u3044\u3001VBA\u3092\u642d\u8f09\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306eOffice\u30a2\u30d7\u30ea\uff08Word\u30fbAccess\u30fbPowerPoint\u30fbOutlook\uff09\u3067With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u4f7f\u3048\u307e\u3059\u3002\u305f\u3068\u3048\u3070Word\u3067\u306f\u6bb5\u843d\u66f8\u5f0f\u30fb\u30da\u30fc\u30b8\u8a2d\u5b9a\u306e\u4e00\u62ec\u6307\u5b9a\u3001Access\u3067\u306f\u30d5\u30a9\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u8a2d\u5b9a\u306a\u3069\u306bWith\u304c\u6d3b\u7528\u3055\u308c\u307e\u3059\u3002Office\u30a2\u30d7\u30ea\u9593\u3067\u30b3\u30fc\u30c9\u3092\u79fb\u690d\u3059\u308b\u969b\u3082\u3001With\u306e\u4f7f\u3044\u65b9\u306f\u540c\u3058\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"With \u3068 End With \u306e\u9593\u306b Exit Sub \u3084 GoTo \u3092\u5165\u308c\u3066\u3082\u3044\u3044\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Exit Sub \u306fWith\u30d6\u30ed\u30c3\u30af\u306e\u9014\u4e2d\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001GoTo\u3067With\u30d6\u30ed\u30c3\u30af\u306e\u5916\u306b\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u5834\u5408\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002GoTo\u3067With\u30d6\u30ed\u30c3\u30af\u3092\u9014\u4e2d\u3067\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u3068\u3001\u5185\u90e8\u72b6\u614b\u304c\u4e0d\u5b9a\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u306f\u300cWith\u30d6\u30ed\u30c3\u30af\u306b\u306f\u5165\u308b\u524d\u306b\u6761\u4ef6\u5206\u5c90\u3057\u3001\u30d6\u30ed\u30c3\u30af\u5185\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u8a2d\u5b9a\u3060\u3051\u306b\u3059\u308b\u300d\u8a2d\u8a08\u304c\u5b89\u5168\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"With\u3092\u4f7f\u3046\u3068\u30b3\u30fc\u30c9\u304c\u901f\u304f\u306a\u308b\u3068\u805e\u304d\u307e\u3057\u305f\u304c\u672c\u5f53\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u5927\u91cf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\u3067\u306f\u82e5\u5e72\u306e\u9ad8\u901f\u5316\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002\u7406\u7531\u306f\u3001VBA\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u3092\u8a55\u4fa1\u3059\u308b\u56de\u6570\u304c\u6e1b\u308b\u305f\u3081\u3067\u3059\u3002\u305f\u3060\u3057\u73fe\u4ee3\u306ePC\u3067\u306f\u6570\u30df\u30ea\u79d2\u306e\u5dee\u306b\u904e\u304e\u306a\u3044\u3053\u3068\u3082\u591a\u304f\u3001\u5927\u304d\u306a\u901f\u5ea6\u6539\u5584\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fApplication.ScreenUpdating = False\u3084Application.Calculation = xlCalculationManual\u306e\u65b9\u304c\u52b9\u679c\u7684\u3067\u3059\u3002With\u306e\u4e3b\u306a\u30e1\u30ea\u30c3\u30c8\u306f\u3042\u304f\u307e\u3067\u300c\u53ef\u8aad\u6027\u306e\u5411\u4e0a\u300d\u3068\u300c\u4fdd\u5b88\u306e\u3057\u3084\u3059\u3055\u300d\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"WithEvents\u3068With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306f\u3069\u3046\u9055\u3044\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u307e\u3063\u305f\u304f\u5225\u306e\u6a5f\u80fd\u3067\u3059\u3002With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff08With\u301cEnd With\uff09\u306f\u300c\u540c\u4e00\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u3092\u7701\u7565\u3059\u308b\u69cb\u6587\u300d\u3067\u3001\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185\u3067\u4f7f\u3044\u307e\u3059\u3002\u4e00\u65b9\u306eWithEvents\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u6355\u6349\u3067\u304d\u308b\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u300d\u3067\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5ba3\u8a00\u30bb\u30af\u30b7\u30e7\u30f3\uff08Dim\u884c\uff09\u306b\u66f8\u304d\u307e\u3059\u3002\u540d\u524d\u306bWith\u304c\u4ed8\u3044\u3066\u3044\u308b\u305f\u3081\u6df7\u540c\u3055\u308c\u307e\u3059\u304c\u3001\u7528\u9014\u3082\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u5834\u6240\u3082\u7570\u306a\u308a\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u30cd\u30b9\u30c8\u3057\u305fWith\u3067End With\u306e\u6570\u3092\u9593\u9055\u3048\u308b\u3068\u3069\u3046\u306a\u308a\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"End With\u304c\u5c11\u306a\u3044\uff08\u958b\u3044\u305f\u307e\u307e\u306eWith\u304c\u6b8b\u308b\uff09\u5834\u5408\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u300cEnd With\u306e\u306a\u3044\u30d6\u30ed\u30c3\u30af\u3067\u3059\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u9006\u306bEnd With\u304c\u591a\u3059\u304e\u308b\uff08\u5bfe\u5fdc\u3059\u308bWith\u304c\u306a\u3044\uff09\u5834\u5408\u3082\u540c\u69d8\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002VBA\u30a8\u30c7\u30a3\u30bf\u306fWith\u3068End With\u306e\u5bfe\u5fdc\u3092\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u3001\u5b9f\u884c\u524d\u306b\u30c7\u30d0\u30c3\u30b0\u2192\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u4e8b\u524d\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Claude Code\u3067VBA\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u5834\u5408\u3001Pro\u30d7\u30e9\u30f3\u3067\u8db3\u308a\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u306f\u3044\u3001Pro\u30d7\u30e9\u30f3\uff08\u6708$20\uff09\u3067Claude Code\u304c\u5229\u7528\u3067\u304d\u3001VBA\u30b3\u30fc\u30c9\u306e\u751f\u6210\u306b\u5341\u5206\u306a\u4f7f\u7528\u91cf\u304c\u3042\u308a\u307e\u3059\u3002\u65e5\u5e38\u7684\u306bVBA\u30de\u30af\u30ed\u306e\u751f\u6210\u30fb\u6539\u5584\u30fb\u30c7\u30d0\u30c3\u30b0\u3092AI\u306b\u4f9d\u983c\u3059\u308b\u7a0b\u5ea6\u3067\u3042\u308c\u3070\u3001Pro\u30d7\u30e9\u30f3\u3067\u554f\u984c\u306a\u304f\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u30571\u65e5\u306b\u5927\u91cf\u306e\u30b3\u30fc\u30c9\u751f\u6210\u3084\u8907\u96d1\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u306e\u81ea\u52d5\u5316\u3092\u4e26\u884c\u3057\u3066\u884c\u3046\u5834\u5408\u306f\u3001Max 5x\u30d7\u30e9\u30f3\uff08\u6708$100\uff09\u4ee5\u4e0a\u3092\u691c\u8a0e\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002\"\n      }\n    }\n  ]\n}\n<\/script>\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=cc-vba-with&#038;blog_slug=cc-vba-with\" 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=cc-vba-with&#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<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\uff1aVBA With \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u696d\u52d9\u52b9\u7387\u3092\u4e0a\u3052\u3088\u3046<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001VBA\u306eWith\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306b\u3064\u3044\u3066\u57fa\u790e\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\u3057\u307e\u3057\u305f\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>With\u306e\u57fa\u672c<\/strong>\uff1aWith\u301cEnd With\u3067\u540c\u4e00\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u3092\u7701\u7565\u3057\u3001\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u91cf\u309230\u301c60%\u524a\u6e1b\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><strong>Excel\u5b9f\u8df5<\/strong>\uff1a\u30bb\u30eb\u66f8\u5f0f\u30fb\u30b0\u30e9\u30d5\u8a2d\u5b9a\u30fb\u30b7\u30fc\u30c8\u66f8\u5f0f\u3092With\u3067\u6574\u7406\u3059\u308b\u3068\u4fdd\u5b88\u6027\u304c\u5927\u5e45\u306b\u4e0a\u304c\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><strong>Word\u5b9f\u8df5<\/strong>\uff1a\u6bb5\u843d\u66f8\u5f0f\u30fb\u30da\u30fc\u30b8\u8a2d\u5b9a\u306a\u3069\u306eWord VBA\u3082With\u304c\u5a01\u529b\u3092\u767a\u63ee\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><strong>\u30cd\u30b9\u30c8<\/strong>\uff1a2\u301c3\u968e\u5c64\u306e\u30cd\u30b9\u30c8\u3092\u6b63\u3057\u304f\u4f7f\u3048\u3070\u968e\u5c64\u69cb\u9020\u304c\u8996\u899a\u7684\u306b\u5206\u304b\u308b\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><strong>WithEvents<\/strong>\uff1aWith\u3068\u306f\u5225\u7269\u3002\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u6355\u6349\u3059\u308b\u30ad\u30fc\u30ef\u30fc\u30c9<\/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>\u30a8\u30e9\u30fc\u5bfe\u51e6<\/strong>\uff1a\u30a8\u30e9\u30fc91\u306fSet\u3057\u5fd8\u308c\u30fb\u30a8\u30e9\u30fc424\u306f\u30c9\u30c3\u30c8\u629c\u3051\u304c\u4e3b\u306a\u539f\u56e0<\/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>With + Loop<\/strong>\uff1aFor Each \/ For Next \/ Do While\u3068With\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u5927\u91cf\u884c\u51e6\u7406\u3092\u52b9\u7387\u5316\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><strong>Claude Code\u6d3b\u7528<\/strong>\uff1aWith\u3092\u4f7f\u3063\u305fVBA\u30b3\u30fc\u30c9\u306e\u751f\u6210\u30fb\u30c7\u30d0\u30c3\u30b0\u30fb\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3092AI\u306b\u4efb\u305b\u308b\u3053\u3068\u3067\u5de5\u6570\u3092\u5927\u5e45\u524a\u6e1b\u3067\u304d\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306f\u3001VBA\u3092\u300c\u52d5\u304f\u30b3\u30fc\u30c9\u300d\u304b\u3089\u300c\u8aad\u307f\u3084\u3059\u304f\u30fb\u76f4\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u300d\u306b\u9032\u5316\u3055\u305b\u308b\u7b2c\u4e00\u6b69\u3067\u3059\u3002\u307e\u305a\u306f\u65e2\u5b58\u306e\u30de\u30af\u30ed\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3001\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u304c\u7e70\u308a\u8fd4\u3055\u308c\u3066\u3044\u308b\u7b87\u6240\u3092With\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u3066\u307f\u3066\u304f\u3060\u3055\u3044\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\u7fd2\u5f97\u306f\u6700\u521d\u306e\u4e00\u6b69\u304c\u96e3\u3057\u3044\u3067\u3059\u304c\u3001With\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u6642\u70b9\u3067\u30b3\u30fc\u30c9\u306e\u8cea\u304c\u660e\u3089\u304b\u306b\u5909\u308f\u308a\u307e\u3059\u3002\u696d\u52d9\u52b9\u7387\u5316\u30de\u30af\u30ed\u306b\u53d6\u308a\u7d44\u3080\u306a\u3089\u3001\u305c\u3072Claude Code\u3082\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u30b3\u30fc\u30c9\u751f\u6210\u306e\u58c1\u304c\u306a\u304f\u306a\u308b\u3068\u3001\u81ea\u52d5\u5316\u30a2\u30a4\u30c7\u30a2\u3092\u3069\u3093\u3069\u3093\u5f62\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\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\">\u300cVBA\u306f\u53e4\u3044\u6280\u8853\u300d\u3068\u3044\u3046\u58f0\u3082\u3042\u308a\u307e\u3059\u304c\u3001Excel\u3084Word\u304c\u696d\u52d9\u306e\u4e2d\u5fc3\u3067\u3042\u308b\u65e5\u672c\u4f01\u696d\u3067\u306f\u3001VBA\u306e\u9700\u8981\u306f\u307e\u3060\u307e\u3060\u9ad8\u3044\u3067\u3059\u3002With\u3092\u306f\u3058\u3081\u3068\u3059\u308b\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u62bc\u3055\u3048\u305f\u30b3\u30fc\u30c9\u306f\u3001AI\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3055\u3089\u306b\u5f37\u529b\u306a\u696d\u52d9\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u5f0a\u793e\u304c\u63d0\u4f9b\u3059\u308b<a href=\"https:\/\/genai-ai.co.jp\/ai-kanri\/\" style=\"color:#dc2626;font-weight:700;\">AI\u9b3c\u7ba1\u7406\uff08\u682a\u5f0f\u4f1a\u793eGENAI\uff09<\/a>\u306e\u30b5\u30fc\u30d3\u30b9\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002VBA\u3092\u306f\u3058\u3081\u3068\u3059\u308b\u696d\u52d9\u81ea\u52d5\u5316\u306e\u5c0e\u5165\u652f\u63f4\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9 01VBA With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f 02With\u306a\u3057\u3068\u3042\u308a\u306e\u30b3\u30fc\u30c9\u6bd4\u8f03 03With\u306e\u57fa\u672c\u69cb\u6587\uff08End With\u30fb\u30cd\u30b9\u30c8\u69cb\u9020\uff09 04Excel\u3067\u306e\u5b9f\u8df5\u4f8b\uff08\u30bb\u30eb\u66f8\u5f0f\u30fb\u30d5\u30a9\u30f3\u30c8\u4e00\u62ec\u8a2d\u5b9a\uff09 05Word\u3067\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18258,"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":"VBA\u306eWith\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u57fa\u790e\u304b\u3089\u5b8c\u5168\u89e3\u8aac\u3002With\u306a\u3057\/\u3042\u308a\u306e\u6bd4\u8f03\u30fb\u30cd\u30b9\u30c8\uff08\u5165\u308c\u5b50\uff09\u306e\u4f7f\u3044\u65b9\u30fbExcel\u30bb\u30eb\u66f8\u5f0f\u8a2d\u5b9a\u30fbWordVBA\u30fbWithEvents\u30ad\u30fc\u30ef\u30fc\u30c9\u30fb\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u5bfe\u51e6\u30fbLoop\u3068\u306e\u7d44\u307f\u5408\u308f\u305b\u307e\u3067\u3002Claude Code\u3067VBA\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u65b9\u6cd5\u3082\u7d39\u4ecb\u3002","rank_math_focus_keyword":"VBA With","rank_math_title":"\u30102026\u5e747\u6708\u6700\u65b0\u3011VBA With\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u5165\u308c\u5b50(\u30cd\u30b9\u30c8)\u30fbExcel\/Word\u5b9f\u8df5\u4f8b\u30fb\u30a8\u30e9\u30fc\u5bfe\u51e6\u307e\u3067","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":[3],"tags":[],"class_list":["post-18259","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-automation"],"_links":{"self":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/18259","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=18259"}],"version-history":[{"count":1,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/18259\/revisions"}],"predecessor-version":[{"id":18260,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/18259\/revisions\/18260"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media\/18258"}],"wp:attachment":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media?parent=18259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/categories?post=18259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/tags?post=18259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}