{"id":25819,"date":"2026-08-02T02:51:42","date_gmt":"2026-08-01T17:51:42","guid":{"rendered":"https:\/\/genai-ai.co.jp\/ai-kanri\/?p=25819"},"modified":"2026-08-02T02:51:42","modified_gmt":"2026-08-01T17:51:42","slug":"vba-set-statement","status":"publish","type":"post","link":"https:\/\/genai-ai.co.jp\/ai-kanri\/blog\/vba-set-statement\/","title":{"rendered":"\u30102026\u5e748\u6708\u6700\u65b0\u3011VBA\u306eSet\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f\uff1f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306e\u4f5c\u308a\u65b9\u30fb\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac"},"content":{"rendered":"\n<style>\n.g-flow-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;align-items:center;}\n.g-flow-item{background:linear-gradient(135deg,#1a1a1a,#2a1015);color:#fff;border-radius:8px;padding:16px 14px;min-width:130px;flex:1;text-align:center;}\n.g-flow-arrow{color:#dc2626;font-size:20px;font-weight:700;}\n.g-card-row{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 32px;}\n.g-card-row>div{flex:1;min-width:220px;}\n@media(max-width:600px){\n  .g-flow-row{flex-direction:column;}\n  .g-flow-arrow{transform:rotate(90deg);}\n  .g-card-row{flex-direction:column;}\n  .g-card-row>div{min-width:100%;}\n}\n<\/style>\n\n\n\n<div style=\"margin:0 0 32px;\">\n  <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/08\/thumb-vba-set-statement.jpg\" alt=\"\u30102026\u5e748\u6708\u6700\u65b0\u3011VBA\u306eSet\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f\uff1f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306e\u4f5c\u308a\u65b9\u30fb\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac\" 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>Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f\u4f55\u304b<\/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>Set\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u57fa\u672c\u624b\u9806<\/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>Workbook\u30fbWorksheet\u30fbRange\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f7f\u3044\u65b9<\/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>Nothing\u3067\u53c2\u7167\u3092\u89e3\u653e\u3059\u308b\u91cd\u8981\u6027<\/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>\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u51e6\u6cd5<\/a><\/li>\n    <li><a href=\"#sec-06\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">06<\/span>\u3010\u72ec\u81ea\u30c7\u30fc\u30bf\u3011GENAI\u793e\u5185\u3067\u306eExcel\/VBA\u696d\u52d9\u524a\u6e1b\u5b9f\u7e3e<\/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>\u3010\u72ec\u81ea\u3011VBA\u306e\u9650\u754c\u3068AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3088\u308b\u6b21\u4e16\u4ee3\u306e\u81ea\u52d5\u5316<\/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>\u307e\u3068\u3081<\/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\">Excel VBA\u3067\u30de\u30af\u30ed\u3092\u66f8\u304d\u59cb\u3081\u308b\u3068\u3001\u5fc5\u305a\u3068\u8a00\u3063\u3066\u3044\u3044\u307b\u3069\u3076\u3064\u304b\u308b\u58c1\u304c\u300c<strong>Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u300d\u3067\u3059\u3002\u300c\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3060\u3051\u306a\u306e\u306b\u3001\u306a\u305c<code>=<\/code>\u3060\u3051\u3058\u3083\u30c0\u30e1\u306a\u306e\uff1f\u300d\u300c<code>Set<\/code>\u3092\u66f8\u304d\u5fd8\u308c\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u300d\u2014\u2014\u3053\u306e\u3088\u3046\u306a\u7591\u554f\u30fb\u3064\u307e\u305a\u304d\u3092\u6301\u3063\u3066\u691c\u7d22\u3057\u3066\u3044\u308b\u65b9\u304c\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d50\u8ad6\u304b\u3089\u3044\u3046\u3068\u3001Set\u306f<strong>\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3092\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u3068\u304d\u3060\u3051\u5fc5\u8981\u306b\u306a\u308b\u7279\u5225\u306a\u4ee3\u5165\u65b9\u6cd5<\/strong>\u3067\u3059\u3002\u6570\u5024\u3084\u6587\u5b57\u5217\u306e\u3088\u3046\u306a\u666e\u901a\u306e\u5024\u3068\u306f\u4ee3\u5165\u306e\u30eb\u30fc\u30eb\u304c\u9055\u3046\u305f\u3081\u3001\u6700\u521d\u306b\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3001\u3042\u3068\u3067\u539f\u56e0\u4e0d\u660e\u306e\u30a8\u30e9\u30fc\u306b\u60a9\u307e\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<strong>Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u57fa\u672c\u6587\u6cd5\u304b\u3089\u3001Workbook\u30fbWorksheet\u30fbRange\u3068\u3044\u3063\u305f\u4e3b\u8981\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306e\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9\u3001Nothing\u306b\u3088\u308b\u53c2\u7167\u89e3\u653e\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5<\/strong>\u307e\u3067\u3001VBA\u521d\u5fc3\u8005\u306e\u65b9\u304c\u8ff7\u308f\u306a\u3044\u3088\u3046\u306b\u9806\u3092\u8ffd\u3063\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u52a0\u3048\u3066\u3001\u5f0a\u793e\uff08\u682a\u5f0f\u4f1a\u793eGENAI\uff09\u304c\u5b9f\u969b\u306bExcel\/VBA\u95a2\u9023\u306e\u696d\u52d9\u3092AI\u3067\u3069\u3053\u307e\u3067\u52b9\u7387\u5316\u3057\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u5b9f\u30c7\u30fc\u30bf\u3001\u305d\u3057\u3066VBA\u3060\u3051\u306b\u983c\u3089\u306a\u3044\u6b21\u4e16\u4ee3\u306e\u696d\u52d9\u81ea\u52d5\u5316\u306e\u8003\u3048\u65b9\u307e\u3067\u7d39\u4ecb\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\u306eSet\u306f\u3001\u6700\u521d\u306f\u8ab0\u3067\u3082\u3064\u307e\u305a\u304f\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u79c1\u3082\u6614\u3001\u3053\u306e\u4e00\u6587\u5b57\u3092\u66f8\u304d\u5fd8\u308c\u30661\u6642\u9593\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u65e5\u306f\u305d\u306e\u300c\u306a\u305c\u5fc5\u8981\u304b\u300d\u3092\u6839\u672c\u304b\u3089\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u6574\u7406\u3057\u3066\u3044\u304d\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\">\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001Set\u3092\u300c\u306a\u3093\u3068\u306a\u304f\u66f8\u304f\u300d\u72b6\u614b\u304b\u3089\u300c\u306a\u305c\u3053\u3053\u3067Set\u304c\u5fc5\u8981\u306a\u306e\u304b\u81ea\u5206\u3067\u5224\u65ad\u3067\u304d\u308b\u300d\u72b6\u614b\u306b\u306a\u308c\u307e\u3059\u3002\u5f8c\u534a\u3067\u306f\u3001VBA\u3067\u306e\u81ea\u52d5\u5316\u304c\u3057\u3093\u3069\u304f\u306a\u3063\u3066\u304d\u305f\u3068\u304d\u306e\u6b21\u306e\u4e00\u624b\u306b\u3064\u3044\u3066\u3082\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3092\u6700\u5f8c\u307e\u3067\u8aad\u3080\u3068\u3001\u6b21\u306e\u3053\u3068\u304c\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\u304c\u5fc5\u8981\u306a\u7406\u7531\u3068\u3001\u666e\u901a\u306e\u4ee3\u5165\uff08<code>=<\/code>\u306e\u307f\uff09\u3068\u306e\u9055\u3044<\/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>Dim \u2192 Set \u2192 \u64cd\u4f5c \u2192 Nothing<\/strong>\u3068\u3044\u3046\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6271\u3046\u969b\u306e\u57fa\u672c\u306e\u578b<\/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>Workbook\u30fbWorksheet\u30fbRange<\/strong>\u3068\u3044\u30463\u5927\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\u65b9\u6cd5\u3068\u4f7f\u3044\u5206\u3051<\/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>\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059\u300d\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u300d<\/strong>\u3068\u3044\u3063\u305f\u5178\u578b\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u76f4\u3057\u65b9<\/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>\u5f0a\u793eGENAI\u306e\u5b9f\u904b\u7528\u30c7\u30fc\u30bf<\/strong>\u306b\u57fa\u3065\u304f\u3001Excel\/VBA\u696d\u52d9\u306eAI\u306b\u3088\u308b\u52b9\u7387\u5316\u4e8b\u4f8b<\/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>VBA\u3067\u6d88\u8017\u3057\u306a\u3044\u305f\u3081\u306e\u3001<strong>AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4f7f\u3063\u305f\u6b21\u4e16\u4ee3\u306e\u81ea\u52d5\u5316<\/strong>\u3068\u3044\u3046\u9078\u629e\u80a2<\/span><\/div>\n\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">VBA BASICS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f\u4f55\u304b<\/span>\n  <span class=\"section-desc\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u666e\u901a\u306e\u5024\u3067\u3001\u4ee3\u5165\u306e\u30eb\u30fc\u30eb\u304c\u9055\u3046\u7406\u7531<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u3067\u5909\u6570\u3092\u4f7f\u3046\u3068\u304d\u3001\u591a\u304f\u306e\u65b9\u306f\u6700\u521d\u306b<code>Dim x As Integer<\/code>\u306e\u3088\u3046\u306a\u300c\u6570\u5024\u300d\u3084\u300c\u6587\u5b57\u5217\u300d\u306e\u5909\u6570\u304b\u3089\u5b66\u3073\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5909\u6570\u3078\u306e\u4ee3\u5165\u306f\u3001<code>x = 10<\/code>\u306e\u3088\u3046\u306b\u30a4\u30b3\u30fc\u30eb\u8a18\u53f7\u3060\u3051\u3067\u5b8c\u7d50\u3057\u307e\u3059\u3002\u3068\u3053\u308d\u304c\u3001Excel\u306e\u300c\u30b7\u30fc\u30c8\u300d\u3084\u300c\u30bb\u30eb\u7bc4\u56f2\u300d\u306e\u3088\u3046\u306a<strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u5909\u6570\u306b\u5165\u308c\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u540c\u3058\u66f8\u304d\u65b9\u3067\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306f\u3001VBA\u304c\u300c\u5024\u305d\u306e\u3082\u306e\u3092\u4ee3\u5165\u3059\u308b\u300d\u51e6\u7406\u3068\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\uff08\u4f4f\u6240\u306e\u3088\u3046\u306a\u3082\u306e\uff09\u3092\u4ee3\u5165\u3059\u308b\u300d\u51e6\u7406\u3092\u3001\u610f\u56f3\u7684\u306b\u533a\u5225\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002\u524d\u8005\u306f\u666e\u6bb5\u3069\u304a\u308a\u306e<code>=<\/code>\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u304c\u3001\u5f8c\u8005\u3067\u306f<strong>\u5148\u982d\u306b<code>Set<\/code>\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4ed8\u3051\u308b<\/strong>\u3068\u3044\u3046\u660e\u793a\u7684\u306a\u30eb\u30fc\u30eb\u304c\u5b9a\u3081\u3089\u308c\u3066\u3044\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>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570<\/strong>\uff1aWorkbook\uff08\u30d6\u30c3\u30af\uff09\u3084Worksheet\uff08\u30b7\u30fc\u30c8\uff09\u3001Range\uff08\u30bb\u30eb\u7bc4\u56f2\uff09\u306a\u3069\u3001Excel\u306e\u300c\u30e2\u30ce\u300d\u305d\u306e\u3082\u306e\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u4f7f\u3046\u5909\u6570\u3002\u6570\u5024\u3084\u6587\u5b57\u5217\u3092\u76f4\u63a5\u683c\u7d0d\u3059\u308b\u300c\u5024\u578b\u306e\u5909\u6570\u300d\u3068\u306f\u7570\u306a\u308a\u3001\u5b9f\u4f53\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u304f\u5b9f\u4f53\u3078\u306e\u300c\u53c2\u7167\u300d\u3092\u4fdd\u6301\u3059\u308b\u70b9\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e2\u884c\u3092\u6bd4\u8f03\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u4ee3\u5165\u3057\u305f\u3044\u3082\u306e<\/th><th>\u6b63\u3057\u3044\u66f8\u304d\u65b9<\/th><th>\u9593\u9055\u3048\u305f\u5834\u5408\u306b\u8d77\u304d\u308b\u3053\u3068<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u6570\u5024\u30fb\u6587\u5b57\u5217\u306a\u3069\u306e\u5024<\/td><td><code>x = 10<\/code><br><code>s = \"\u30c6\u30b9\u30c8\"<\/code><\/td><td>Set\u3092\u4ed8\u3051\u308b\u3068\u9006\u306b\u30a8\u30e9\u30fc\u306b\u306a\u308b\uff08\u5024\u306b\u306fSet\u3092\u4f7f\u308f\u306a\u3044\uff09<\/td><\/tr>\n<tr><td>Worksheet\u30fbRange\u30fbWorkbook\u306a\u3069\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td><td><code>Set ws = Worksheets(\"Sheet1\")<\/code><\/td><td>Set\u3092\u7701\u7565\u3059\u308b\u3068\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u306b\u306a\u308a\u3084\u3059\u3044\uff08\u8a73\u7d30\u306f\u7b2c5\u7ae0\uff09<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">1-1. \u306a\u305cSet\u304c\u5fc5\u8981\u306a\u306e\u304b\uff1a\u300c\u5b9f\u4f53\u300d\u3068\u300c\u53c2\u7167\u300d\u306e\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6570\u5024\u5909\u6570\u306b<code>x = 10<\/code>\u3068\u66f8\u304f\u3068\u304d\u3001VBA\u306f\u5909\u6570<code>x<\/code>\u304c\u4f7f\u3046\u30e1\u30e2\u30ea\u9818\u57df\u306b\u300c10\u300d\u3068\u3044\u3046\u5024\u305d\u306e\u3082\u306e\u3092\u305d\u306e\u307e\u307e\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u4e00\u65b9\u3001Excel\u306e\u30b7\u30fc\u30c8\u3084\u30bb\u30eb\u7bc4\u56f2\u306f\u3001VBA\u306e\u4e16\u754c\u306e\u5916\u5074\u306b\u3042\u308b\u300cExcel\u3068\u3044\u3046\u5de8\u5927\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u90e8\u300d\u3067\u3042\u308a\u3001\u5909\u6570\u306e\u4e2d\u306b\u5b9f\u4f53\u3092\u30b3\u30d4\u30fc\u3057\u3066\u6301\u3061\u8fbc\u3080\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067VBA\u306f\u3001\u5b9f\u4f53\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u304f\u300c\u3069\u3053\u306b\u3042\u308b\u304b\u300d\u3068\u3044\u3046<strong>\u53c2\u7167\u60c5\u5831<\/strong>\u3060\u3051\u3092\u5909\u6570\u306b\u6301\u305f\u305b\u308b\u4ed5\u7d44\u307f\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306e\u6b63\u4f53\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u300c\u53c2\u7167\u3092\u6e21\u3059\u300d\u3068\u3044\u3046\u7279\u5225\u306a\u4ee3\u5165\u3060\u304b\u3089\u3053\u305d\u3001VBA\u306f\u66f8\u304d\u624b\u306b\u5bfe\u3057\u3066<code>Set<\/code>\u3068\u3044\u3046\u76ee\u5370\u3092\u8981\u6c42\u3057\u307e\u3059\u3002\u3082\u3057\u76ee\u5370\u304c\u306a\u3051\u308c\u3070\u3001VBA\u306f\u300c\u3053\u308c\u306f\u5024\u306e\u4ee3\u5165\u306a\u306e\u304b\u3001\u53c2\u7167\u306e\u4ee3\u5165\u306a\u306e\u304b\u300d\u3092\u6b63\u3057\u304f\u5224\u65ad\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1-2. \u5177\u4f53\u4f8b\u3067\u898b\u308bSet\u306e\u57fa\u672c\u5f62<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3063\u3068\u3082\u57fa\u672c\u7684\u306a\u5f62\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u30921\u3064\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dim ws As Worksheet<br>Set ws = Worksheets(\"Sheet1\")<br>ws.Range(\"A1\").Value = \"\u3053\u3093\u306b\u3061\u306f\"<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u884c\u76ee\u306e<code>Dim<\/code>\u3067\u300cws\u300d\u3068\u3044\u3046\u540d\u524d\u306eWorksheet\u578b\u306e\u5909\u6570\u3092\u5ba3\u8a00\u3057\u30012\u884c\u76ee\u306e<code>Set<\/code>\u3067\u5b9f\u969b\u306e\u30b7\u30fc\u30c8\uff08Sheet1\uff09\u3078\u306e\u53c2\u7167\u3092\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u30023\u884c\u76ee\u304b\u3089\u306f\u3001\u3042\u305f\u304b\u3082\u300cWorksheets(\"Sheet1\")\u300d\u3068\u76f4\u63a5\u66f8\u3044\u305f\u306e\u3068\u540c\u3058\u3088\u3046\u306b<code>ws<\/code>\u3092\u4f7f\u3063\u3066\u30b7\u30fc\u30c8\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u9577\u3044\u30b7\u30fc\u30c8\u540d\u3084\u30d6\u30c3\u30af\u540d\u3092\u4f55\u5ea6\u3082\u66f8\u304f\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u3001\u30b3\u30fc\u30c9\u304c\u8aad\u307f\u3084\u3059\u304f\u306a\u308b\u306e\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3092\u4f7f\u3046\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1-3. Set\u3092\u5fd8\u308c\u308b\u3068\u3069\u3046\u306a\u308b\u304b\uff08\u5148\u306b\u7d50\u8ad6\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u306b\u7d50\u8ad6\u3060\u3051\u89e6\u308c\u3066\u304a\u304f\u3068\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4ee3\u5165\u3059\u308b\u884c\u3067<code>Set<\/code>\u3092\u66f8\u304d\u5fd8\u308c\u308b\u3068\u3001\u591a\u304f\u306e\u5834\u5408\u306f<strong>\u5b9f\u884c\u6642\u30a8\u30e9\u30fc<\/strong>\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u65e2\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u305f\u306a\u3044Worksheet\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u305d\u306e\u5834\u3067\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u65e2\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3064Range\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\u306f\u3001\u5909\u6570\u306e\u5ba3\u8a00\u65b9\u6cd5\u306b\u3088\u3063\u3066\u6319\u52d5\u304c\u5909\u308f\u308a\u307e\u3059\u3002Object\u3084Variant\u578b\u3067\u53d7\u3051\u3066\u3044\u308b\u5834\u5408\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u300c\u30bb\u30eb\u306e\u5024\u3060\u3051\u300d\u304c\u4ee3\u5165\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u3001Range\u578b\u306a\u3069\u5177\u4f53\u7684\u306a\u578b\u3067\u5ba3\u8a00\u3057\u3066\u3044\u308b\u5834\u5408\u306fNothing\u3078\u306e\u4ee3\u5165\u3068\u307f\u306a\u3055\u308c\u5b9f\u884c\u6642\u30a8\u30e9\u30fc91\u306b\u306a\u308a\u307e\u3059\u3002\u8a73\u3057\u3044\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u306f\u7b2c5\u7ae0\u3067\u6271\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u6700\u521d\u306b\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">Set\u3092\u4ed8\u3051\u308b\u3079\u304d\u304b\u3069\u3046\u304b\u306f\u300c\u4ee3\u5165\u3059\u308b\u53f3\u8fba\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3069\u3046\u304b\u300d\u3067\u6c7a\u307e\u308a\u307e\u3059\u3002\u5de6\u8fba\u306e\u5909\u6570\u540d\u3084\u898b\u305f\u76ee\u3067\u306f\u5224\u65ad\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u8ff7\u3063\u305f\u3089\u300c\u3053\u308c\u306fExcel\u306e\u4e2d\u306e\u201c\u30e2\u30ce\u201d\uff08\u30b7\u30fc\u30c8\u30fb\u30bb\u30eb\u30fb\u30d6\u30c3\u30af\u306a\u3069\uff09\u3092\u6307\u3057\u3066\u3044\u308b\u304b\uff1f\u300d\u3092\u81ea\u554f\u3059\u308b\u306e\u304c\u78ba\u5b9f\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=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">HOW TO USE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Set\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u57fa\u672c\u624b\u9806<\/span>\n  <span class=\"section-desc\">\u300c\u5ba3\u8a00\u2192\u4ee3\u5165\u2192\u64cd\u4f5c\u2192\u89e3\u653e\u300d\u3068\u3044\u3046\u4e00\u9023\u306e\u578b\u3092\u899a\u3048\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u6b63\u3057\u304f\u4f7f\u3046\u306b\u306f\u3001\u5358\u767a\u306e\u66f8\u304d\u65b9\u3092\u899a\u3048\u308b\u3060\u3051\u3067\u306a\u304f\u3001<strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3092\u6271\u3046\u3068\u304d\u306e\u4e00\u9023\u306e\u6d41\u308c<\/strong>\u3092\u578b\u3068\u3057\u3066\u8eab\u306b\u3064\u3051\u308b\u306e\u304c\u8fd1\u9053\u3067\u3059\u3002\u5b9f\u52d9\u3067\u66f8\u304b\u308c\u308bVBA\u30b3\u30fc\u30c9\u306e\u307b\u3068\u3093\u3069\u306f\u3001\u4ee5\u4e0b\u306e4\u30b9\u30c6\u30c3\u30d7\u306e\u7e70\u308a\u8fd4\u3057\u3067\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>\u2460Dim\u5ba3\u8a00<\/strong><br><span style=\"font-size:12px;\">\u5909\u6570\u306e\u578b\u3092<br>\u660e\u793a\u7684\u306b\u6307\u5b9a<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u2461Set\u3067\u4ee3\u5165<\/strong><br><span style=\"font-size:12px;\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e<br>\u53c2\u7167\u3092\u683c\u7d0d<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u2462\u30d7\u30ed\u30d1\u30c6\u30a3\/\u30e1\u30bd\u30c3\u30c9<\/strong><br><span style=\"font-size:12px;\">\u5909\u6570\u7d4c\u7531\u3067<br>\u5b9f\u969b\u306b\u64cd\u4f5c<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u2463Nothing\u3067\u89e3\u653e<\/strong><br><span style=\"font-size:12px;\">\u4e0d\u8981\u306b\u306a\u3063\u305f<br>\u53c2\u7167\u3092\u660e\u793a\u89e3\u653e<\/span><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-1. \u2460Dim\u5ba3\u8a00\uff1a\u578b\u3092\u6c7a\u3081\u308b\u3053\u3068\u3067\u88dc\u5b8c\u3068\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u304c\u52b9\u304f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3092\u4f7f\u3046\u524d\u306b\u3001\u307e\u305a<code>Dim<\/code>\u6587\u3067\u5909\u6570\u306e\u578b\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002\u578b\u306b\u306f\u3001\u6c4e\u7528\u306e<code>Object<\/code>\u578b\u3068\u3001<code>Worksheet<\/code>\u30fb<code>Range<\/code>\u30fb<code>Workbook<\/code>\u3068\u3044\u3063\u305f\u5177\u4f53\u7684\u306a\u578b\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u5ba3\u8a00\u65b9\u6cd5<\/th><th>\u66f8\u304d\u65b9\u306e\u4f8b<\/th><th>\u7279\u5fb4<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u5177\u4f53\u7684\u306a\u578b\u3067\u5ba3\u8a00<\/td><td><code>Dim ws As Worksheet<\/code><\/td><td>VBE\u306e\u5165\u529b\u652f\u63f4\uff08\u30a4\u30f3\u30c6\u30ea\u30bb\u30f3\u30b9\uff09\u304c\u52b9\u304d\u3001\u8aa4\u3063\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3092\u66f8\u304f\u3068\u65e9\u671f\u306b\u30a8\u30e9\u30fc\u3067\u6c17\u3065\u3051\u308b\u3002\u5b9f\u52d9\u3067\u306f\u3053\u3061\u3089\u304c\u57fa\u672c<\/td><\/tr>\n<tr><td>Object\u578b\u3067\u5ba3\u8a00<\/td><td><code>Dim obj As Object<\/code><\/td><td>\u3042\u3089\u3086\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u683c\u7d0d\u3067\u304d\u308b\u4e07\u80fd\u578b\u3060\u304c\u3001\u5165\u529b\u652f\u63f4\u304c\u52b9\u304d\u306b\u304f\u304f\u3001\u5b9f\u884c\u901f\u5ea6\u3082\u308f\u305a\u304b\u306b\u9045\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308b<\/td><\/tr>\n<\/tbody>\n<\/table>\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;\">\u578b\u5ba3\u8a00\u306e\u57fa\u672c\u65b9\u91dd<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u300c\u4f55\u304c\u5165\u308b\u304b\u5206\u304b\u3063\u3066\u3044\u308b\u300d\u5834\u5408\u306f\u3001\u3067\u304d\u308b\u9650\u308a\u5177\u4f53\u7684\u306a\u578b\uff08Worksheet\u30fbRange\u30fbWorkbook\u306a\u3069\uff09\u3067\u5ba3\u8a00\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002Object\u578b\u306f\u3001\u5b9f\u884c\u6642\u307e\u3067\u3069\u306e\u7a2e\u985e\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5165\u308b\u304b\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u3084\u3001\u8907\u6570\u306e\u7570\u306a\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u4f8b\uff1aWord\u30fbOutlook\u306a\u3069\uff09\u3092\u540c\u3058\u5909\u6570\u3067\u6271\u3044\u305f\u3044\u5834\u5408\u306b\u9650\u5b9a\u3057\u3066\u4f7f\u3046\u3068\u3001\u30b3\u30fc\u30c9\u306e\u5b89\u5168\u6027\u304c\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-2. \u2461Set\u3067\u4ee3\u5165\uff1aNew\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u306f\u3059\u3067\u306b\u5b58\u5728\u3059\u308b\u30b7\u30fc\u30c8\u3084\u30bb\u30eb\u3092\u53d6\u5f97\u3057\u3066\u4ee3\u5165\u3057\u307e\u3059\u304c\u3001<strong>Collection\u3084\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u30af\u30e9\u30b9\u306e\u3088\u3046\u306b\u3001\u305d\u306e\u5834\u3067\u65b0\u3057\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u308b<\/strong>\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f<code>New<\/code>\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dim col As Collection<br>Set col = New Collection<br>col.Add \"\u30b5\u30f3\u30d7\u30eb\"<\/code><\/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>New \u30ad\u30fc\u30ef\u30fc\u30c9<\/strong>\uff1a\u30af\u30e9\u30b9\u306e\u300c\u65b0\u3057\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff08\u5b9f\u4f53\uff09\u300d\u3092\u305d\u306e\u5834\u3067\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3002Collection\u3084Dictionary\u3001\u3042\u308b\u3044\u306f\u81ea\u4f5c\u306e\u30af\u30e9\u30b9\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u3068\u304d\u306b<code>Set obj = New \u30af\u30e9\u30b9\u540d<\/code>\u3068\u3044\u3046\u5f62\u3067\u4f7f\u3044\u307e\u3059\u3002\u65e2\u5b58\u306e\u30b7\u30fc\u30c8\u3084\u30bb\u30eb\u306e\u3088\u3046\u306b\u300c\u3059\u3067\u306bExcel\u5185\u306b\u5b58\u5728\u3059\u308b\u3082\u306e\u300d\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306fNew\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-3. \u2462\u30d7\u30ed\u30d1\u30c6\u30a3\u30fb\u30e1\u30bd\u30c3\u30c9\u3067\u64cd\u4f5c\uff1a\u5909\u6570\u7d4c\u7531\u3067\u7c21\u6f54\u306b\u66f8\u3051\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Set\u3067\u4ee3\u5165\u3057\u305f\u3042\u3068\u306f\u3001\u5909\u6570\u3092\u901a\u3058\u3066\u30d7\u30ed\u30d1\u30c6\u30a3\uff08\u5024\u306e\u53d6\u5f97\u30fb\u8a2d\u5b9a\uff09\u3084\u30e1\u30bd\u30c3\u30c9\uff08\u51e6\u7406\u306e\u5b9f\u884c\uff09\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Set\u3092\u4f7f\u308f\u306a\u3044\u5834\u5408\u3068\u4f7f\u3063\u305f\u5834\u5408\u3092\u6bd4\u8f03\u3057\u305f\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u66f8\u304d\u65b9<\/th><th>\u30b3\u30fc\u30c9\u4f8b<\/th><th>\u30b3\u30e1\u30f3\u30c8<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Set\u3092\u4f7f\u308f\u306a\u3044\uff08\u6bce\u56de\u30d5\u30eb\u30d1\u30b9\u3067\u6307\u5b9a\uff09<\/td><td><code>Worksheets(\"\u96c6\u8a08\").Range(\"A1\").Value = 1<br>Worksheets(\"\u96c6\u8a08\").Range(\"A2\").Value = 2<\/code><\/td><td>\u540c\u3058\u30b7\u30fc\u30c8\u3092\u4f55\u5ea6\u3082\u6307\u5b9a\u3059\u308b\u305f\u3081\u5197\u9577\u306b\u306a\u308a\u3084\u3059\u3044<\/td><\/tr>\n<tr><td>Set\u3067\u5909\u6570\u5316\u3057\u3066\u304b\u3089\u64cd\u4f5c<\/td><td><code>Set ws = Worksheets(\"\u96c6\u8a08\")<br>ws.Range(\"A1\").Value = 1<br>ws.Range(\"A2\").Value = 2<\/code><\/td><td>2\u884c\u76ee\u4ee5\u964d\u304c\u7c21\u6f54\u306b\u306a\u308a\u3001\u30b7\u30fc\u30c8\u540d\u5909\u66f4\u6642\u306e\u4fee\u6b63\u7b87\u6240\u30821\u7b87\u6240\u3067\u6e08\u3080<\/td><\/tr>\n<\/tbody>\n<\/table>\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>\u540c\u3058\u30b7\u30fc\u30c8\u30fb\u30d6\u30c3\u30af\u30fb\u30bb\u30eb\u7bc4\u56f2\u3092\u8907\u6570\u56de\u64cd\u4f5c\u3059\u308b\u3068\u304d\u306f\u3001\u5fc5\u305a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066\u304b\u3089\u4f7f\u3046<\/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>For Each\u6587\u3067\u30bb\u30eb\u3084\u30b7\u30fc\u30c8\u30921\u3064\u305a\u3064\u51e6\u7406\u3059\u308b\u3068\u304d\u3082\u3001\u30eb\u30fc\u30d7\u5909\u6570\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\u3068\u3057\u3066\u5ba3\u8a00\u3057Set\u3067\u53d7\u3051\u53d6\u308b\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\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>\u5225\u30d6\u30c3\u30af\u30fb\u5225\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08Word\u30fbOutlook\u306a\u3069\uff09\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u307b\u3069\u3001\u5909\u6570\u5316\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u5927\u304d\u3044<\/span><\/div>\n\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-4. \u2463Nothing\u3067\u89e3\u653e\uff1a\u5f8c\u7247\u4ed8\u3051\u3092\u5fd8\u308c\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u9023\u306e\u51e6\u7406\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066<code>Set ws = Nothing<\/code>\u306e\u3088\u3046\u306b\u53c2\u7167\u3092\u89e3\u653e\u3057\u307e\u3059\u3002\u7279\u306b\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u64cd\u4f5c\u3059\u308b\u30b3\u30fc\u30c9\u3067\u306f\u3001\u3053\u306e\u5f8c\u7247\u4ed8\u3051\u3092\u5fd8\u308c\u308b\u3068\u610f\u56f3\u3057\u306a\u3044\u4e0d\u5177\u5408\u306b\u3064\u306a\u304c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u7b2c4\u7ae0\u3067\u6271\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u300cDim\u2192Set\u2192\u64cd\u4f5c\u2192Nothing\u300d\u3068\u3044\u30464\u30b9\u30c6\u30c3\u30d7\u3092\u4e00\u3064\u306e\u578b\u3068\u3057\u3066\u899a\u3048\u3066\u3057\u307e\u3046\u3068\u3001\u3069\u3093\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u51fa\u3066\u304d\u3066\u3082\u8ff7\u308f\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u3053\u306e\u578b\u3092\u4f53\u306b\u67d3\u307f\u8fbc\u307e\u305b\u308b\u3053\u3068\u3092\u512a\u5148\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">CORE OBJECTS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Workbook\u30fbWorksheet\u30fbRange\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f7f\u3044\u65b9<\/span>\n  <span class=\"section-desc\">\u5b9f\u52d9\u30679\u5272\u4ee5\u4e0a\u4f7f\u30463\u3064\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u62bc\u3055\u3048\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306b\u306f\u975e\u5e38\u306b\u591a\u304f\u306e\u7a2e\u985e\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5b58\u5728\u3057\u307e\u3059\u304c\u3001\u5b9f\u52d9\u306e\u30de\u30af\u30ed\u3067\u4f7f\u3046\u983b\u5ea6\u304c\u9ad8\u3044\u306e\u306f<strong>Workbook\uff08\u30d6\u30c3\u30af\uff09\u30fbWorksheet\uff08\u30b7\u30fc\u30c8\uff09\u30fbRange\uff08\u30bb\u30eb\u7bc4\u56f2\uff09<\/strong>\u306e3\u3064\u3067\u3059\u3002\u307e\u305a\u306f\u3053\u306e3\u3064\u306e\u53d6\u5f97\u65b9\u6cd5\u3068\u5f79\u5272\u306e\u9055\u3044\u3092\u6574\u7406\u3057\u3066\u304a\u304f\u3068\u3001\u5fdc\u7528\u304c\u52b9\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/th><th>\u4f55\u3092\u8868\u3059\u304b<\/th><th>\u4ee3\u8868\u7684\u306a\u53d6\u5f97\u65b9\u6cd5<\/th><th>\u4e3b\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\/\u30e1\u30bd\u30c3\u30c9<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>Workbook<\/td><td>\u958b\u3044\u3066\u3044\u308bExcel\u30d6\u30c3\u30af\uff08\u30d5\u30a1\u30a4\u30eb\uff09\u305d\u306e\u3082\u306e<\/td><td><code>Workbooks(\"\u30d5\u30a1\u30a4\u30eb\u540d.xlsx\")<\/code><\/td><td>Worksheets\u3001Save\u3001Close\u3001Name<\/td><\/tr>\n<tr><td>Worksheet<\/td><td>\u30d6\u30c3\u30af\u5185\u306e1\u679a\u306e\u30b7\u30fc\u30c8<\/td><td><code>Worksheets(\"\u30b7\u30fc\u30c8\u540d\")<\/code>\u3001<code>Sheets(\u30a4\u30f3\u30c7\u30c3\u30af\u30b9)<\/code><\/td><td>Range\u3001Cells\u3001Name\u3001Rows\u3001Columns<\/td><\/tr>\n<tr><td>Range<\/td><td>\u30b7\u30fc\u30c8\u5185\u306e\u30bb\u30eb\u307e\u305f\u306f\u30bb\u30eb\u7bc4\u56f2<\/td><td><code>Range(\"A1:B10\")<\/code>\u3001<code>Cells(1,1)<\/code><\/td><td>Value\u3001Value2\u3001Formula\u3001Font\u3001Interior<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">3-1. Workbook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5229\u7528\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8907\u6570\u306e\u30d6\u30c3\u30af\u3092\u540c\u6642\u306b\u6271\u3046\u30de\u30af\u30ed\u3067\u306f\u3001\u3069\u306e\u30d6\u30c3\u30af\u3092\u64cd\u4f5c\u3057\u3066\u3044\u308b\u304b\u3092\u660e\u793a\u3059\u308b\u305f\u3081\u306bWorkbook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u6570\u5316\u3059\u308b\u306e\u304c\u5b9a\u77f3\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dim wb As Workbook<br>Set wb = Workbooks.Open(\"C:\\data\\\u58f2\u4e0a.xlsx\")<br>MsgBox wb.Name<br>wb.Close SaveChanges:=False<\/code><\/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>Workbook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff1aExcel\u3067\u958b\u3044\u3066\u3044\u308b1\u3064\u306e\u30d6\u30c3\u30af\uff08\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u8868\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3002\u5b9f\u884c\u4e2d\u306e\u30de\u30af\u30ed\u304c\u52d5\u3044\u3066\u3044\u308b\u30d6\u30c3\u30af\u81ea\u8eab\u306f<code>ThisWorkbook<\/code>\u3001\u73fe\u5728\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30d6\u30c3\u30af\u306f<code>ActiveWorkbook<\/code>\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u53c2\u7167\u3067\u304d\u307e\u3059\u3002\u8907\u6570\u30d6\u30c3\u30af\u3092\u307e\u305f\u3050\u51e6\u7406\u3067\u306f\u3001\u3053\u306e2\u3064\u3092\u6df7\u540c\u3057\u306a\u3044\u3088\u3046\u660e\u793a\u7684\u306bSet\u3067\u5909\u6570\u5316\u3059\u308b\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u7279\u306b\u300c\u30de\u30af\u30ed\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u30d6\u30c3\u30af\u300d\u3068\u300c\u51e6\u7406\u5bfe\u8c61\u306e\u30d6\u30c3\u30af\u300d\u304c\u5225\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u3001<code>ThisWorkbook<\/code>\u3068<code>ActiveWorkbook<\/code>\u3092\u6df7\u540c\u3059\u308b\u3068\u3001\u610f\u56f3\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3093\u3067\u3057\u307e\u3046\u4e8b\u6545\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u51e6\u7406\u5bfe\u8c61\u3092\u660e\u793a\u7684\u306bSet\u3067\u5909\u6570\u5316\u3057\u3066\u304a\u304f\u3053\u3068\u306f\u3001\u5358\u306a\u308b\u66f8\u304d\u3084\u3059\u3055\u3060\u3051\u3067\u306a\u304f<strong>\u4e8b\u6545\u9632\u6b62\u306e\u610f\u5473\u3082\u5927\u304d\u3044<\/strong>\u7fd2\u6163\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3-2. Worksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5229\u7528\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30fc\u30c8\u540d\u306e\u5909\u66f4\u3084\u30b7\u30fc\u30c8\u306e\u8ffd\u52a0\u30fb\u524a\u9664\u304c\u767a\u751f\u3059\u308b\u30de\u30af\u30ed\u3067\u306f\u3001Worksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5909\u6570\u5316\u304c\u3068\u304f\u306b\u52b9\u679c\u3092\u767a\u63ee\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dim ws As Worksheet<br>Set ws = ThisWorkbook.Worksheets(\"\u96c6\u8a08\")<br>ws.Cells(1, 1).Value = \"\u898b\u51fa\u3057\"<br>ws.Rows(1).Font.Bold = True<\/code><\/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>Worksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff1a\u30d6\u30c3\u30af\u5185\u306e1\u679a\u306e\u30b7\u30fc\u30c8\u3092\u8868\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3002\u30b7\u30fc\u30c8\u540d\uff08\u6587\u5b57\u5217\uff09\u3084\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\uff08\u5de6\u304b\u3089\u4f55\u756a\u76ee\u304b\uff09\u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u304c\u3001\u30b7\u30fc\u30c8\u306e\u4e26\u3073\u9806\u306f\u5229\u7528\u8005\u306e\u64cd\u4f5c\u3067\u7c21\u5358\u306b\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u5b9f\u52d9\u3067\u306f<strong>\u30b7\u30fc\u30c8\u540d\u3092\u6307\u5b9a\u3057\u305f\u53d6\u5f97<\/strong>\u306e\u65b9\u304c\u4e8b\u6545\u304c\u5c11\u306a\u304f\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3-3. Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5229\u7528\u65b9\u6cd5\uff1a\u3082\u3063\u3068\u3082\u4f7f\u7528\u983b\u5ea6\u304c\u9ad8\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30bb\u30eb\u306e\u5024\u3092\u8aad\u307f\u66f8\u304d\u3059\u308bRange\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001VBA\u306e\u4e2d\u3067\u3082\u3063\u3068\u3082\u767b\u5834\u56de\u6570\u304c\u591a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<code>Range(\"A1\")<\/code>\u306e\u3088\u3046\u306b\u30bb\u30eb\u756a\u5730\u3092\u6587\u5b57\u5217\u3067\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3001<code>Cells(1, 1)<\/code>\u306e\u3088\u3046\u306b\u884c\u756a\u53f7\u30fb\u5217\u756a\u53f7\u3067\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u306e2\u901a\u308a\u304c\u3042\u308a\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u884c\u756a\u53f7\u3092\u5909\u6570\u5316\u3057\u305f\u3044\u5834\u5408\u306fCells\u306e\u65b9\u304c\u6271\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dim rng As Range<br>Set rng = ws.Range(\"A1:A10\")<br>Dim c As Range<br>For Each c In rng<br>&nbsp;&nbsp;c.Value = c.Value * 2<br>Next c<\/code><\/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>\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30f3\u30d0\u30fc\uff09<\/strong>\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b1\u3064\u3060\u3051\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u300c\u4ee3\u8868\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u306e\u3053\u3068\u3002Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\u306fValue\uff08\u30bb\u30eb\u306e\u5024\uff09\u3067\u3059\u3002\u305d\u306e\u305f\u3081<code>Set<\/code>\u3092\u4ed8\u3051\u5fd8\u308c\u3066<code>x = Range(\"A1\")<\/code>\u3068\u66f8\u3044\u3066\u3057\u307e\u3063\u3066\u3082\u3001\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\u7d4c\u7531\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u5024\u3060\u3051\u304c\u4ee3\u5165\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u3001\u3053\u308c\u304c\u7b2c5\u7ae0\u3067\u7d39\u4ecb\u3059\u308b\u300c\u6c17\u3065\u304d\u306b\u304f\u3044\u30d0\u30b0\u300d\u306e\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\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;\">Range\u53d6\u5f97\u306e\u5b9f\u52d9\u4e0a\u306e\u30b3\u30c4<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u56fa\u5b9a\u30bb\u30eb\u306e\u64cd\u4f5c\u306a\u3089<code>Range<\/code>\u3001\u884c\u30fb\u5217\u756a\u53f7\u3092\u30eb\u30fc\u30d7\u3067\u52d5\u304b\u3057\u305f\u3044\u51e6\u7406\u306a\u3089<code>Cells<\/code>\u3068\u3044\u3046\u4f7f\u3044\u5206\u3051\u304c\u57fa\u672c\u3067\u3059\u3002\u3055\u3089\u306b\u8907\u6570\u30bb\u30eb\u3092\u307e\u3068\u3081\u3066\u6271\u3046\u306a\u3089<code>Range(Cells(1,1), Cells(10,1))<\/code>\u306e\u3088\u3046\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u958b\u59cb\u884c\u30fb\u7d42\u4e86\u884c\u3092\u5909\u6570\u5316\u3057\u305f\u67d4\u8edf\u306a\u7bc4\u56f2\u6307\u5b9a\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">Workbook\u30fbWorksheet\u30fbRange\u306e3\u3064\u3092\u300c\u30d5\u30a1\u30a4\u30eb\u30fb\u30b7\u30fc\u30c8\u30fb\u30bb\u30eb\u300d\u3068\u3044\u3046\u65e5\u672c\u8a9e\u3067\u307e\u305a\u899a\u3048\u3066\u3001\u3042\u3068\u304b\u3089\u6b63\u5f0f\u540d\u79f0\u3068\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u7d10\u4ed8\u3051\u3066\u3044\u304f\u3068\u7406\u89e3\u304c\u65e9\u3044\u3067\u3059\u3002\u7126\u3089\u305a\u4e00\u3064\u305a\u3064\u66f8\u3044\u3066\u52d5\u304b\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">MEMORY & CLEANUP<\/span>\n  <span class=\"section-title\" style=\"display:block;\">Nothing\u3067\u53c2\u7167\u3092\u89e3\u653e\u3059\u308b\u91cd\u8981\u6027<\/span>\n  <span class=\"section-desc\">\u300c\u4f5c\u3063\u305f\u3089\u7247\u4ed8\u3051\u308b\u300d\u304c\u30d0\u30b0\u3068\u52d5\u4f5c\u4e0d\u5b89\u5b9a\u3092\u9632\u3050<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3092\u4f7f\u3044\u7d42\u308f\u3063\u305f\u3089\u3001<code>Set \u5909\u6570\u540d = Nothing<\/code>\u3068\u66f8\u3044\u3066\u53c2\u7167\u3092\u660e\u793a\u7684\u306b\u89e3\u653e\u3059\u308b\u7fd2\u6163\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u5fc5\u9808\u306e\u69cb\u6587\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u7279\u5b9a\u306e\u5834\u9762\u3067\u306f\u610f\u8b58\u3057\u3066\u304a\u304f\u3079\u304d\u91cd\u8981\u306a\u4f5c\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4-1. Nothing\u304c\u5fc5\u8981\u306b\u306a\u308b\u5178\u578b\u7684\u306a\u5834\u9762<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\uff08Sub\/Function\uff09\u306f\u3001\u51e6\u7406\u304c\u7d42\u4e86\u3059\u308b\u3068\u5185\u90e8\u306e\u5909\u6570\u306f\u57fa\u672c\u7684\u306b\u81ea\u52d5\u7684\u306b\u89e3\u653e\u3055\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u306f\u3001\u660e\u793a\u7684\u306aNothing\u3067\u306e\u89e3\u653e\u304c\u610f\u5473\u3092\u6301\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>Word\u30fbOutlook\u306a\u3069\u5225\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092CreateObject\u3067\u8d77\u52d5\u3057\u305f\u5834\u5408<\/strong> \u2500\u2500 \u8d77\u52d5\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u88cf\u3067\u6b8b\u308a\u7d9a\u3051\u308b\u3053\u3068\u3092\u9632\u3050<\/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>\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\uff08\u30e2\u30b8\u30e5\u30fc\u30eb\u30ec\u30d9\u30eb\u5909\u6570\uff09\u3068\u3057\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u5834\u5408<\/strong> \u2500\u2500 \u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u304c\u7d42\u308f\u3063\u3066\u3082\u81ea\u52d5\u89e3\u653e\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u4f7f\u3044\u7d42\u308f\u3063\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u660e\u793a\u7684\u306b\u89e3\u653e\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>\u5927\u91cf\u306e\u30bb\u30eb\u30fb\u30b7\u30fc\u30c8\u3092\u6271\u3046\u9577\u6642\u9593\u5b9f\u884c\u306e\u30de\u30af\u30ed<\/strong> \u2500\u2500 \u610f\u56f3\u3057\u306a\u3044\u53c2\u7167\u306e\u6b8b\u7559\u306b\u3088\u308b\u4e88\u671f\u3057\u306a\u3044\u52d5\u4f5c\u3092\u9632\u304e\u305f\u3044\u5834\u9762<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30a8\u30e9\u30fc\u51e6\u7406\uff08On Error\uff09\u306e\u4e2d\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u72b6\u614b\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u305f\u3044\u5834\u5408<\/strong><\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dim appWord As Object<br>Set appWord = CreateObject(\"Word.Application\")<br>appWord.Visible = False<br>' \u3053\u3053\u3067Word\u3092\u64cd\u4f5c\u3059\u308b\u51e6\u7406\nappWord.Quit<br>Set appWord = Nothing<\/code><\/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>\u30e1\u30e2\u30ea\u89e3\u653e\uff08\u53c2\u7167\u306e\u89e3\u653e\uff09<\/strong>\uff1a\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u4f7f\u3044\u7d42\u308f\u3063\u305f\u30c7\u30fc\u30bf\u9818\u57df\u3092\u300c\u3082\u3046\u4f7f\u3044\u307e\u305b\u3093\u300d\u3068VBA\u306b\u4f1d\u3048\u308b\u3053\u3068\u3002VBA\u306b\u306f\u57fa\u672c\u7684\u306a\u30e1\u30e2\u30ea\u7ba1\u7406\u306e\u4ed5\u7d44\u307f\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u3088\u3046\u306b<strong>VBA\u306e\u7ba1\u7406\u7bc4\u56f2\u306e\u5916\u306b\u3042\u308b\u30ea\u30bd\u30fc\u30b9<\/strong>\u306f\u3001\u660e\u793a\u7684\u306bQuit\u3084Close\u3067\u7d42\u4e86\u3055\u305b\u3001Nothing\u3067\u53c2\u7167\u3092\u5207\u308a\u96e2\u3059\u4f5c\u6cd5\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\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;\">Nothing\u3092\u5fd8\u308c\u305f\u5834\u5408\u306b\u8d77\u304d\u308b\u3053\u3068<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">CreateObject\u3067\u8d77\u52d5\u3057\u305f\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08Word\u30fbOutlook\u306a\u3069\uff09\u3067Quit\u3068Nothing\u3092\u5fd8\u308c\u308b\u3068\u3001\u753b\u9762\u4e0a\u306b\u306f\u898b\u3048\u306a\u3044\u307e\u307e\u305d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u306b\u6b8b\u308a\u7d9a\u3051\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4f55\u5ea6\u3082\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u3046\u3061\u306b\u30d7\u30ed\u30bb\u30b9\u304c\u7a4d\u307f\u91cd\u306a\u308a\u3001PC\u306e\u52d5\u4f5c\u304c\u91cd\u304f\u306a\u308b\u539f\u56e0\u306b\u306a\u308b\u305f\u3081\u3001\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u9023\u643a\u306e\u30de\u30af\u30ed\u3067\u306f\u7279\u306b\u610f\u8b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4-2. \u901a\u5e38\u306e\u30b7\u30fc\u30c8\u30fb\u30bb\u30eb\u64cd\u4f5c\u3067\u306f\u305d\u3053\u307e\u3067\u795e\u7d4c\u8cea\u306b\u306a\u3089\u306a\u304f\u3066\u3088\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3067\u3001<code>Worksheets(\"Sheet1\")<\/code>\u3084<code>Range(\"A1\")<\/code>\u306e\u3088\u3046\u306b<strong>Excel\u30d6\u30c3\u30af\u5185\u90e8\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u6271\u3046\u3060\u3051\u3067\u3042\u308c\u3070\u3001\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u7d42\u4e86\u3068\u3068\u3082\u306b\u5909\u6570\u306f\u81ea\u52d5\u7684\u306b\u89e3\u653e\u3055\u308c\u308b\u305f\u3081\u3001\u6bce\u56deNothing\u3092\u66f8\u304b\u306a\u304f\u3066\u3082\u5b9f\u52d9\u4e0a\u5927\u304d\u306a\u554f\u984c\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u300c\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3057\u305f\u3068\u304d\u306f\u5fc5\u305aNothing\u300d\u300c\u901a\u5e38\u306e\u30b7\u30fc\u30c8\u64cd\u4f5c\u3067\u306f\u904e\u5ea6\u306b\u6c17\u306b\u3057\u3059\u304e\u306a\u3044\u300d\u3068\u3044\u3046<strong>\u30e1\u30ea\u30cf\u30ea<\/strong>\u3092\u3064\u3051\u308b\u306e\u304c\u3001\u5b9f\u52d9\u7684\u306a\u30d0\u30e9\u30f3\u30b9\u611f\u899a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">Nothing\u306f\u300c\u4f55\u3067\u3082\u304b\u3093\u3067\u3082\u66f8\u3051\u3070\u3044\u3044\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002CreateObject\u3067\u5916\u90e8\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u305f\u3068\u304d\u3060\u3051\u306f\u5fc5\u305a\u30bb\u30c3\u30c8\u3067\u899a\u3048\u3066\u304a\u304f\u3001\u3068\u3044\u3046\u904b\u7528\u304c\u73fe\u5b9f\u7684\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">TROUBLESHOOTING<\/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\">Set\u307e\u308f\u308a\u3067\u5b9f\u969b\u306b\u3064\u307e\u305a\u304f\u5178\u578b\u30d1\u30bf\u30fc\u30f3\u3092\u5148\u56de\u308a\u3067\u6f70\u3059<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u3067\u306f\u3001Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306b\u95a2\u9023\u3057\u3066\u5b9f\u969b\u306b\u3088\u304f\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3068\u3001\u305d\u306e\u539f\u56e0\u30fb\u5bfe\u51e6\u6cd5\u3092\u4e00\u89a7\u306b\u307e\u3068\u3081\u307e\u3059\u3002\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u691c\u7d22\u3057\u3066\u3053\u306e\u8a18\u4e8b\u306b\u305f\u3069\u308a\u7740\u3044\u305f\u65b9\u306f\u3001\u307e\u305a\u3053\u306e\u8868\u304b\u3089\u8a72\u5f53\u3059\u308b\u3082\u306e\u3092\u63a2\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/th><th>\u4e3b\u306a\u539f\u56e0<\/th><th>\u5bfe\u51e6\u6cd5<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059<\/td><td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4ee3\u5165\u3059\u308b\u884c\u3067Set\u3092\u66f8\u304d\u5fd8\u308c\u3066\u3044\u308b<\/td><td>\u4ee3\u5165\u3057\u3066\u3044\u308b\u53f3\u8fba\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3001Set\u3092\u8ffd\u52a0\u3059\u308b<\/td><\/tr>\n<tr><td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u307e\u305f\u306f With \u30d6\u30ed\u30c3\u30af\u5909\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093<\/td><td>\u4e00\u5ea6\u3082Set\u3055\u308c\u3066\u3044\u306a\u3044\uff08Nothing\u306e\u307e\u307e\u306e\uff09\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3092\u64cd\u4f5c\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b<\/td><td>Set\u6587\u304c\u5b9f\u884c\u3055\u308c\u308b\u524d\u306b\u305d\u306e\u5909\u6570\u3092\u4f7f\u3063\u3066\u3044\u306a\u3044\u304b\u3001\u6761\u4ef6\u5206\u5c90\u306e\u629c\u3051\u3092\u78ba\u8a8d\u3059\u308b<\/td><\/tr>\n<tr><td>\u578b\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093<\/td><td>\u5ba3\u8a00\u3057\u305f\u578b\uff08\u4f8b\uff1aWorksheet\uff09\u3068\u3001\u5b9f\u969b\u306bSet\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7a2e\u985e\u304c\u5408\u3063\u3066\u3044\u306a\u3044<\/td><td>Dim\u306e\u578b\u5ba3\u8a00\u3092Object\u578b\u306b\u7de9\u3081\u308b\u304b\u3001\u6b63\u3057\u3044\u578b\u306b\u4fee\u6b63\u3059\u308b<\/td><\/tr>\n<tr><td>\u5b9f\u884c\u6642\u30a8\u30e9\u30fc9\uff1a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u6709\u52b9\u7bc4\u56f2\u306b\u3042\u308a\u307e\u305b\u3093\uff08Subscript out of range\uff09<\/td><td>\u5b58\u5728\u3057\u306a\u3044\u30b7\u30fc\u30c8\u540d\u30fb\u30d6\u30c3\u30af\u540d\u3092\u6307\u5b9a\u3057\u3066Set\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b<\/td><td>Worksheets(\"\u6b63\u3057\u3044\u540d\u524d\")\u306e\u3088\u3046\u306b\u30b7\u30fc\u30c8\u540d\u306e\u30b9\u30da\u30eb\u30df\u30b9\u30fb\u5168\u89d2\u534a\u89d2\u306e\u9055\u3044\u3092\u78ba\u8a8d\u3059\u308b<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">5-1. \u300c\u30bb\u30eb\u306e\u5024\u3060\u3051\u304c\u4ee3\u5165\u3055\u308c\u3066\u6c17\u3065\u304b\u306a\u3044\u300d\u30d1\u30bf\u30fc\u30f3\u306b\u6ce8\u610f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c3\u7ae0\u3067\u89e6\u308c\u305f\u3068\u304a\u308a\u3001Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\uff08Value\uff09\u304c\u3042\u308b\u305f\u3081\u3001Set\u3092\u66f8\u304d\u5fd8\u308c\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u306b<strong>\u5024\u3060\u3051\u304c\u4ee3\u5165\u3055\u308c\u3066\u3057\u307e\u3046<\/strong>\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u5206\u3001\u539f\u56e0\u7a76\u660e\u304c\u96e3\u3057\u3044\u5384\u4ecb\u306a\u30d0\u30b0\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dim rng As Range<br>rng = Range(\"A1\")\u3000' Set\u3092\u5fd8\u308c\u3066\u3044\u308b\u3002rng\u306fRange\u578b\u3067\u5ba3\u8a00\u6e08\u307f\u304b\u3064\u307e\u3060Nothing\u306e\u305f\u3081\u3001\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\u7d4c\u7531\u306e\u4ee3\u5165\u3092\u8a66\u307f\u305f\u3053\u306e\u884c\u3067\u5b9f\u884c\u6642\u30a8\u30e9\u30fc91\u300c\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\u300d\u304c\u767a\u751f\u3059\u308b<br>rng.Value = 100\u3000' \u4e0a\u306e\u884c\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u51e6\u7406\u304c\u6b62\u307e\u308b\u305f\u3081\u3001\u5b9f\u969b\u306b\u306f\u3053\u306e\u884c\u306b\u5230\u9054\u3057\u306a\u3044<\/code><\/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;\">\u898b\u3064\u3051\u306b\u304f\u3044\u30d0\u30b0\u3078\u306e\u5bfe\u7b56<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u300cSet\u3092\u4ed8\u3051\u305f\u3064\u3082\u308a\u3067\u5fd8\u308c\u3066\u3044\u306a\u3044\u304b\u300d\u3092\u7591\u3046\u30af\u30bb\u3092\u3064\u3051\u308b\u306e\u304c\u6700\u5584\u7b56\u3067\u3059\u3002\u7279\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3067\u30b3\u30fc\u30c9\u3092\u91cf\u7523\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u8d77\u304d\u304c\u3061\u306a\u306e\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u4ee3\u5165\u884c\u306f\u66f8\u3044\u305f\u3042\u3068\u4e00\u547c\u5438\u304a\u3044\u3066\u898b\u76f4\u3059\u7fd2\u6163\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002VBE\uff08VBA\u30a8\u30c7\u30a3\u30bf\uff09\u306e\u69cb\u6587\u30c1\u30a7\u30c3\u30af\u3060\u3051\u3067\u306f\u691c\u51fa\u3067\u304d\u306a\u3044\u30bf\u30a4\u30d7\u306e\u30df\u30b9\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5-2. With\u30d6\u30ed\u30c3\u30af\u3068\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u8d77\u304d\u308b\u52d8\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>With<\/code>\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u3046\u3068\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u3092\u4f55\u5ea6\u3082\u66f8\u304b\u305a\u306b\u6e08\u307f\u307e\u3059\u304c\u3001<code>With<\/code>\u306e\u4e2d\u3067\u6271\u3046\u5bfe\u8c61\u81ea\u4f53\u306f\u3042\u3089\u304b\u3058\u3081Set\u3067\u7528\u610f\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u300cWith\u3092\u4f7f\u3048\u3070Set\u304c\u4e0d\u8981\u306b\u306a\u308b\u300d\u3068\u3044\u3046\u8aa4\u89e3\u3092\u3057\u3066\u3044\u308b\u65b9\u3082\u898b\u304b\u3051\u307e\u3059\u304c\u3001\u4e21\u8005\u306f\u5f79\u5272\u304c\u7570\u306a\u308b\u5225\u3005\u306e\u4ed5\u7d44\u307f\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>Set\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u3092\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u300d\u305f\u3081\u306e\u69cb\u6587<\/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\u306f\u300c\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u8907\u6570\u306e\u64cd\u4f5c\u3092\u307e\u3068\u3081\u3066\u66f8\u304f\u300d\u305f\u3081\u306e\u69cb\u6587<\/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>\u4e21\u65b9\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u5834\u5408\u306f<code>With ws<\/code>\u306e\u3088\u3046\u306b\u3001\u4e8b\u524d\u306bSet\u3057\u305f\u5909\u6570\u3092With\u306e\u5bfe\u8c61\u306b\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\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u3089\u3001\u307e\u305a\u300c\u3069\u306e\u884c\u3067\u300d\u300c\u4f55\u3092\u300dSet\u3057\u5fd8\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u898b\u308b\u3002\u3053\u308c\u3060\u3051\u3067VBA\u306e\u30a8\u30e9\u30fc\u306e\u4f53\u611f\u89e3\u6c7a\u901f\u5ea6\u304c\u304b\u306a\u308a\u4e0a\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=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">GENAI CASE STUDY<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u72ec\u81ea\u30c7\u30fc\u30bf\u3011GENAI\u793e\u5185\u3067\u306eExcel\/VBA\u696d\u52d9\u524a\u6e1b\u5b9f\u7e3e<\/span>\n  <span class=\"section-desc\">VBA\u3067\u81ea\u52d5\u5316\u3057\u3066\u3044\u305f\u696d\u52d9\u3092\u3001AI\u3067\u3069\u3053\u307e\u3067\u52b9\u7387\u5316\u3067\u304d\u3066\u3044\u308b\u304b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u3001\u5f0a\u793e\uff08\u682a\u5f0f\u4f1a\u793eGENAI\uff09\u304c\u5b9f\u969b\u306bExcel\u30fbVBA\u95a2\u9023\u306e\u696d\u52d9\u3092\u3069\u306e\u3088\u3046\u306b\u52b9\u7387\u5316\u3057\u3066\u3044\u308b\u304b\u3092\u3001\u6570\u5024\u3092\u4ea4\u3048\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002VBA\u306f\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u300c\u305d\u3082\u305d\u3082VBA\u3092\u66f8\u304f\u6642\u9593\u305d\u306e\u3082\u306e\u3092\u6e1b\u3089\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u30cb\u30fc\u30ba\u306b\u5bfe\u3057\u3066\u306f\u3001AI\u306e\u6d3b\u7528\u304c\u5927\u304d\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6-1. \u5f0a\u793e\u306e\u5c0e\u5165\u72b6\u6cc1<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\u3067\u306fClaude Max 20x\u30d7\u30e9\u30f3\uff08\u6708\u984d$200\u30fb\u7d0430,000\u5186\uff09\u3092\u5951\u7d04\u3057\u3001Claude Code\u3092\u7d4c\u55b6\u30fb\u55b6\u696d\u30fb\u5e83\u544a\u30fb\u958b\u767a\u30fb\u7d4c\u7406\u30fb\u79d8\u66f8\u696d\u52d9\u307e\u3067\u793e\u5185\u306e\u3042\u3089\u3086\u308b\u696d\u52d9\u306b\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002Excel\/VBA\u304c\u7d61\u3080\u696d\u52d9\u3082\u4f8b\u5916\u3067\u306f\u306a\u304f\u3001\u30de\u30af\u30ed\u306e\u65b0\u898f\u4f5c\u6210\u30fb\u65e2\u5b58\u30de\u30af\u30ed\u306e\u4fee\u6b63\u30fb\u30c7\u30d0\u30c3\u30b0\u306e\u591a\u304f\u3092Claude Code\u3068\u306e\u5bfe\u8a71\u3067\u9032\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u696d\u52d9\u9818\u57df<\/th><th>\u4e3b\u306a\u7528\u9014\uff08Excel\/VBA\u95a2\u9023\uff09<\/th><th>\u6982\u7b97\u524a\u6e1b\u6642\u9593<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u7d4c\u7406<\/td><td>\u8acb\u6c42\u66f8\u30c1\u30a7\u30c3\u30af\u30fb\u7d4c\u8cbb\u4ed5\u8a33\u30fbFreee\u9023\u643a\u306eExcel\u96c6\u8a08\u51e6\u7406<\/td><td>\u670840\u6642\u9593 \u2192 \u67085\u6642\u9593<\/td><\/tr>\n<tr><td>\u79d8\u66f8\u696d\u52d9<\/td><td>\u65e5\u5831\u30fb\u30ec\u30dd\u30fc\u30c8\u306eExcel\u96c6\u8a08\u3068\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u8abf\u6574<\/td><td>\u65e52\u6642\u9593 \u2192 \u65e515\u5206<\/td><\/tr>\n<tr><td>\u958b\u767a<\/td><td>VBA\u30de\u30af\u30ed\u30fbPython\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u66f8\u304d\u6368\u3066\u30fb\u4e0d\u5177\u5408\u4fee\u6b63<\/td><td>\u90fd\u5ea6\u6570\u6642\u9593\u306e\u524a\u6e1b\uff08\u4f5c\u696d\u3054\u3068\u306b\u5909\u52d5\uff09<\/td><\/tr>\n<\/tbody>\n<\/table>\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;\">\u6570\u5024\u306e\u6ce8\u610f\u66f8\u304d<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u4e0a\u8a18\u306f\u5f0a\u793e\u306e\u808c\u611f\u30d9\u30fc\u30b9\u306e\u6570\u5024\u3067\u3042\u308a\u3001\u696d\u7a2e\u30fb\u696d\u614b\u30fb\u62c5\u5f53\u8005\u306e\u30b9\u30ad\u30eb\u306b\u3088\u3063\u3066\u524a\u6e1b\u6642\u9593\u306f\u5909\u52d5\u3057\u307e\u3059\u3002\u300c\u5b8c\u5168\u81ea\u52d5\u5316\u300d\u3067\u306f\u306a\u304f\u3001\u4eba\u9593\u306e\u30ec\u30d3\u30e5\u30fc\u30fb\u5fae\u8abf\u6574\u3092\u4f34\u3063\u305f\u4e0a\u3067\u306e\u5b9f\u611f\u5024\u3068\u3057\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6-2. \u300cVBA\u3092\u66f8\u304f\u300d\u304b\u3089\u300cVBA\u3092\u8aac\u660e\u3059\u308b\u300d\u3078\u306e\u5909\u5316<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f93\u6765\u3001Excel\u306e\u96c6\u8a08\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3059\u308b\u306b\u306f\u3001\u62c5\u5f53\u8005\u81ea\u8eab\u304cVBA\u306e\u6587\u6cd5\u3092\u5b66\u3073\u3001Dim\u30fbSet\u30fbFor\u30eb\u30fc\u30d7\u306a\u3069\u3092\u4e00\u3064\u305a\u3064\u66f8\u3044\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u5f0a\u793e\u3067\u306f\u73fe\u5728\u3001\u3053\u306e\u4f5c\u696d\u306e\u591a\u304f\u3092\u300c\u3084\u308a\u305f\u3044\u3053\u3068\u300d\u3092Claude Code\u306b\u65e5\u672c\u8a9e\u3067\u4f1d\u3048\u3001\u751f\u6210\u3055\u308c\u305f\u30de\u30af\u30ed\u3092\u78ba\u8a8d\u30fb\u5fae\u8abf\u6574\u3059\u308b\u3068\u3044\u3046\u9032\u3081\u65b9\u306b\u7f6e\u304d\u63db\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>Step 1<\/strong><br><span style=\"font-size:12px;\">\u3084\u308a\u305f\u3044\u51e6\u7406\u3092<br>\u65e5\u672c\u8a9e\u3067\u4f1d\u3048\u308b<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Step 2<\/strong><br><span style=\"font-size:12px;\">Claude Code\u304c<br>VBA\/\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u751f\u6210<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Step 3<\/strong><br><span style=\"font-size:12px;\">\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3067<br>\u52d5\u4f5c\u3092\u691c\u8a3c<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Step 4<\/strong><br><span style=\"font-size:12px;\">\u554f\u984c\u306a\u3051\u308c\u3070<br>\u696d\u52d9\u306b\u7d44\u307f\u8fbc\u307f<\/span><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u6d41\u308c\u306e\u5229\u70b9\u306f\u3001<strong>Set\u306e\u66f8\u304d\u5fd8\u308c\u306e\u3088\u3046\u306a\u6587\u6cd5\u30ec\u30d9\u30eb\u306e\u30df\u30b9\u304c\u8d77\u304d\u306b\u304f\u3044<\/strong>\u3053\u3068\u3067\u3059\u3002Claude Code\u306f\u578b\u5ba3\u8a00\u30fb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53c2\u7167\u4ee3\u5165\u30fbNothing\u3067\u306e\u89e3\u653e\u3068\u3044\u3063\u305f\u4f5c\u6cd5\u3092\u8e0f\u307e\u3048\u305f\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3067\u304d\u308b\u305f\u3081\u3001\u62c5\u5f53\u8005\u306f\u300c\u51fa\u529b\u3055\u308c\u305f\u30b3\u30fc\u30c9\u304c\u696d\u52d9\u4e0a\u6b63\u3057\u304f\u52d5\u304f\u304b\u300d\u3068\u3044\u3046\u30ec\u30d3\u30e5\u30fc\u306b\u96c6\u4e2d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">VBA\u306e\u6587\u6cd5\u3092\u5b8c\u74a7\u306b\u899a\u3048\u3066\u3044\u306a\u304f\u3066\u3082\u3001\u300c\u3053\u306e\u30b7\u30fc\u30c8\u306eA\u5217\u3068B\u5217\u3092\u7a81\u304d\u5408\u308f\u305b\u3066\u91cd\u8907\u3060\u3051\u524a\u9664\u3057\u3066\u300d\u3068\u4f1d\u3048\u308c\u3070\u3001\u305f\u305f\u304d\u53f0\u306e\u30b3\u30fc\u30c9\u304c\u3059\u3050\u306b\u51fa\u3066\u304d\u307e\u3059\u3002\u305d\u3053\u304b\u3089\u5fae\u8abf\u6574\u3059\u308b\u65b9\u304c\u3001\u30bc\u30ed\u304b\u3089\u6587\u6cd5\u3092\u8abf\u3079\u306a\u304c\u3089\u66f8\u304f\u3088\u308a\u5727\u5012\u7684\u306b\u901f\u3044\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">BEYOND VBA<\/span>\n  <span class=\"section-title\" style=\"display:block;\">VBA\u306e\u9650\u754c\u3068AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3088\u308b\u6b21\u4e16\u4ee3\u306e\u81ea\u52d5\u5316<\/span>\n  <span class=\"section-desc\">VBA\u3092\u300c\u5352\u696d\u300d\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u4f7f\u3044\u3053\u306a\u3059\u76f8\u68d2\u300d\u3092\u6301\u3064\u3068\u3044\u3046\u767a\u60f3<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4e2d\u5fc3\u306bVBA\u306e\u57fa\u672c\u3092\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u5b9f\u52d9\u3067VBA\u3092\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u308b\u3068\u3001\u3044\u304f\u3064\u304b\u306e\u69cb\u9020\u7684\u306a\u9650\u754c\u306b\u3076\u3064\u304b\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u305d\u306e\u9650\u754c\u3068\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3069\u3046\u4e57\u308a\u8d8a\u3048\u3089\u308c\u308b\u304b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7-1. VBA\u304c\u62b1\u3048\u304c\u3061\u306a3\u3064\u306e\u8ab2\u984c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">VBA\u306f\u9577\u5e74\u306b\u308f\u305f\u3063\u3066Excel\u696d\u52d9\u306e\u81ea\u52d5\u5316\u3092\u652f\u3048\u3066\u304d\u305f\u512a\u308c\u305f\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u5b9f\u52d9\u3067\u904b\u7528\u3057\u3066\u3044\u304f\u4e0a\u3067\u306f\u3044\u304f\u3064\u304b\u306e\u8ab2\u984c\u3082\u898b\u3048\u3066\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><strong>\u5c5e\u4eba\u5316\u3057\u3084\u3059\u3044<\/strong> \u2500\u2500 \u66f8\u3044\u305f\u672c\u4eba\u3057\u304b\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3057\u3066\u304a\u3089\u305a\u3001\u62c5\u5f53\u8005\u304c\u7570\u52d5\u30fb\u9000\u8077\u3059\u308b\u3068\u8ab0\u3082\u76f4\u305b\u306a\u304f\u306a\u308b\u300c\u91ce\u826f\u30de\u30af\u30ed\u300d\u5316\u306e\u30ea\u30b9\u30af<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30c7\u30d0\u30c3\u30b0\u306b\u6642\u9593\u304c\u304b\u304b\u308b<\/strong> \u2500\u2500 \u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059\u300d\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3060\u3051\u3067\u306f\u539f\u56e0\u7b87\u6240\u306e\u7279\u5b9a\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u591a\u3044<\/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\u4ee5\u5916\u306e\u30c7\u30fc\u30bf\u30fb\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u9023\u643a\u304c\u5f31\u3044<\/strong> \u2500\u2500 \u30e1\u30fc\u30eb\u30fb\u30c1\u30e3\u30c3\u30c8\u30fb\u5916\u90e8API\u30fb\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a\u306f\u3001VBA\u5358\u4f53\u3067\u306f\u5b9f\u73fe\u304c\u96e3\u3057\u3044\u304b\u3001\u304b\u306a\u308a\u306e\u8ffd\u52a0\u5b9f\u88c5\u304c\u5fc5\u8981\u306b\u306a\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u8ab2\u984c\u306f\u3001VBA\u3068\u3044\u3046\u8a00\u8a9e\u305d\u306e\u3082\u306e\u306e\u9650\u754c\u3068\u3044\u3046\u3088\u308a\u3001\u300c\u4e00\u4eba\u306e\u62c5\u5f53\u8005\u304c\u72ec\u529b\u3067\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u7d9a\u3051\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u300d\u3068\u3044\u3046<strong>\u904b\u7528\u4f53\u5236\u306e\u9650\u754c<\/strong>\u306b\u8fd1\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7-2. Claude Code\u304cVBA\u306e\u5f31\u70b9\u3092\u88dc\u30463\u3064\u306e\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\u3067\u306f\u3001VBA\u3092\u5b8c\u5168\u306b\u7f6e\u304d\u63db\u3048\u308b\u306e\u3067\u306f\u306a\u304f\u3001<strong>Claude Code\u3092\u300cVBA\u3092\u66f8\u304f\u30fb\u76f4\u3059\u30fb\u8aac\u660e\u3059\u308b\u300d\u305f\u3081\u306e\u76f8\u68d2\u3068\u3057\u3066\u4f7f\u3046<\/strong>\u3068\u3044\u3046\u65b9\u5411\u3067\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u4f7f\u3044\u65b9<\/th><th>\u5177\u4f53\u7684\u306a\u5185\u5bb9<\/th><th>VBA\u5358\u4f53\u3068\u306e\u9055\u3044<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u30b3\u30fc\u30c9\u751f\u6210<\/td><td>\u300c\u3084\u308a\u305f\u3044\u3053\u3068\u300d\u3092\u65e5\u672c\u8a9e\u3067\u4f1d\u3048\u3066\u30de\u30af\u30ed\u306e\u305f\u305f\u304d\u53f0\u3092\u4f5c\u308b<\/td><td>\u30bc\u30ed\u304b\u3089\u6587\u6cd5\u3092\u8abf\u3079\u308b\u6642\u9593\u304c\u4e0d\u8981\u306b\u306a\u308b<\/td><\/tr>\n<tr><td>\u30c7\u30d0\u30c3\u30b0\u652f\u63f4<\/td><td>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30b3\u30fc\u30c9\u3092\u6e21\u3057\u3066\u539f\u56e0\u7b87\u6240\u3092\u7279\u5b9a\u3057\u3066\u3082\u3089\u3046<\/td><td>\u8a72\u5f53\u884c\u3092\u76ee\u3067\u8ffd\u3046\u4f5c\u696d\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3067\u304d\u308b<\/td><\/tr>\n<tr><td>\u5f15\u304d\u7d99\u304e\u8cc7\u6599\u5316<\/td><td>\u65e2\u5b58\u306e\u91ce\u826f\u30de\u30af\u30ed\u306e\u51e6\u7406\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u8aac\u660e\u3057\u3066\u3082\u3089\u3046<\/td><td>\u5c5e\u4eba\u5316\u3057\u305f\u30de\u30af\u30ed\u306e\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u5316\u3092\u9632\u3052\u308b<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8<\/strong>\uff1a\u4eba\u9593\u304c\u7d30\u304b\u304f\u6307\u793a\u3057\u306a\u304f\u3066\u3082\u3001\u76ee\u7684\u3092\u4f1d\u3048\u308b\u3060\u3051\u3067\u8907\u6570\u306e\u4f5c\u696d\u30b9\u30c6\u30c3\u30d7\u3092\u81ea\u3089\u8a08\u753b\u30fb\u5b9f\u884c\u3059\u308bAI\u306e\u3053\u3068\u3002Claude Code\u306f\u300c\u3053\u306e\u30de\u30af\u30ed\u306eA\u5217\u51e6\u7406\u3092\u76f4\u3057\u3066\u300d\u3068\u3044\u3063\u305f\u62bd\u8c61\u7684\u306a\u6307\u793a\u304b\u3089\u3001\u539f\u56e0\u306e\u7279\u5b9a\u30fb\u4fee\u6b63\u6848\u306e\u4f5c\u6210\u307e\u3067\u3092\u4e00\u8cab\u3057\u3066\u884c\u3048\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3055\u3089\u306b\u4e00\u6b69\u8e0f\u307f\u8fbc\u3080\u3068\u3001Excel\u3067\u306e\u96c6\u8a08\u51e6\u7406\u305d\u306e\u3082\u306e\u3092\u3001VBA\u3067\u306f\u306a\u304fPython\u306a\u3069\u306e\u5225\u306e\u8a00\u8a9e\u3067\u81ea\u52d5\u5316\u3059\u308b\u3068\u3044\u3046\u9078\u629e\u80a2\u3082\u898b\u3048\u3066\u304d\u307e\u3059\u3002VBA\u306fExcel\u3068\u3044\u3046\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u7e1b\u3089\u308c\u305f\u8a00\u8a9e\u3067\u3059\u304c\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4ecb\u305b\u3070\u300cExcel\u524d\u63d0\u306e\u81ea\u52d5\u5316\u300d\u304b\u3089\u300c\u696d\u52d9\u305d\u306e\u3082\u306e\u306e\u81ea\u52d5\u5316\u300d\u3078\u3068\u8996\u91ce\u3092\u5e83\u3052\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">VBA\u3092\u5b66\u3076\u610f\u5473\u304c\u306a\u304f\u306a\u308b\u308f\u3051\u3067\u306f\u306a\u3044<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">VBA\u306e\u57fa\u672c\u6587\u6cd5\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u3053\u3068\u306f\u3001AI\u304c\u751f\u6210\u3057\u305f\u30b3\u30fc\u30c9\u3092\u6b63\u3057\u304f\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u305f\u3081\u306e\u571f\u53f0\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305fSet\u30fbDim\u30fbNothing\u306e\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u3053\u3068\u306f\u3001AI\u3068\u5354\u50cd\u3059\u308b\u4e0a\u3067\u3082\u3080\u3057\u308d\u4fa1\u5024\u304c\u5897\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">VBA\u3092\u899a\u3048\u308b\u3060\u3051\u306e\u6642\u4ee3\u304b\u3089\u3001VBA\u306e\u57fa\u672c\u3092\u7406\u89e3\u3057\u305f\u4e0a\u3067AI\u3068\u4e00\u7dd2\u306b\u66f8\u304f\u6642\u4ee3\u306b\u5909\u308f\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002\u57fa\u790e\u3092\u77e5\u3063\u3066\u3044\u308b\u304b\u3089\u3053\u305d\u3001AI\u304c\u51fa\u3057\u305f\u30b3\u30fc\u30c9\u306e\u59a5\u5f53\u6027\u3092\u5224\u65ad\u3067\u304d\u308b\u3068\u3044\u3046\u69cb\u56f3\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-set-statement&#038;blog_slug=vba-set-statement\" target=\"_blank\" rel=\"noopener\" aria-label=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff08\u7121\u6599\u30fb1on1\u30fb60\u5206\uff09\u306e\u4e88\u7d04\u753b\u9762\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/05\/cta_seminar_claude_code_2026.jpg\" alt=\"Claude Code \u5b8c\u5168\u89e3\u8aac\u30bb\u30df\u30ca\u30fc\uff5c\u7d4c\u55b6\u8005\u30fb\u4f1a\u793e\u5f79\u54e1\u5c02\u7528 1on1 60\u5206 \u7121\u6599\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_campaign=vba-set-statement&#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;\">CONCLUSION<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u307e\u3068\u3081<\/span>\n  <span class=\"section-desc\">Set\u306f\u300c\u53c2\u7167\u3092\u6e21\u3059\u300d\u3068\u3044\u3046\u4e00\u70b9\u3060\u3051\u7406\u89e3\u3059\u308c\u3070\u6016\u304f\u306a\u3044<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001VBA\u306eSet\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306b\u3064\u3044\u3066\u3001\u57fa\u672c\u6587\u6cd5\u304b\u3089\u4e3b\u8981\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306e\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9\u3001Nothing\u306b\u3088\u308b\u89e3\u653e\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u3001\u305d\u3057\u3066\u5f0a\u793eGENAI\u306e\u5b9f\u904b\u7528\u30c7\u30fc\u30bf\u3068AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u6b21\u4e16\u4ee3\u306e\u81ea\u52d5\u5316\u307e\u3067\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u6700\u5f8c\u306b\u30dd\u30a4\u30f3\u30c8\u3092\u632f\u308a\u8fd4\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>Set\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u53c2\u7167\u300d\u3092\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u305f\u3081\u306e\u5c02\u7528\u69cb\u6587\u3067\u3001\u5024\u306e\u4ee3\u5165\u3068\u306f\u5225\u30eb\u30fc\u30eb<\/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>\u57fa\u672c\u306e\u578b\u306f\u300cDim\u5ba3\u8a00 \u2192 Set\u3067\u4ee3\u5165 \u2192 \u30d7\u30ed\u30d1\u30c6\u30a3\/\u30e1\u30bd\u30c3\u30c9\u3067\u64cd\u4f5c \u2192 \u5fc5\u8981\u306a\u3089Nothing\u3067\u89e3\u653e\u300d<\/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>Workbook\u30fbWorksheet\u30fbRange\u306e3\u5927\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\u65b9\u6cd5\u3068\u5f79\u5272\u3092\u62bc\u3055\u3048\u308c\u3070\u3001\u5b9f\u52d9\u306e9\u5272\u306f\u5bfe\u5fdc\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>Range\u306b\u306f\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308b\u305f\u3081\u3001Set\u306e\u66f8\u304d\u5fd8\u308c\u304c\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u6c17\u3065\u304d\u306b\u304f\u3044\u30d0\u30b0\u306b\u306a\u308b\u3053\u3068\u304c\u3042\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>\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08Word\u30fbOutlook\u306a\u3069\uff09\u3092\u6271\u3046\u5834\u5408\u306f\u3001Quit\uff0bNothing\u3067\u306e\u5f8c\u7247\u4ed8\u3051\u3092\u5fd8\u308c\u306a\u3044<\/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>\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3089\u300c\u3069\u306e\u884c\u3067Set\u3092\u4ed8\u3051\u5fd8\u308c\u3066\u3044\u306a\u3044\u304b\u300d\u3092\u307e\u305a\u7591\u3046\u3068\u89e3\u6c7a\u304c\u65e9\u3044<\/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>VBA\u306e\u57fa\u790e\u3092\u7406\u89e3\u3057\u305f\u4e0a\u3067Claude Code\u306e\u3088\u3046\u306aAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u5c5e\u4eba\u5316\u30fb\u30c7\u30d0\u30c3\u30b0\u8ca0\u8377\u30fb\u9023\u643a\u306e\u5f31\u3055\u3068\u3044\u3063\u305f\u8ab2\u984c\u3092\u88dc\u3048\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306f\u3001VBA\u3092\u5b66\u3076\u4eba\u304c\u6700\u521d\u306b\u3076\u3064\u304b\u308b\u58c1\u306e\u4e00\u3064\u3067\u3059\u304c\u3001\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u5b9f\u4f53\u3067\u306f\u306a\u304f\u53c2\u7167\u3092\u6e21\u3059\u300d\u3068\u3044\u3046\u539f\u5247\u3055\u3048\u7406\u89e3\u3057\u3066\u3057\u307e\u3048\u3070\u3001\u305d\u308c\u307b\u3069\u96e3\u3057\u3044\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u305a\u306f\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u300cDim\u2192Set\u2192\u64cd\u4f5c\u2192Nothing\u300d\u3068\u3044\u3046\u578b\u3092\u3001\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u306a\u304c\u3089\u899a\u3048\u3066\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u5f0a\u793e\u3067\u306f\u300cAI\u9b3c\u7ba1\u7406\u300d\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3067\u3001Excel\/VBA\u696d\u52d9\u3092\u542b\u3081\u305f\u793e\u5185\u306e\u696d\u52d9\u81ea\u52d5\u5316\u306e\u8a2d\u8a08\u304b\u3089\u4f34\u8d70\u307e\u3067\u652f\u63f4\u3057\u3066\u3044\u307e\u3059\u3002VBA\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306b\u75b2\u308c\u3066\u304d\u305f\u3001\u3068\u3044\u3046\u65b9\u306f\u304a\u6c17\u8efd\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">VBA\u306e\u5c5e\u4eba\u5316\u30fb\u4fdd\u5b88\u8ca0\u62c5\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u89e3\u6d88\u3057\u307e\u305b\u3093\u304b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u91ce\u826f\u30de\u30af\u30ed\u300d\u306e\u5f15\u304d\u7d99\u304e\u3001\u30a8\u30e9\u30fc\u5bfe\u5fdc\u3001Excel\u696d\u52d9\u306e\u81ea\u52d5\u5316\u8a2d\u8a08\u3002<br>\u5f0a\u793e\u306e\u5b9f\u904b\u7528\u30ce\u30a6\u30cf\u30a6\u3092\u30d9\u30fc\u30b9\u306b\u3001\u500b\u5225\u306b\u5c0e\u5165\u8a2d\u8a08\u306e\u3054\u76f8\u8ac7\u3092\u627f\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\">VBA\u3067\u81ea\u52d5\u5316\u3057\u3066\u304d\u305f\u696d\u52d9\u3092\u3001Claude Code\u3092\u4f7f\u3063\u3066\u3055\u3089\u306b\u7701\u529b\u5316\u3057\u305f\u3044\u65b9\u306b\u6700\u9069\u3067\u3059\u3002\u307e\u305a\u306f\u7121\u6599\u76f8\u8ac7\u3067\u3001\u4eca\u306e\u696d\u52d9\u306e\u4e2d\u3067\u6700\u3082\u30a4\u30f3\u30d1\u30af\u30c8\u304c\u5927\u304d\u3044\u9069\u7528\u9818\u57df\u3092\u4e00\u7dd2\u306b\u898b\u3064\u3051\u307e\u3057\u3087\u3046\u3002<\/div>\n<\/div>\n\n\n\n<div style=\"background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);border-radius:16px;padding:36px 32px;margin:48px 0 16px;color:#fff;\">\n  <p style=\"font-size:13px;font-weight:700;color:#dc2626;letter-spacing:2px;margin:0 0 12px;\">NEXT STEP<\/p>\n  <p style=\"font-size:22px;font-weight:800;line-height:1.5;margin:0 0 20px;\">\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u3092\u3001\u3042\u306a\u305f\u306e\u30d3\u30b8\u30cd\u30b9\u3067<br>\u5b9f\u8df5\u3057\u3066\u307f\u307e\u305b\u3093\u304b\uff1f<\/p>\n  <div style=\"background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:24px;max-width:560px;margin:0 auto;\">\n    <p style=\"font-size:13px;color:#dc2626;font-weight:700;margin:0 0 8px;\">AI\u6d3b\u7528\u3092\u81ea\u793e\u3067\u56de\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u65b9\u3078<\/p>\n    <p style=\"font-size:20px;font-weight:800;margin:0 0 12px;\">AI\u9b3c\u7ba1\u7406<\/p>\n    <p style=\"font-size:14px;color:rgba(255,255,255,0.75);margin:0 0 20px;line-height:1.7;\">Claude Code\u30fbCowork\u5c0e\u5165\u652f\u63f4\u304b\u3089\u696d\u52d9\u8a2d\u8a08\u30fb\u793e\u5185\u6d78\u900f\u307e\u3067\u5b9f\u8df5\u30d9\u30fc\u30b9\u3067\u4f34\u8d70\u3002\u300c\u81ea\u793e\u3067\u56de\u305b\u308b\u7d44\u7e54\u300d\u309290\u65e5\u3067\u4f5c\u308b\u7d4c\u55b6\u8005\u5411\u3051\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3002<\/p>\n    <div style=\"text-align:center;\">\n      <a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&utm_medium=article&utm_campaign=vba-set-statement&utm_content=next-step-cta\" target=\"_blank\" rel=\"noopener\" style=\"display:inline-block;background:#dc2626;color:#fff;font-weight:700;font-size:15px;padding:14px 32px;border-radius:30px;text-decoration:none;\">AI\u9b3c\u7ba1\u7406\u3092\u8a73\u3057\u304f\u898b\u308b \u2192<\/a>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Q. Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4ed8\u3051\u308b\u3079\u304d\u304b\u3069\u3046\u304b\u3001\u7c21\u5358\u306b\u898b\u5206\u3051\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u53f3\u8fba\u306b\u66f8\u3044\u3066\u3044\u308b\u3082\u306e\u304c\u300cExcel\u306e\u4e2d\u306e\u30e2\u30ce\uff08\u30b7\u30fc\u30c8\u30fb\u30bb\u30eb\u7bc4\u56f2\u30fb\u30d6\u30c3\u30af\u306a\u3069\uff09\u300d\u3067\u3042\u308c\u3070Set\u304c\u5fc5\u8981\u3001\u300c\u6570\u5024\u3084\u6587\u5b57\u5217\u306a\u3069\u306e\u5358\u7d14\u306a\u5024\u300d\u3067\u3042\u308c\u3070Set\u4e0d\u8981\u3068\u8003\u3048\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\u8ff7\u3063\u305f\u3068\u304d\u306f\u3001\u305d\u306e\u5bfe\u8c61\u304c\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3068\u5224\u65ad\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. Set\u3068Let\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. Let\u306f\u5024\u305d\u306e\u3082\u306e\u3092\u4ee3\u5165\u3059\u308b\u305f\u3081\u306e\u672c\u6765\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u3001\u73fe\u5728\u306eVBA\u3067\u306f\u7701\u7565\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u306a\u305f\u3081\u3001\u666e\u6bb5\u66f8\u3044\u3066\u3044\u308b<code>x = 10<\/code>\u306f\u5b9f\u8cea\u7684\u306bLet\u304c\u7701\u7565\u3055\u308c\u305f\u5f62\u3067\u3059\u3002\u4e00\u65b9Set\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53c2\u7167\u3092\u4ee3\u5165\u3059\u308b\u305f\u3081\u306e\u5c02\u7528\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u3001\u7701\u7565\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u4e21\u8005\u306f\u4ee3\u5165\u306e\u5bfe\u8c61\uff08\u5024\u304b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\uff09\u306b\u3088\u3063\u3066\u660e\u78ba\u306b\u4f7f\u3044\u5206\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. Set\u3092\u5fd8\u308c\u308b\u3068\u3069\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. Worksheet\u306e\u3088\u3046\u306b\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u305f\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059\u300d\u3068\u3044\u3046\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002Range\u306e\u3088\u3046\u306b\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\uff08Value\uff09\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u306b\u5024\u3060\u3051\u304c\u4ee3\u5165\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u3001\u3053\u3061\u3089\u306e\u65b9\u304c\u3080\u3057\u308d\u539f\u56e0\u7a76\u660e\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5384\u4ecb\u306a\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. Nothing\u306f\u5fc5\u305a\u66f8\u304b\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u901a\u5e38\u306e\u30b7\u30fc\u30c8\u30fb\u30bb\u30eb\u64cd\u4f5c\u3067\u3042\u308c\u3070\u3001\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u7d42\u4e86\u3068\u3068\u3082\u306b\u5909\u6570\u306f\u81ea\u52d5\u7684\u306b\u89e3\u653e\u3055\u308c\u308b\u305f\u3081\u3001\u6bce\u56de\u66f8\u304b\u306a\u304f\u3066\u3082\u5927\u304d\u306a\u554f\u984c\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001CreateObject\u3067\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3057\u305f\u5834\u5408\u3084\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u30ec\u30d9\u30eb\u306e\u5909\u6570\u3068\u3057\u3066\u9577\u671f\u9593\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u6301\u3059\u308b\u5834\u5408\u306f\u3001\u660e\u793a\u7684\u306bNothing\u3067\u89e3\u653e\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. Object\u578b\u3067\u5ba3\u8a00\u3059\u308b\u306e\u3068\u3001Worksheet\u578b\u306e\u3088\u3046\u306b\u5177\u4f53\u7684\u306a\u578b\u3067\u5ba3\u8a00\u3059\u308b\u306e\u3068\u3067\u306f\u3001\u4f55\u304c\u9055\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u5177\u4f53\u7684\u306a\u578b\uff08Worksheet\u30fbRange\u30fbWorkbook\u306a\u3069\uff09\u3067\u5ba3\u8a00\u3059\u308b\u3068\u3001VBE\uff08VBA\u30a8\u30c7\u30a3\u30bf\uff09\u306e\u5165\u529b\u652f\u63f4\u304c\u52b9\u304d\u3001\u8aa4\u3063\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3092\u66f8\u3044\u305f\u3068\u304d\u306b\u65e9\u671f\u306b\u30a8\u30e9\u30fc\u3068\u3057\u3066\u6c17\u3065\u3051\u307e\u3059\u3002Object\u578b\u306f\u6c4e\u7528\u6027\u304c\u9ad8\u3044\u4e00\u65b9\u3067\u5165\u529b\u652f\u63f4\u304c\u52b9\u304d\u306b\u304f\u304f\u3001\u5b9f\u52d9\u3067\u306f\u300c\u4f55\u304c\u5165\u308b\u304b\u5206\u304b\u3063\u3066\u3044\u308b\u300d\u5834\u5408\u306f\u5177\u4f53\u7684\u306a\u578b\u3092\u512a\u5148\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. For Each\u6587\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30eb\u30fc\u30d7\u51e6\u7406\u3059\u308b\u3068\u304d\u3082\u3001Set\u306f\u5fc5\u8981\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. For Each\u6587\u81ea\u4f53\u306f\u5185\u90e8\u7684\u306bSet\u3068\u540c\u7b49\u306e\u51e6\u7406\u3092\u81ea\u52d5\u3067\u884c\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30eb\u30fc\u30d7\u5909\u6570\u306b\u5bfe\u3057\u3066\u660e\u793a\u7684\u306bSet\u3092\u66f8\u304f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u30eb\u30fc\u30d7\u5909\u6570\u81ea\u4f53\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\uff08Range\u30fbWorksheet\u306a\u3069\uff09\u3068\u3057\u3066\u5ba3\u8a00\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. VBA\u306e\u6587\u6cd5\u3092\u899a\u3048\u308b\u3088\u308a\u3001\u6700\u521d\u304b\u3089AI\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u305b\u305f\u65b9\u304c\u65e9\u3044\u306e\u3067\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u77ed\u671f\u7684\u306b\u306fAI\u306b\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3055\u305b\u308b\u65b9\u304c\u901f\u3044\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u751f\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u304c\u696d\u52d9\u4e0a\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3059\u308b\u306b\u306f\u3001Set\u3084Dim\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u57fa\u672c\u6982\u5ff5\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5f0a\u793e\u3067\u3082\u3001VBA\u306e\u57fa\u790e\u3092\u7406\u89e3\u3057\u305f\u62c5\u5f53\u8005\u304cAI\u306e\u751f\u6210\u7d50\u679c\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u4f53\u5236\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002\u57fa\u790e\u7406\u89e3\u3068AI\u6d3b\u7528\u306f\u5bfe\u7acb\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u4e21\u8f2a\u3068\u3057\u3066\u7d44\u307f\u5408\u308f\u305b\u308b\u306e\u304c\u5b9f\u52d9\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Set\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4ed8\u3051\u308b\u3079\u304d\u304b\u3069\u3046\u304b\u3001\u7c21\u5358\u306b\u898b\u5206\u3051\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u53f3\u8fba\u306b\u66f8\u3044\u3066\u3044\u308b\u3082\u306e\u304c\u300cExcel\u306e\u4e2d\u306e\u30e2\u30ce\uff08\u30b7\u30fc\u30c8\u30fb\u30bb\u30eb\u7bc4\u56f2\u30fb\u30d6\u30c3\u30af\u306a\u3069\uff09\u300d\u3067\u3042\u308c\u3070Set\u304c\u5fc5\u8981\u3001\u300c\u6570\u5024\u3084\u6587\u5b57\u5217\u306a\u3069\u306e\u5358\u7d14\u306a\u5024\u300d\u3067\u3042\u308c\u3070Set\u4e0d\u8981\u3068\u8003\u3048\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\u8ff7\u3063\u305f\u3068\u304d\u306f\u3001\u305d\u306e\u5bfe\u8c61\u304c\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3068\u5224\u65ad\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Set\u3068Let\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Let\u306f\u5024\u305d\u306e\u3082\u306e\u3092\u4ee3\u5165\u3059\u308b\u305f\u3081\u306e\u672c\u6765\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u3001\u73fe\u5728\u306eVBA\u3067\u306f\u7701\u7565\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u306a\u305f\u3081\u3001\u666e\u6bb5\u66f8\u3044\u3066\u3044\u308b<code>x = 10<\/code>\u306f\u5b9f\u8cea\u7684\u306bLet\u304c\u7701\u7565\u3055\u308c\u305f\u5f62\u3067\u3059\u3002\u4e00\u65b9Set\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53c2\u7167\u3092\u4ee3\u5165\u3059\u308b\u305f\u3081\u306e\u5c02\u7528\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u3001\u7701\u7565\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u4e21\u8005\u306f\u4ee3\u5165\u306e\u5bfe\u8c61\uff08\u5024\u304b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\uff09\u306b\u3088\u3063\u3066\u660e\u78ba\u306b\u4f7f\u3044\u5206\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Set\u3092\u5fd8\u308c\u308b\u3068\u3069\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Worksheet\u306e\u3088\u3046\u306b\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u305f\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059\u300d\u3068\u3044\u3046\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002Range\u306e\u3088\u3046\u306b\u65e2\u5b9a\u30d7\u30ed\u30d1\u30c6\u30a3\uff08Value\uff09\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u306b\u5024\u3060\u3051\u304c\u4ee3\u5165\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u3001\u3053\u3061\u3089\u306e\u65b9\u304c\u3080\u3057\u308d\u539f\u56e0\u7a76\u660e\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5384\u4ecb\u306a\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Nothing\u306f\u5fc5\u305a\u66f8\u304b\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u901a\u5e38\u306e\u30b7\u30fc\u30c8\u30fb\u30bb\u30eb\u64cd\u4f5c\u3067\u3042\u308c\u3070\u3001\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u7d42\u4e86\u3068\u3068\u3082\u306b\u5909\u6570\u306f\u81ea\u52d5\u7684\u306b\u89e3\u653e\u3055\u308c\u308b\u305f\u3081\u3001\u6bce\u56de\u66f8\u304b\u306a\u304f\u3066\u3082\u5927\u304d\u306a\u554f\u984c\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001CreateObject\u3067\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3057\u305f\u5834\u5408\u3084\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u30ec\u30d9\u30eb\u306e\u5909\u6570\u3068\u3057\u3066\u9577\u671f\u9593\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u6301\u3059\u308b\u5834\u5408\u306f\u3001\u660e\u793a\u7684\u306bNothing\u3067\u89e3\u653e\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Object\u578b\u3067\u5ba3\u8a00\u3059\u308b\u306e\u3068\u3001Worksheet\u578b\u306e\u3088\u3046\u306b\u5177\u4f53\u7684\u306a\u578b\u3067\u5ba3\u8a00\u3059\u308b\u306e\u3068\u3067\u306f\u3001\u4f55\u304c\u9055\u3044\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u5177\u4f53\u7684\u306a\u578b\uff08Worksheet\u30fbRange\u30fbWorkbook\u306a\u3069\uff09\u3067\u5ba3\u8a00\u3059\u308b\u3068\u3001VBE\uff08VBA\u30a8\u30c7\u30a3\u30bf\uff09\u306e\u5165\u529b\u652f\u63f4\u304c\u52b9\u304d\u3001\u8aa4\u3063\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3092\u66f8\u3044\u305f\u3068\u304d\u306b\u65e9\u671f\u306b\u30a8\u30e9\u30fc\u3068\u3057\u3066\u6c17\u3065\u3051\u307e\u3059\u3002Object\u578b\u306f\u6c4e\u7528\u6027\u304c\u9ad8\u3044\u4e00\u65b9\u3067\u5165\u529b\u652f\u63f4\u304c\u52b9\u304d\u306b\u304f\u304f\u3001\u5b9f\u52d9\u3067\u306f\u300c\u4f55\u304c\u5165\u308b\u304b\u5206\u304b\u3063\u3066\u3044\u308b\u300d\u5834\u5408\u306f\u5177\u4f53\u7684\u306a\u578b\u3092\u512a\u5148\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"For Each\u6587\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30eb\u30fc\u30d7\u51e6\u7406\u3059\u308b\u3068\u304d\u3082\u3001Set\u306f\u5fc5\u8981\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"For Each\u6587\u81ea\u4f53\u306f\u5185\u90e8\u7684\u306bSet\u3068\u540c\u7b49\u306e\u51e6\u7406\u3092\u81ea\u52d5\u3067\u884c\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30eb\u30fc\u30d7\u5909\u6570\u306b\u5bfe\u3057\u3066\u660e\u793a\u7684\u306bSet\u3092\u66f8\u304f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u30eb\u30fc\u30d7\u5909\u6570\u81ea\u4f53\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\uff08Range\u30fbWorksheet\u306a\u3069\uff09\u3068\u3057\u3066\u5ba3\u8a00\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"VBA\u306e\u6587\u6cd5\u3092\u899a\u3048\u308b\u3088\u308a\u3001\u6700\u521d\u304b\u3089AI\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u305b\u305f\u65b9\u304c\u65e9\u3044\u306e\u3067\u306f\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u77ed\u671f\u7684\u306b\u306fAI\u306b\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3055\u305b\u308b\u65b9\u304c\u901f\u3044\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u751f\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u304c\u696d\u52d9\u4e0a\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3059\u308b\u306b\u306f\u3001Set\u3084Dim\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u57fa\u672c\u6982\u5ff5\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5f0a\u793e\u3067\u3082\u3001VBA\u306e\u57fa\u790e\u3092\u7406\u89e3\u3057\u305f\u62c5\u5f53\u8005\u304cAI\u306e\u751f\u6210\u7d50\u679c\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u4f53\u5236\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002\u57fa\u790e\u7406\u89e3\u3068AI\u6d3b\u7528\u306f\u5bfe\u7acb\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u4e21\u8f2a\u3068\u3057\u3066\u7d44\u307f\u5408\u308f\u305b\u308b\u306e\u304c\u5b9f\u52d9\u7684\u3067\u3059\u3002\"\n      }\n    }\n  ]\n}\n<\/script>\n\n\n","protected":false},"excerpt":{"rendered":"<p>VBA\u306eSet\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3002Workbook\u30fbWorksheet\u30fbRange\u306a\u3069\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306e\u4f5c\u308a\u65b9\u3001Nothing\u3067\u306e\u89e3\u653e\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u3001\u5f0a\u793e\u306e\u5b9f\u904b\u7528\u30c7\u30fc\u30bf\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":25818,"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\u306eSet\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3002Workbook\u30fbWorksheet\u30fbRange\u306a\u3069\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306e\u4f5c\u308a\u65b9\u3001Nothing\u3067\u306e\u89e3\u653e\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u3001\u5f0a\u793e\u306e\u5b9f\u904b\u7528\u30c7\u30fc\u30bf\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\u3057\u307e\u3059\u3002","rank_math_focus_keyword":"VBA Set","rank_math_title":"\u30102026\u5e748\u6708\u6700\u65b0\u3011VBA\u306eSet\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u306f\uff1f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u306e\u4f5c\u308a\u65b9\u30fb\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac","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-25819","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\/25819","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=25819"}],"version-history":[{"count":3,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/25819\/revisions"}],"predecessor-version":[{"id":25822,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/25819\/revisions\/25822"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media\/25818"}],"wp:attachment":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media?parent=25819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/categories?post=25819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/tags?post=25819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}