{"id":26664,"date":"2026-08-07T20:36:02","date_gmt":"2026-08-07T11:36:02","guid":{"rendered":"https:\/\/genai-ai.co.jp\/ai-kanri\/?p=26664"},"modified":"2026-08-07T20:36:02","modified_gmt":"2026-08-07T11:36:02","slug":"vba-goto-error-handling","status":"publish","type":"post","link":"https:\/\/genai-ai.co.jp\/ai-kanri\/blog\/vba-goto-error-handling\/","title":{"rendered":"\u30102026\u5e748\u6708\u6700\u65b0\u3011VBA\u306eGoTo\u6587\u3068\u306f\uff1f\u30e9\u30d9\u30eb\u30fb\u30eb\u30fc\u30d7\u5236\u5fa1\u30fb\u30a8\u30e9\u30fc\u51e6\u7406\uff08On Error GoTo\uff09\u306e\u4f7f\u3044\u65b9"},"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-goto-error-handling-3.jpg\" alt=\"\u30102026\u5e748\u6708\u6700\u65b0\u3011VBA\u306eGoTo\u6587\u3068\u306f\uff1f\u30e9\u30d9\u30eb\u30fb\u30eb\u30fc\u30d7\u5236\u5fa1\u30fb\u30a8\u30e9\u30fc\u51e6\u7406\uff08On Error GoTo\uff09\u306e\u4f7f\u3044\u65b9\" 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>GoTo\u6587\u3068\u306f\u4f55\u304b\u2014\u2014\u51e6\u7406\u3092\u5f37\u5236\u7684\u306b\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u308b\u4ed5\u7d44\u307f<\/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>\u30e9\u30d9\u30eb\u3078\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u57fa\u672c\u306e\u4f7f\u3044\u65b9<\/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>On Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u57fa\u672c<\/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>\u306a\u305c\u300cGoTo\u306e\u591a\u7528\u300d\u306f\u9577\u5e74\u554f\u984c\u8996\u3055\u308c\u3066\u304d\u305f\u306e\u304b<\/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>\u3010\u72ec\u81ea\u3011\u696d\u52d9\u30de\u30af\u30ed\u306e\u300c\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u7518\u3055\u300d\u304c\u5f15\u304d\u8d77\u3053\u3059\u30c8\u30e9\u30d6\u30eb<\/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\u5b9f\u904b\u7528\uff1aAI\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u30ec\u30d3\u30e5\u30fc\u30fb\u6539\u5584<\/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>\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u304cAI\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u4efb\u305b\u308b3\u3064\u306e\u30b3\u30c4<\/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 \u2500\u2500 \u300c\u7570\u5e38\u6642\u306e\u5099\u3048\u300d\u304c\u696d\u52d9\u30de\u30af\u30ed\u306e\u4fe1\u983c\u6027\u3092\u6c7a\u3081\u308b<\/a><\/li>\n    <li><a href=\"#faq\" style=\"color:#495057;text-decoration:none;\"><span style=\"color:#dc2626;font-weight:700;margin-right:8px;\">FAQ<\/span>\u3088\u304f\u3042\u308b\u8cea\u554f<\/a><\/li>\n  <\/ol>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u696d\u52d9\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3057\u305f\u3089\u3001\u9014\u4e2d\u3067\u8b0e\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u51e6\u7406\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u305f\u300d\u300c\u62c5\u5f53\u8005\u304c\u3044\u306a\u3044\u3068\u304d\u306b\u30de\u30af\u30ed\u304c\u30a8\u30e9\u30fc\u3067\u6b62\u307e\u308a\u3001\u8ab0\u3082\u5bfe\u51e6\u3067\u304d\u306a\u304b\u3063\u305f\u300d\u2014\u2014ExcelVBA\u3067\u4f5c\u3089\u308c\u305f\u696d\u52d9\u30de\u30af\u30ed\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u3068\u3001\u3053\u3046\u3057\u305f\u5834\u9762\u306b\u4e00\u5ea6\u306f\u906d\u9047\u3059\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3046\u3057\u305f\u300c\u7570\u5e38\u4e8b\u614b\u3078\u306e\u5099\u3048\u300d\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u304c\u3001\u3053\u306e\u8a18\u4e8b\u306e\u30c6\u30fc\u30de\u3067\u3042\u308b<strong>GoTo\u6587<\/strong>\u3068\u3001\u305d\u308c\u3092\u4f7f\u3063\u305f<strong>On Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406<\/strong>\u3067\u3059\u3002\u51e6\u7406\u3092\u5f37\u5236\u7684\u306b\u5225\u306e\u5834\u6240\u3078\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u308bGoTo\u6587\u306f\u3001\u30eb\u30fc\u30d7\u5236\u5fa1\u3084\u30a8\u30e9\u30fc\u51e6\u7406\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u5834\u9762\u3067\u6d3b\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoTo\u6587\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u3001\u30e9\u30d9\u30eb\u3078\u306e\u30b8\u30e3\u30f3\u30d7\u3001On Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u3001\u305d\u3057\u3066<strong>\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7d4c\u55b6\u8005\u30fb\u7ba1\u7406\u8077\u306e\u65b9\u306b\u672c\u5f53\u306b\u77e5\u3063\u3066\u307b\u3057\u3044\u300c\u306a\u305c\u696d\u52d9\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u8efd\u8996\u3055\u308c\u308b\u3068\u5371\u967a\u306a\u306e\u304b\u300d<\/strong>\u307e\u3067\u3001\u5b9f\u52d9\u76ee\u7dda\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">VBA\u306e\u30b3\u30fc\u30c9\u3092\u81ea\u5206\u3067\u66f8\u3051\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u300c\u30a8\u30e9\u30fc\u51e6\u7406\u3068\u306f\u4f55\u3092\u3057\u3066\u3044\u308b\u4ed5\u7d44\u307f\u306a\u306e\u304b\u300d\u3092\u77e5\u3063\u3066\u304a\u304f\u3068\u3001\u696d\u52d9\u30de\u30af\u30ed\u304c\u6b62\u307e\u3063\u305f\u3068\u304d\u306b\u51b7\u9759\u306b\u5bfe\u51e6\u3067\u304d\u307e\u3059\u3057\u3001AI\u3078\u306e\u6539\u4fee\u4f9d\u983c\u306e\u8cea\u3082\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u5f0a\u793e\u3067\u3082\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u30de\u30af\u30ed\u304c\u539f\u56e0\u3067\u3001\u6708\u672b\u306e\u7de0\u3081\u4f5c\u696d\u304c\u6df1\u591c\u307e\u3067\u305a\u308c\u8fbc\u3093\u3060\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u65e5\u306f\u3053\u306e\u300c\u5730\u5473\u3060\u304c\u91cd\u8981\u306a\u4ed5\u7d44\u307f\u300d\u3092\u3001\u30b3\u30fc\u30c9\u304c\u8aad\u3081\u306a\u3044\u65b9\u306b\u3082\u5206\u304b\u308b\u8a00\u8449\u3067\u6574\u7406\u3057\u3066\u3044\u304d\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\u306e6\u3064\u304c\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>GoTo\u6587<\/strong>\u306e\u57fa\u672c\u3068\u3001\u4f55\u306e\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\u306e\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30e9\u30d9\u30eb<\/strong>\u3092\u4f7f\u3063\u305f\u30b8\u30e3\u30f3\u30d7\u306e\u4ed5\u7d44\u307f\u3068\u57fa\u672c\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><strong>On Error GoTo<\/strong>\u3092\u4f7f\u3063\u305f\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u57fa\u672c\u30d1\u30bf\u30fc\u30f3<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>GoTo\u306e\u591a\u7528<\/strong>\u304c\u306a\u305c\u9577\u5e74\u300c\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\u300d\u3068\u3055\u308c\u3066\u304d\u305f\u306e\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u696d\u52d9\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u4e0d\u8db3<\/strong>\u304c\u5f15\u304d\u8d77\u3053\u3059\u5177\u4f53\u7684\u306a\u30c8\u30e9\u30d6\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><strong>AI\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u5b9f\u88c5\u3092\u4efb\u305b\u308b<\/strong>\u969b\u306e\u3001\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u3067\u304d\u308b\u6307\u793a\u306e\u51fa\u3057\u65b9<\/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-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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;\">BASIC CONCEPT<\/span>\n  <span class=\"section-title\" style=\"display:block;\">GoTo\u6587\u3068\u306f\u4f55\u304b\u2014\u2014\u51e6\u7406\u3092\u5f37\u5236\u7684\u306b\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u308b\u4ed5\u7d44\u307f<\/span>\n  <span class=\"section-desc\">\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u9806\u5e8f\u3092\u5909\u3048\u308b\u6700\u3082\u539f\u59cb\u7684\u306a\u547d\u4ee4<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>GoTo<\/code>\u6587\u3068\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u4f4d\u7f6e\u3092\u3001\u901a\u5e38\u306e\u4e0a\u304b\u3089\u4e0b\u3078\u306e\u6d41\u308c\u3068\u306f\u95a2\u4fc2\u306a\u304f\u3001<strong>\u6307\u5b9a\u3057\u305f\u5834\u6240\u3078\u5f37\u5236\u7684\u306b\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u308b<\/strong>\u547d\u4ee4\u3067\u3059\u3002\u300cGo\uff08\u884c\u3051\uff09 To\uff08\u301c\u3078\uff09\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u901a\u308a\u3001\u30b3\u30fc\u30c9\u306e\u7279\u5b9a\u306e\u5730\u70b9\u3078\u51e6\u7406\u3092\u98db\u3070\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8<\/strong>\uff1aVBA\u306b\u304a\u3051\u308b\u300c\u547d\u4ee4\u6587\u300d\u306e\u3053\u3068\u3002<code>GoTo<\/code>\u3084<code>If<\/code>\u3001<code>For<\/code>\u306a\u3069\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u4f55\u3089\u304b\u306e\u52d5\u4f5c\u3092\u6307\u793a\u3059\u308b1\u30641\u3064\u306e\u6587\u3092\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b8\u30e3\u30f3\u30d7\u5148\u306e\u6307\u5b9a\u306b\u306f<strong>\u30e9\u30d9\u30eb<\/strong>\u3068\u3044\u3046\u76ee\u5370\u3092\u4f7f\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u3042\u308b\u6761\u4ef6\u3092\u6e80\u305f\u3057\u305f\u5834\u5408\u306b\u51e6\u7406\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u3001\u6700\u3082\u57fa\u672c\u7684\u306a\u4f7f\u7528\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Sub CheckScore()\n    Dim score As Integer\n    score = 45\n\n    If score < 60 Then\n        GoTo Fail\n    End If\n\n    MsgBox \"\u5408\u683c\u3067\u3059\"\n    Exit Sub\n\nFail:\n    MsgBox \"\u4e0d\u5408\u683c\u3067\u3059\"\nEnd Sub<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001<code>score<\/code>\u304c60\u672a\u6e80\u306e\u3068\u304d\u3001<code>GoTo Fail<\/code>\u306b\u3088\u3063\u3066\u51e6\u7406\u304c<code>Fail:<\/code>\u3068\u3044\u3046\u30e9\u30d9\u30eb\u306e\u4f4d\u7f6e\u307e\u3067\u4e00\u6c17\u306b\u98db\u3073\u307e\u3059\u3002<code>Exit Sub<\/code>\uff08\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u9014\u4e2d\u3067\u7d42\u4e86\u3059\u308b\u547d\u4ee4\uff09\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u6761\u4ef6\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u3001\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u5206\u5c90\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1-1. GoTo\u6587\u304c\u4f7f\u308f\u308c\u308b3\u3064\u306e\u4ee3\u8868\u7684\u306a\u5834\u9762<\/h3>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30e9\u30d9\u30eb\u3078\u306e\u30b8\u30e3\u30f3\u30d7<\/strong>\uff1a\u7279\u5b9a\u306e\u6761\u4ef6\u306e\u3068\u304d\u3001\u6c7a\u307e\u3063\u305f\u51e6\u7406\u307e\u3067\u4e00\u6c17\u306b\u98db\u3070\u3057\u305f\u3044\u5834\u5408<\/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>\u30eb\u30fc\u30d7\u306e\u30b9\u30ad\u30c3\u30d7<\/strong>\uff1a\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u4e2d\u3067\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u306e\u3068\u304d\u3060\u3051\u51e6\u7406\u3092\u98db\u3070\u3057\u305f\u3044\u5834\u5408<\/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<\/strong>\uff1a\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u3001\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3057\u305f\u30a8\u30e9\u30fc\u5bfe\u5fdc\u306e\u51e6\u7406\u3078\u98db\u3070\u3059\u5834\u5408\uff08On Error GoTo\uff09<\/span><\/div>\n\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;\">\u7d4c\u55b6\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u8996\u70b9<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">GoTo\u6587\u306f\u300c\u3082\u3057\u3082\u306e\u3068\u304d\u306e\u907f\u96e3\u7d4c\u8def\u3092\u30b3\u30fc\u30c9\u306b\u7528\u610f\u3057\u3066\u304a\u304f\u4ed5\u7d44\u307f\u300d\u3060\u3068\u30a4\u30e1\u30fc\u30b8\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7279\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u3067\u306e\u6d3b\u7528\u306f\u3001\u30de\u30af\u30ed\u304c\u4e88\u671f\u305b\u306c\u4e8b\u614b\u306b\u906d\u9047\u3057\u305f\u3068\u304d\u306b\u3001\u696d\u52d9\u3092\u6b62\u3081\u305a\u306b\u6e08\u307e\u305b\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u5099\u3048\u306b\u306a\u308a\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\">GoTo\u3068\u3044\u3046\u8a00\u8449\u3060\u3051\u805e\u304f\u3068\u96e3\u3057\u305d\u3046\u3067\u3059\u304c\u3001\u8981\u306f\u300c\u6761\u4ef6\u306b\u3088\u3063\u3066\u51e6\u7406\u306e\u884c\u304d\u5148\u3092\u5909\u3048\u308b\u300d\u3068\u3044\u3046\u3060\u3051\u306e\u8a71\u3067\u3059\u3002\u65e5\u5e38\u696d\u52d9\u3067\u3044\u3046\u300c\u30a4\u30ec\u30ae\u30e5\u30e9\u30fc\u5bfe\u5fdc\u30d5\u30ed\u30fc\u300d\u3092\u30b3\u30fc\u30c9\u3067\u8868\u73fe\u3057\u305f\u3082\u306e\u3060\u3068\u8003\u3048\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">1-2. \u5177\u4f53\u7684\u306a\u30a4\u30e1\u30fc\u30b8\uff1a\u7d4c\u8cbb\u7cbe\u7b97\u30c1\u30a7\u30c3\u30af\u3092\u4f8b\u306b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3046\u5c11\u3057\u5177\u4f53\u7684\u306a\u30a4\u30e1\u30fc\u30b8\u3092\u6301\u3064\u305f\u3081\u306b\u3001\u300c\u7d4c\u8cbb\u7cbe\u7b97\u306e\u7533\u8acb\u91d1\u984d\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30de\u30af\u30ed\u300d\u3092\u4f8b\u306b\u8003\u3048\u3066\u307f\u307e\u3059\u3002\u7533\u8acb\u91d1\u984d\u304c\u4e0a\u9650\uff08\u4f8b\u3048\u30705\u4e07\u5186\uff09\u3092\u8d85\u3048\u3066\u3044\u308b\u5834\u5408\u306f\u300c\u8981\u627f\u8a8d\u300d\u3001\u305d\u308c\u4ee5\u5916\u306f\u300c\u81ea\u52d5\u627f\u8a8d\u300d\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u696d\u52d9\u30eb\u30fc\u30eb\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GoTo\u6587\u3092\u4f7f\u3048\u3070\u3001\u300c\u4e0a\u9650\u3092\u8d85\u3048\u3066\u3044\u305f\u3089\u8981\u627f\u8a8d\u306e\u51e6\u7406\u3078\u30b8\u30e3\u30f3\u30d7\u3057\u3001\u305d\u308c\u4ee5\u5916\u306f\u305d\u306e\u307e\u307e\u81ea\u52d5\u627f\u8a8d\u306e\u51e6\u7406\u3092\u7d9a\u3051\u308b\u300d\u3068\u3044\u3046\u5206\u5c90\u3092\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u9020\u3067\u8868\u73fe\u3067\u304d\u307e\u3059\u3002\u3082\u3061\u308d\u3093If\u301cElse\u6587\u3067\u3082\u540c\u3058\u7d50\u679c\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u304c\u3001\u300c\u8907\u6570\u306e\u5224\u5b9a\u3092\u7d4c\u3066\u3001\u6700\u7d42\u7684\u306b\u6c7a\u307e\u3063\u305f\u51e6\u7406\u3078\u5408\u6d41\u3055\u305b\u305f\u3044\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u8907\u96d1\u306a\u5206\u5c90\u3067\u306f\u3001GoTo\u306b\u3088\u308b\u30b8\u30e3\u30f3\u30d7\u306e\u65b9\u304c\u51e6\u7406\u306e\u898b\u901a\u3057\u304c\u826f\u304f\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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;\">LABEL JUMP<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u30e9\u30d9\u30eb\u3078\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u57fa\u672c\u306e\u4f7f\u3044\u65b9<\/span>\n  <span class=\"section-desc\">\u30eb\u30fc\u30d7\u306e\u30b9\u30ad\u30c3\u30d7\u306b\u3082\u6d3b\u7528\u3067\u304d\u308b\u67d4\u8edf\u306a\u5236\u5fa1<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GoTo\u6587\u3092\u3088\u308a\u5b9f\u8df5\u7684\u306b\u4f7f\u3046\u4f8b\u3068\u3057\u3066\u3001<strong>\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u4e2d\u3067\u7279\u5b9a\u306e\u6761\u4ef6\u306e\u3068\u304d\u3060\u3051\u51e6\u7406\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b<\/strong>\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3066\u307f\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>\u30e9\u30d9\u30eb<\/strong>\uff1aGoTo\u6587\u306e\u30b8\u30e3\u30f3\u30d7\u5148\u3092\u793a\u3059\u300c\u76ee\u5370\u300d\u306e\u3053\u3068\u3002\u4efb\u610f\u306e\u540d\u524d\u306e\u672b\u5c3e\u306b\u30b3\u30ed\u30f3\uff08:\uff09\u3092\u4ed8\u3051\u3066\u8a18\u8ff0\u3057\u307e\u3059\uff08\u4f8b: <code>Fail:<\/code>\uff09\u3002\u30e9\u30d9\u30eb\u306f\u3001\u305d\u306e\u30e9\u30d9\u30eb\u3092\u4f7f\u3046GoTo\u6587\u3068<strong>\u540c\u3058\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185<\/strong>\u306b\u7f6e\u304f\u5fc5\u8981\u304c\u3042\u308a\u3001\u5225\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u30e9\u30d9\u30eb\u3078\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>Sub SkipNegative()\n    Dim i As Integer\n    Dim nums(1 To 5) As Integer\n    nums(1) = 3: nums(2) = -1: nums(3) = 7: nums(4) = -5: nums(5) = 2\n\n    For i = 1 To 5\n        If nums(i) < 0 Then GoTo NextLoop\n        Debug.Print nums(i) & \" \u306f\u6b63\u306e\u6570\u3067\u3059\"\nNextLoop:\n    Next i\nEnd Sub<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001\u914d\u5217\u306e\u4e2d\u306b\u8ca0\u306e\u6570\u304c\u3042\u3063\u305f\u5834\u5408\u3001<code>GoTo NextLoop<\/code>\u306b\u3088\u3063\u3066\u305d\u306e\u56de\u306e\u51e6\u7406\u3060\u3051\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3001\u6b21\u306e\u30eb\u30fc\u30d7\u3078\u9032\u307f\u307e\u3059\u3002\u306a\u304a\u3001\u540c\u3058\u76ee\u7684\u3092\u9054\u6210\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001VBA\u306b\u306f<code>For<\/code>\u30eb\u30fc\u30d7\u5c02\u7528\u306e<strong>Continue\u306b\u76f8\u5f53\u3059\u308b\u547d\u4ee4\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044<\/strong>\u305f\u3081\u3001\u4f1d\u7d71\u7684\u306b\u3053\u306eGoTo\u3092\u4f7f\u3063\u305f\u30b9\u30ad\u30c3\u30d7\u624b\u6cd5\u304c\u4f7f\u308f\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2-1. GoTo\u6587\u306e\u5236\u7d04\uff1a\u30b9\u30b3\u30fc\u30d7\u3092\u307e\u305f\u3044\u3060\u30b8\u30e3\u30f3\u30d7\u306f\u3067\u304d\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GoTo\u6587\u306b\u306f\u91cd\u8981\u306a\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u306f\u3001<strong>\u30b8\u30e3\u30f3\u30d7\u5148\u306e\u30e9\u30d9\u30eb\u306f\u3001\u5fc5\u305a\u540c\u3058\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4e2d\u306b\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044<\/strong>\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u5225\u306eSub\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3084\u3001\u5225\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3042\u308b\u30e9\u30d9\u30eb\u3078\u76f4\u63a5\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u5236\u7d04\u304c\u3042\u308b\u304a\u304b\u3052\u3067\u3001GoTo\u6587\u306e\u5f71\u97ff\u7bc4\u56f2\u306f\u300c\u305d\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4e2d\u3060\u3051\u300d\u306b\u9650\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>\u901a\u5e38\u306e\u6d41\u308c<\/strong><br><span style=\"font-size:12px;\">\u4e0a\u304b\u3089\u4e0b\u3078<br>\u9806\u756a\u306b\u5b9f\u884c<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u6761\u4ef6\u5224\u5b9a<\/strong><br><span style=\"font-size:12px;\">GoTo\u3067<br>\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u304b\u5224\u65ad<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u30e9\u30d9\u30eb\u3078\u30b8\u30e3\u30f3\u30d7<\/strong><br><span style=\"font-size:12px;\">\u6307\u5b9a\u3057\u305f\u4f4d\u7f6e\u307e\u3067<br>\u5f37\u5236\u7684\u306b\u79fb\u52d5<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u51e6\u7406\u3092\u7d99\u7d9a<\/strong><br><span style=\"font-size:12px;\">\u30b8\u30e3\u30f3\u30d7\u5148\u304b\u3089<br>\u51e6\u7406\u3092\u518d\u958b<\/span><\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u30eb\u30fc\u30d7\u306e\u30b9\u30ad\u30c3\u30d7\u3060\u3051\u304c\u76ee\u7684\u306a\u3089\u3001\u6761\u4ef6\u5206\u5c90\u306e\u66f8\u304d\u65b9\u3092\u5de5\u592b\u3059\u308b\u3053\u3068\u3067GoTo\u3092\u4f7f\u308f\u305a\u306b\u6e08\u3080\u30b1\u30fc\u30b9\u3082\u591a\u304f\u3042\u308a\u307e\u3059\u3002GoTo\u306f\u300c\u4ed6\u306b\u8aad\u307f\u3084\u3059\u3044\u66f8\u304d\u65b9\u304c\u306a\u3044\u304b\u300d\u3092\u4e00\u5ea6\u691c\u8a0e\u3057\u305f\u3046\u3048\u3067\u4f7f\u3046\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-2. \u30eb\u30fc\u30d7\u3092\u5b8c\u5168\u306b\u629c\u3051\u305f\u3044\u5834\u5408\u306fExit For \/ Exit Do\u3092\u4f7f\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u307b\u3069\u306e\u4f8b\u306f\u300c\u305d\u306e\u56de\u3060\u3051\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u3078\u9032\u3080\u300d\u51e6\u7406\u3067\u3057\u305f\u304c\u3001\u3053\u308c\u3068\u306f\u5225\u306b\u300c\u6761\u4ef6\u3092\u6e80\u305f\u3057\u305f\u6642\u70b9\u3067\u30eb\u30fc\u30d7\u81ea\u4f53\u3092\u5b8c\u5168\u306b\u7d42\u4e86\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u5834\u9762\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306fGoTo\u3067\u306f\u306a\u304f\u3001<code>Exit For<\/code>\uff08For\u30eb\u30fc\u30d7\u7528\uff09\u3084<code>Exit Do<\/code>\uff08Do\u301cLoop\u7528\uff09\u3068\u3044\u3046\u5c02\u7528\u306e\u547d\u4ee4\u3092\u4f7f\u3046\u306e\u304c\u6a19\u6e96\u7684\u306a\u66f8\u304d\u65b9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Sub FindFirstOver100()\n    Dim i As Integer\n    Dim nums(1 To 5) As Integer\n    nums(1) = 30: nums(2) = 80: nums(3) = 150: nums(4) = 60: nums(5) = 200\n\n    For i = 1 To 5\n        If nums(i) > 100 Then\n            MsgBox nums(i) & \" \u304c\u6700\u521d\u306b100\u3092\u8d85\u3048\u307e\u3057\u305f\"\n            Exit For  ' \u30eb\u30fc\u30d7\u81ea\u4f53\u3092\u3053\u3053\u3067\u5b8c\u5168\u306b\u7d42\u4e86\u3059\u308b\n        End If\n    Next i\nEnd Sub<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u300c\u305d\u306e\u56de\u3060\u3051\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u3078\u9032\u307f\u305f\u3044\u300d\u306a\u3089GoTo\u306b\u3088\u308b\u30b8\u30e3\u30f3\u30d7\u3001\u300c\u30eb\u30fc\u30d7\u81ea\u4f53\u3092\u5b8c\u5168\u306b\u629c\u3051\u305f\u3044\u300d\u306a\u3089Exit For \/ Exit Do<\/strong>\u3001\u3068\u3044\u3046\u4f7f\u3044\u5206\u3051\u3092\u899a\u3048\u3066\u304a\u304f\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u5834\u9762\u3067\u3088\u308a\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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;\">ERROR HANDLING<\/span>\n  <span class=\"section-title\" style=\"display:block;\">On Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u57fa\u672c<\/span>\n  <span class=\"section-desc\">\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u3068\u304d\u306e\u300c\u907f\u96e3\u7d4c\u8def\u300d\u3092\u7528\u610f\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GoTo\u6587\u306e\u4e2d\u3067\u3082\u7279\u306b\u5b9f\u52d9\u4e0a\u306e\u4fa1\u5024\u304c\u9ad8\u3044\u306e\u304c\u3001<code>On Error GoTo<\/code>\u3092\u4f7f\u3063\u305f<strong>\u30a8\u30e9\u30fc\u51e6\u7406<\/strong>\u3067\u3059\u3002\u30de\u30af\u30ed\u306e\u5b9f\u884c\u4e2d\u306b\u4f55\u3089\u304b\u306e\u30a8\u30e9\u30fc\uff080\u3067\u306e\u5272\u308a\u7b97\u3001\u5b58\u5728\u3057\u306a\u3044\u30b7\u30fc\u30c8\u306e\u53c2\u7167\u306a\u3069\uff09\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u3001\u901a\u5e38\u3067\u3042\u308c\u3070VBA\u306f\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8868\u793a\u3057\u3066\u30de\u30af\u30ed\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<code>On Error GoTo<\/code>\u3092\u4f7f\u3046\u3068\u3001\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306b\u6307\u5b9a\u3057\u305f\u30e9\u30d9\u30eb\u3078\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u3001\u72ec\u81ea\u306e\u30a8\u30e9\u30fc\u5bfe\u5fdc\u51e6\u7406\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u5b9f\u884c\u6642\u30a8\u30e9\u30fc<\/strong>\uff1a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u4e2d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306e\u3053\u3068\u3002\u6587\u6cd5\u4e0a\u306f\u6b63\u3057\u3044\u30b3\u30fc\u30c9\u3067\u3082\u3001\u300c\u5b58\u5728\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3053\u3046\u3068\u3057\u305f\u300d\u300c0\u3067\u5272\u308a\u7b97\u3092\u3057\u3088\u3046\u3068\u3057\u305f\u300d\u306a\u3069\u3001\u5b9f\u884c\u3057\u3066\u307f\u3066\u521d\u3081\u3066\u767a\u899a\u3059\u308b\u7a2e\u985e\u306e\u554f\u984c\u3092\u6307\u3057\u307e\u3059\u3002VBA\u3067\u306f\u65e2\u5b9a\u3067\u30a8\u30e9\u30fc\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3001\u51e6\u7406\u304c\u4e2d\u65ad\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>Sub SafeDivide()\n    On Error GoTo ErrorHandler\n\n    Dim result As Double\n    result = 10 \/ 0  ' \u610f\u56f3\u7684\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u308b\u4f8b\n\n    MsgBox \"\u8a08\u7b97\u7d50\u679c: \" & result\n    Exit Sub\n\nErrorHandler:\n    MsgBox \"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f: \" & Err.Description\nEnd Sub<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>On Error GoTo ErrorHandler<\/code>\u3092\u5b9f\u884c\u3057\u3066\u304a\u304f\u3068\u3001\u4ee5\u964d\u306e\u51e6\u7406\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u77ac\u9593\u306b<code>ErrorHandler:<\/code>\u30e9\u30d9\u30eb\u3078\u30b8\u30e3\u30f3\u30d7\u3057\u307e\u3059\u3002<code>Err<\/code>\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3046\u3068\u3001\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\uff08<code>Err.Description<\/code>\uff09\u3084\u756a\u53f7\uff08<code>Err.Number<\/code>\uff09\u3092\u53d6\u5f97\u3067\u304d\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>Err\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff1aVBA\u304c\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u306e\u60c5\u5831\u3092\u81ea\u52d5\u7684\u306b\u683c\u7d0d\u3057\u3066\u304a\u304f\u7279\u5225\u306a\u5165\u308c\u7269\u3002<code>Err.Number<\/code>\u3067\u30a8\u30e9\u30fc\u756a\u53f7\u3001<code>Err.Description<\/code>\u3067\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u8aac\u660e\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u4e2d\u3067\u3053\u306e\u60c5\u5831\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u300c\u4f55\u304c\u539f\u56e0\u3067\u5931\u6557\u3057\u305f\u306e\u304b\u300d\u3092\u62c5\u5f53\u8005\u306b\u5206\u304b\u308a\u3084\u3059\u304f\u4f1d\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3-1. On Error GoTo 0\uff1a\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u7121\u52b9\u5316\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>On Error GoTo 0<\/code>\u3068\u3044\u3046\u7279\u6b8a\u306a\u66f8\u304d\u65b9\u306f\u3001\u305d\u308c\u307e\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u7121\u52b9\u5316\u3057\u3001\u901a\u5e38\u306e\uff08VBA\u306e\u6a19\u6e96\u7684\u306a\uff09\u30a8\u30e9\u30fc\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\u306b\u623b\u3059\u547d\u4ee4\u3067\u3059\u3002\u7279\u5b9a\u306e\u51e6\u7406\u30d6\u30ed\u30c3\u30af\u3060\u3051\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u6709\u52b9\u306b\u3057\u3001\u305d\u306e\u5f8c\u306f\u901a\u5e38\u306e\u52d5\u4f5c\u306b\u623b\u3057\u305f\u3044\u5834\u5408\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3-2. On Error Resume Next\uff1a\u30a8\u30e9\u30fc\u3092\u7121\u8996\u3057\u3066\u6b21\u3078\u9032\u3080<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3046\u4e00\u3064\u3088\u304f\u4f7f\u308f\u308c\u308b\u306e\u304c<code>On Error Resume Next<\/code>\u3067\u3059\u3002\u3053\u308c\u306f\u30e9\u30d9\u30eb\u3078\u306e\u30b8\u30e3\u30f3\u30d7\u3067\u306f\u306a\u304f\u3001<strong>\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3082\u51e6\u7406\u3092\u6b62\u3081\u305a\u3001\u6b21\u306e\u884c\u304b\u3089\u5b9f\u884c\u3092\u7d99\u7d9a\u3059\u308b<\/strong>\u3068\u3044\u3046\u6307\u5b9a\u3067\u3059\u3002\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3060\u3051\u3067\u3001\u306a\u3051\u308c\u3070\u306a\u3044\u3067\u51e6\u7406\u3092\u7d9a\u3051\u305f\u3044\u300d\u3068\u3044\u3063\u305f\u5834\u9762\u3067\u4f7f\u308f\u308c\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;\">On Error Resume Next\u306e\u4e71\u7528\u306b\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">On Error Resume Next\u306f\u4fbf\u5229\u306a\u53cd\u9762\u3001\u305d\u308c\u4ee5\u964d\u306b\u767a\u751f\u3057\u305f\u3059\u3079\u3066\u306e\u30a8\u30e9\u30fc\u3092\u7121\u8a00\u3067\u7121\u8996\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u60f3\u5b9a\u3057\u3066\u3044\u306a\u3044\u7b87\u6240\u306e\u30a8\u30e9\u30fc\u307e\u3067\u63e1\u308a\u3064\u3076\u3057\u3066\u3057\u307e\u3044\u3001\u4e0d\u5177\u5408\u306e\u539f\u56e0\u7a76\u660e\u3092\u56f0\u96e3\u306b\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u6709\u52b9\u306b\u3059\u308b\u7bc4\u56f2\u3092\u6700\u5c0f\u9650\u306b\u7d5e\u308a\u3001\u4f7f\u3044\u7d42\u308f\u3063\u305f\u3089\u901f\u3084\u304b\u306b\u5143\u306e\u72b6\u614b\u306b\u623b\u3059\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\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\">On Error Resume Next\u306f\u300c\u898b\u3066\u898b\u306c\u3075\u308a\u3092\u3059\u308b\u300d\u547d\u4ee4\u3060\u3068\u6349\u3048\u3066\u3044\u307e\u3059\u3002\u4f7f\u3046\u5834\u9762\u3092\u8aa4\u308b\u3068\u3001\u672c\u6765\u6c17\u3065\u304f\u3079\u304d\u91cd\u5927\u306a\u30a8\u30e9\u30fc\u307e\u3067\u96a0\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u4f7f\u7528\u306f\u9650\u5b9a\u7684\u306b\u3059\u3079\u304d\u3060\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3-3. \u5b9f\u52d9\u3067\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u578b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u696d\u52d9\u30de\u30af\u30ed\u3067\u5b9f\u969b\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u5b9a\u756a\u30d1\u30bf\u30fc\u30f3\u304c\u3042\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>\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044<\/strong>\uff1a\u51e6\u7406\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6709\u7121\u3092\u78ba\u8a8d\u3057\u3001\u306a\u3051\u308c\u3070\u5206\u304b\u308a\u3084\u3059\u3044\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u3057\u3066\u7d42\u4e86\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>\u30b7\u30fc\u30c8\u304c\u5b58\u5728\u3057\u306a\u3044<\/strong>\uff1a\u60f3\u5b9a\u3057\u305f\u30b7\u30fc\u30c8\u540d\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306b\u3001\u539f\u56e0\u3092\u4f1d\u3048\u3066\u51e6\u7406\u3092\u4e2d\u65ad\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>\u5165\u529b\u5024\u304c\u4e0d\u6b63<\/strong>\uff1a\u6570\u5024\u304c\u5165\u308b\u3079\u304d\u6b04\u306b\u6587\u5b57\u304c\u5165\u3063\u3066\u3044\u308b\u7b49\u306e\u5834\u5408\u3001\u8a72\u5f53\u7b87\u6240\u3092\u4f1d\u3048\u3066\u4fee\u6b63\u3092\u4fc3\u3059<\/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>\u5916\u90e8\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u901a\u4fe1\u30a8\u30e9\u30fc<\/strong>\uff1a\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u9023\u643a\u51e6\u7406\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3001\u30ea\u30c8\u30e9\u30a4\u3059\u308b\u304b\u4e2d\u65ad\u3059\u308b\u304b\u3092\u5224\u65ad\u3059\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u3042\u3089\u304b\u3058\u3081\u6d17\u3044\u51fa\u3057\u3001\u305d\u308c\u305e\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u300c\u60f3\u5b9a\u5916\u306e\u4e8b\u614b\u3067\u30de\u30af\u30ed\u304c\u5b8c\u5168\u306b\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u300d\u30ea\u30b9\u30af\u3092\u5927\u304d\u304f\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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;\">WHY CONTROVERSIAL<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u306a\u305c\u300cGoTo\u306e\u591a\u7528\u300d\u306f\u9577\u5e74\u554f\u984c\u8996\u3055\u308c\u3066\u304d\u305f\u306e\u304b<\/span>\n  <span class=\"section-desc\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6b74\u53f2\u306b\u6b8b\u308b\u8b70\u8ad6\u3092\u77e5\u3063\u3066\u304a\u304f<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GoTo\u6587\u306f\u3001\u5b9f\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e16\u754c\u3067\u9577\u5e74\u300c\u591a\u7528\u3059\u3079\u304d\u3067\u306a\u3044\u300d\u3068\u8a00\u308f\u308c\u7d9a\u3051\u3066\u304d\u305f\u3001\u3084\u3084\u7279\u6b8a\u306a\u7acb\u3061\u4f4d\u7f6e\u306e\u547d\u4ee4\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u306b\u3082\u77e5\u3063\u3066\u304a\u3044\u3066\u307b\u3057\u3044\u80cc\u666f\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GoTo\u6587\u3092\u30b3\u30fc\u30c9\u306e\u3042\u3061\u3053\u3061\u3067\u4f7f\u3044\u3059\u304e\u308b\u3068\u3001\u51e6\u7406\u306e\u6d41\u308c\u304c\u8907\u96d1\u306b\u5165\u308a\u7d44\u307f\u3001<strong>\u30b3\u30fc\u30c9\u3092\u8aad\u3093\u3067\u3082\u300c\u6b21\u306b\u3069\u3053\u3078\u9032\u3080\u306e\u304b\u300d\u304c\u8ffd\u3044\u306b\u304f\u304f\u306a\u308b<\/strong>\u3068\u3044\u3046\u554f\u984c\u304c\u8d77\u3053\u308a\u307e\u3059\u3002\u3053\u306e\u72b6\u614b\u306f\u3001\u7cf8\u304c\u8907\u96d1\u306b\u7d61\u307f\u5408\u3063\u305f\u69d8\u5b50\u306b\u306a\u305e\u3089\u3048\u3066<strong>\u300c\u30b9\u30d1\u30b2\u30c3\u30c6\u30a3\u30b3\u30fc\u30c9\u300d<\/strong>\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u63d0\u8d77\u306f\u53e4\u304f\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e16\u754c\u3067\u5e83\u304f\u8b70\u8ad6\u3055\u308c\u3066\u304d\u305f\u3001\u8457\u540d\u306a\u8ad6\u70b9\u306e\u4e00\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30b9\u30d1\u30b2\u30c3\u30c6\u30a3\u30b3\u30fc\u30c9<\/strong>\uff1a\u51e6\u7406\u306e\u6d41\u308c\u304c\u8907\u96d1\u306b\u5165\u308a\u7d44\u307f\u3001\u3069\u3053\u304b\u3089\u3069\u3053\u3078\u5b9f\u884c\u304c\u79fb\u308b\u306e\u304b\u3092\u8ffd\u3044\u306b\u304f\u304f\u306a\u3063\u305f\u30b3\u30fc\u30c9\u3092\u6307\u3059\u4fd7\u79f0\u3002GoTo\u6587\u306e\u591a\u7528\u304c\u5178\u578b\u7684\u306a\u539f\u56e0\u306e\u4e00\u3064\u3068\u3055\u308c\u3001\u4fee\u6b63\u30fb\u4fdd\u5b88\u304c\u56f0\u96e3\u306b\u306a\u308a\u3084\u3059\u3044\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<table>\n<thead><tr><th>\u66f8\u304d\u65b9<\/th><th>\u30e1\u30ea\u30c3\u30c8<\/th><th>\u30c7\u30e1\u30ea\u30c3\u30c8<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>GoTo\u6587\u3092\u591a\u7528\u3059\u308b<\/td><td>\u6761\u4ef6\u5206\u5c90\u3092\u7d20\u65e9\u304f\u66f8\u3051\u308b\u3001\u5c40\u6240\u7684\u306b\u306f\u76f4\u611f\u7684<\/td><td>\u51e6\u7406\u306e\u6d41\u308c\u304c\u8ffd\u3044\u306b\u304f\u304f\u306a\u308a\u3001\u898f\u6a21\u304c\u5927\u304d\u304f\u306a\u308b\u307b\u3069\u4fdd\u5b88\u304c\u56f0\u96e3\u306b<\/td><\/tr>\n<tr><td>If \/ For \/ Do While\u7b49\u3067\u69cb\u9020\u5316\u3059\u308b<\/td><td>\u51e6\u7406\u306e\u6d41\u308c\u304c\u4e0a\u304b\u3089\u4e0b\u3078\u8ffd\u3044\u3084\u3059\u3044\u3001\u4fdd\u5b88\u3057\u3084\u3059\u3044<\/td><td>GoTo\u306b\u6bd4\u3079\u3066\u66f8\u304d\u65b9\u306b\u3084\u3084\u6163\u308c\u304c\u5fc5\u8981\u306a\u5834\u5408\u304c\u3042\u308b<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">4-1. \u73fe\u5728\u306e\u5b9f\u52d9\u3067\u306e\u4f4d\u7f6e\u3065\u3051\uff1a\u300c\u30a8\u30e9\u30fc\u51e6\u7406\u300d\u306f\u4f8b\u5916\u7684\u306b\u8a31\u5bb9\u3055\u308c\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3046\u3057\u305f\u80cc\u666f\u304b\u3089\u3001\u73fe\u5728\u306e\u5b9f\u52d9\u3067\u306f\u300c\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u306e\u30b9\u30ad\u30c3\u30d7\u306bGoTo\u3092\u591a\u7528\u3059\u308b\u306e\u306f\u907f\u3051\u3001\u4ee3\u308f\u308a\u306bIf\u6587\u3084For\u6587\u3067\u69cb\u9020\u5316\u3059\u308b\u300d\u306e\u304c\u57fa\u672c\u65b9\u91dd\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u4f8b\u5916\u304c\u3042\u308a\u3001<strong>On Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306f\u3001GoTo\u6587\u306e\u6570\u5c11\u306a\u3044\u300c\u5b9f\u52d9\u4e0a\u307b\u307c\u5fc5\u9808\u300d\u3068\u3055\u308c\u308b\u7528\u9014<\/strong>\u3067\u3059\u3002VBA\u306b\u306f\u3001\u4ed6\u306e\u591a\u304f\u306e\u73fe\u4ee3\u7684\u306a\u8a00\u8a9e\u306b\u3042\u308b\u3088\u3046\u306atry-catch\u5f62\u5f0f\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u69cb\u6587\u304c\u306a\u3044\u305f\u3081\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u66f8\u304f\u624b\u6bb5\u3068\u3057\u3066On Error GoTo\u304c\u6a19\u6e96\u7684\u306b\u4f7f\u308f\u308c\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"point-box\">\n  <div class=\"point-title\">\u899a\u3048\u3066\u304a\u304d\u305f\u3044\u539f\u5247<\/div>\n  <p><strong>\u300c\u6761\u4ef6\u5206\u5c90\u30fb\u30eb\u30fc\u30d7\u5236\u5fa1\u300d\u3067\u306fGoTo\u3092\u907f\u3051\u3001If\/For\/Do\u7b49\u3067\u66f8\u304f\u3002\u300c\u30a8\u30e9\u30fc\u51e6\u7406\u300d\u3067\u306fOn Error GoTo\u3092\u7a4d\u6975\u7684\u306b\u4f7f\u3046\u3002<\/strong>\u3053\u306e\u4f7f\u3044\u5206\u3051\u304c\u3001\u73fe\u5728\u306eVBA\u5b9f\u52d9\u306b\u304a\u3051\u308b\u6a19\u6e96\u7684\u306a\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u300cGoTo\u6587\u306f\u60aa\u300d\u3068\u3044\u3046\u8a71\u3060\u3051\u304c\u72ec\u308a\u6b69\u304d\u3057\u304c\u3061\u3067\u3059\u304c\u3001\u6b63\u78ba\u306b\u306f\u300c\u4f7f\u3044\u3069\u3053\u308d\u3092\u9078\u3076\u3079\u304d\u300d\u3068\u3044\u3046\u306e\u304c\u5b9f\u60c5\u3067\u3059\u3002\u7279\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u306b\u304a\u3044\u3066\u306f\u3001GoTo\u3092\u4f7f\u308f\u306a\u3044\u4ee3\u66ff\u624b\u6bb5\u306e\u65b9\u304c\u3080\u3057\u308d\u5c11\u6570\u6d3e\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-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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;\">RISK IN PRACTICE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u72ec\u81ea\u3011\u696d\u52d9\u30de\u30af\u30ed\u306e\u300c\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u7518\u3055\u300d\u304c\u5f15\u304d\u8d77\u3053\u3059\u30c8\u30e9\u30d6\u30eb<\/span>\n  <span class=\"section-desc\">\u300c\u52d5\u3044\u3066\u3044\u308b\u3046\u3061\u306f\u6c17\u3065\u304b\u306a\u3044\u300d\u30ea\u30b9\u30af\u306e\u6b63\u4f53<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u3001\u3053\u306e\u8a18\u4e8b\u306e\u72ec\u81ea\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3059\u3002\u30a8\u30e9\u30fc\u51e6\u7406\u306f\u3001\u6b63\u5e38\u306b\u52d5\u3044\u3066\u3044\u308b\u9593\u306f\u305d\u306e\u91cd\u8981\u6027\u306b\u6c17\u3065\u304d\u306b\u304f\u3044\u4ed5\u7d44\u307f\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u3044\u3056\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u3068\u304d\u306e\u5099\u3048\u306e\u6709\u7121\u304c\u3001\u696d\u52d9\u3078\u306e\u5f71\u97ff\u5ea6\u3092\u5927\u304d\u304f\u5de6\u53f3\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5-1. \u62c5\u5f53\u8005\u4e0d\u5728\u6642\u306b\u300c\u8ab0\u3082\u5bfe\u51e6\u3067\u304d\u306a\u3044\u300d\u30a8\u30e9\u30fc\u505c\u6b62<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u30de\u30af\u30ed\u306f\u3001\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u77ac\u9593\u306b\u3001VBA\u306e\u6a19\u6e96\u30a8\u30e9\u30fc\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u305f\u307e\u307e\u505c\u6b62\u3057\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u62c5\u5f53\u8005\u3067\u3042\u308c\u3070\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u5185\u5bb9\u304b\u3089\u539f\u56e0\u3092\u63a8\u6e2c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001<strong>\u62c5\u5f53\u8005\u304c\u4e0d\u5728\u306e\u3068\u304d\u306b\u4ed6\u306e\u793e\u54e1\u304c\u3053\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u906d\u9047\u3059\u308b\u3068\u3001\u4f55\u3082\u3067\u304d\u305a\u306b\u7acb\u3061\u5f80\u751f\u3057\u3066\u3057\u307e\u3046<\/strong>\u30b1\u30fc\u30b9\u304c\u983b\u767a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5-2. \u30a8\u30e9\u30fc\u306e\u300c\u63e1\u308a\u3064\u3076\u3057\u300d\u306b\u3088\u308b\u554f\u984c\u306e\u767a\u898b\u9045\u308c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u8ff0\u306e<code>On Error Resume Next<\/code>\u3092\u5b89\u6613\u306b\u4f7f\u3044\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3082\u4f55\u3082\u8868\u793a\u3057\u306a\u3044\u307e\u307e\u51e6\u7406\u3092\u7d99\u7d9a\u3055\u305b\u3066\u3057\u307e\u3046\u30de\u30af\u30ed\u3082\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u5834\u5408\u3001<strong>\u5b9f\u969b\u306b\u306f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u305f\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u8ab0\u306b\u3082\u6c17\u3065\u304b\u308c\u306a\u3044\u307e\u307e\u51e6\u7406\u304c\u300c\u6210\u529f\u3057\u305f\u304b\u306e\u3088\u3046\u306b\u300d\u9032\u3093\u3067\u3057\u307e\u3046<\/strong>\u3068\u3044\u3046\u3001\u3088\u308a\u6df1\u523b\u306a\u554f\u984c\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5-3. \u90e8\u5206\u7684\u306b\u51e6\u7406\u3055\u308c\u305f\u4e2d\u9014\u534a\u7aef\u306a\u30c7\u30fc\u30bf\u306e\u767a\u751f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070100\u4ef6\u306e\u30c7\u30fc\u30bf\u3092\u9806\u756a\u306b\u51e6\u7406\u3059\u308b\u30de\u30af\u30ed\u304c\u300150\u4ef6\u76ee\u3067\u30a8\u30e9\u30fc\u306b\u3088\u308a\u505c\u6b62\u3057\u305f\u5834\u5408\u3001<strong>\u300c50\u4ef6\u306f\u51e6\u7406\u6e08\u307f\u3001\u6b8b\u308a50\u4ef6\u306f\u672a\u51e6\u7406\u300d\u3068\u3044\u3046\u4e2d\u9014\u534a\u7aef\u306a\u72b6\u614b<\/strong>\u304c\u30b7\u30b9\u30c6\u30e0\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u6b8b\u308a\u307e\u3059\u3002\u3053\u306e\u72b6\u614b\u306b\u6c17\u3065\u304b\u305a\u8ffd\u52a0\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4e8c\u91cd\u51e6\u7406\u3084\u96c6\u8a08\u306e\u30ba\u30ec\u306b\u3064\u306a\u304c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>\u30a8\u30e9\u30fc\u51e6\u7406\u306a\u3057<\/strong><br><span style=\"font-size:12px;\">\u5bfe\u5fdc\u7b56\u304c<br>\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u767a\u751f<\/strong><br><span style=\"font-size:12px;\">\u60f3\u5b9a\u5916\u306e<br>\u30c7\u30fc\u30bf\u30fb\u72b6\u6cc1\u306b\u906d\u9047<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u51e6\u7406\u304c\u4e2d\u65ad<\/strong><br><span style=\"font-size:12px;\">\u62c5\u5f53\u8005\u4e0d\u5728\u3060\u3068<br>\u8ab0\u3082\u5bfe\u51e6\u3067\u304d\u306a\u3044<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>\u696d\u52d9\u5f71\u97ff\u304c\u62e1\u5927<\/strong><br><span style=\"font-size:12px;\">\u4e2d\u9014\u534a\u7aef\u306a\u30c7\u30fc\u30bf\u30fb<br>\u7de0\u3081\u4f5c\u696d\u306e\u9045\u5ef6\u7b49<\/span><\/div>\n<\/div>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u30c8\u30e9\u30d6\u30eb\u4e8b\u4f8b\u306b\u3064\u3044\u3066\u306e\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u672c\u8a18\u4e8b\u306e\u4e8b\u4f8b\u306f\u4e00\u822c\u7684\u306b\u8d77\u3053\u308a\u3046\u308b\u30d1\u30bf\u30fc\u30f3\u306e\u8aac\u660e\u3067\u3042\u308a\u3001\u7279\u5b9a\u306e\u4f01\u696d\u4e8b\u4f8b\u3092\u793a\u3059\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30de\u30af\u30ed\u306e\u898f\u6a21\u30fb\u904b\u7528\u4f53\u5236\u306b\u3088\u3063\u3066\u767a\u751f\u6761\u4ef6\u3084\u5f71\u97ff\u5ea6\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5-4. \u30a8\u30e9\u30fc\u51e6\u7406\u3092\u300c\u5f8c\u56de\u3057\u300d\u306b\u3059\u308b\u30b3\u30b9\u30c8\u306e\u5dee<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a8\u30e9\u30fc\u51e6\u7406\u306f\u3001\u30de\u30af\u30ed\u4f5c\u6210\u6642\u306b\u7d44\u307f\u8fbc\u3093\u3067\u304a\u304f\u30b3\u30b9\u30c8\u3068\u3001\u5f8c\u304b\u3089\u8ffd\u52a0\u3059\u308b\u30b3\u30b9\u30c8\u3068\u3067\u3001\u5fc5\u8981\u306a\u5de5\u6570\u304c\u5927\u304d\u304f\u7570\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u8aac\u660e\u306e\u305f\u3081\u306e\u6982\u7b97\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u30bf\u30a4\u30df\u30f3\u30b0<\/th><th>\u4e3b\u306a\u4f5c\u696d\u5185\u5bb9<\/th><th>\u5f71\u97ff\u7bc4\u56f2\uff08\u6982\u7b97\u30a4\u30e1\u30fc\u30b8\uff09<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u4f5c\u6210\u6642\uff08\u60f3\u5b9a\u3055\u308c\u308b\u30a8\u30e9\u30fc\u3092\u6d17\u3044\u51fa\u3059\uff09<\/td><td>On Error GoTo\u306e\u7d44\u307f\u8fbc\u307f\u306e\u307f<\/td><td>\u6570\u5341\u5206\u7a0b\u5ea6<\/td><\/tr>\n<tr><td>\u904b\u7528\u958b\u59cb\u5f8c\uff08\u30a8\u30e9\u30fc\u3067\u4e00\u5ea6\u6b62\u307e\u3063\u305f\u5f8c\uff09<\/td><td>\u539f\u56e0\u8abf\u67fb\uff0b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u8ffd\u52a0\u5b9f\u88c5<\/td><td>\u6570\u6642\u9593\u7a0b\u5ea6<\/td><\/tr>\n<tr><td>\u30a8\u30e9\u30fc\u304c\u63e1\u308a\u3064\u3076\u3055\u308c\u554f\u984c\u304c\u767a\u899a\u3057\u305f\u5f8c<\/td><td>\u30c7\u30fc\u30bf\u691c\u8a3c\u30fb\u8a02\u6b63\u30fb\u95a2\u4fc2\u8005\u3078\u306e\u8aac\u660e<\/td><td>\u6570\u65e5\u898f\u6a21\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308b<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8868\u304b\u3089\u3082\u5206\u304b\u308b\u901a\u308a\u3001<strong>\u300c\u4f5c\u6210\u6642\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u7d44\u307f\u8fbc\u3093\u3067\u304a\u304f\u300d\u3068\u3044\u3046\u4e00\u624b\u9593\u306f\u3001\u5f8c\u3005\u306e\u696d\u52d9\u505c\u6b62\u3084\u8aac\u660e\u5bfe\u5fdc\u3092\u9632\u3050\u305f\u3081\u306e\u3001\u6975\u3081\u3066\u8cbb\u7528\u5bfe\u52b9\u679c\u306e\u9ad8\u3044\u6295\u8cc7<\/strong>\u3060\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u72ec\u81ea\u30c7\u30fc\u30bf\u3011GENAI\u5b9f\u904b\u7528\uff1aAI\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u30ec\u30d3\u30e5\u30fc\u30fb\u6539\u5584<\/span>\n  <span class=\"section-desc\">Claude Code\u304c\u696d\u52d9\u30de\u30af\u30ed\u306e\u5b89\u5168\u6027\u5411\u4e0a\u3092\u3069\u3046\u652f\u63f4\u3057\u3066\u3044\u308b\u304b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\uff08\u682a\u5f0f\u4f1a\u793eGENAI\uff09\u3067\u306f\u3001Claude Max 20x\u30d7\u30e9\u30f3\uff08\u6708\u984d$200\u30fb\u7d0430,000\u5186\uff09\u3092\u5951\u7d04\u3057\u3001\u55b6\u696d\u30fb\u5e83\u544a\u904b\u7528\u30fb\u8a18\u4e8b\u5236\u4f5c\u30fb\u7d4c\u7406\u30fb\u79d8\u66f8\u696d\u52d9\u307e\u3067\u793e\u5185\u306e\u3042\u3089\u3086\u308b\u696d\u52d9\u3067Claude Code\u3092\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u4e2d\u306b\u306f\u3001\u65e2\u5b58\u306eExcel\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u30ec\u30d3\u30e5\u30fc\u30fb\u6539\u5584\u696d\u52d9\u3082\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u9805\u76ee<\/th><th>\u5185\u5bb9<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u5951\u7d04\u30d7\u30e9\u30f3<\/td><td>Claude Max 20x\uff08\u6708$200 \/ \u7d0430,000\u5186\uff09<\/td><\/tr>\n<tr><td>\u5229\u7528\u958b\u59cb<\/td><td>2025\u5e74\u5f8c\u534a\u301c<\/td><\/tr>\n<tr><td>\u5bfe\u8c61\u696d\u52d9<\/td><td>\u65e2\u5b58VBA\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u70b9\u691c\u30fb\u6539\u4fee\u3001WordPress\/LP\u5236\u4f5c\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u304d\u6368\u3066\u306a\u3069\u958b\u767a\u5168\u822c<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\u306e\u5b9f\u904b\u7528\u306e\u808c\u611f\u3068\u3057\u3066\u306f\u3001\u65e2\u5b58\u30de\u30af\u30ed\u306b\u5bfe\u3057\u3066\u300c\u3053\u306e\u30de\u30af\u30ed\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u7b87\u6240\u3092\u6559\u3048\u3066\u300d\u300c\u60f3\u5b9a\u3055\u308c\u308b\u30a8\u30e9\u30fc\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u6d17\u3044\u51fa\u3057\u3066\u300d\u3068AI\u306b\u4f9d\u983c\u3059\u308b\u3060\u3051\u3067\u3001\u4eba\u529b\u3067\u306f\u898b\u843d\u3068\u3057\u304c\u3061\u306a\u7b87\u6240\u3082\u542b\u3081\u3066\u70b9\u691c\u3057\u3066\u3082\u3089\u3048\u308b\u70b9\u304c\u3001\u5927\u304d\u306a\u52b9\u7387\u5316\u306b\u3064\u306a\u304c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u6570\u5024\u306b\u3064\u3044\u3066\u306e\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u3053\u308c\u3089\u306f\u5f0a\u793e\u306e\u808c\u611f\u30fb\u6982\u7b97\u306b\u57fa\u3065\u304f\u3082\u306e\u3067\u3042\u308a\u3001\u696d\u7a2e\u30fb\u696d\u614b\u30fb\u30de\u30af\u30ed\u306e\u898f\u6a21\u306b\u3088\u3063\u3066\u52b9\u679c\u306f\u5909\u52d5\u3057\u307e\u3059\u3002\u300c\u696d\u754c\u5e73\u5747\u300d\u3067\u306f\u306a\u304f\u3001\u3042\u304f\u307e\u3067\u5f0a\u793e1\u793e\u306e\u5b9f\u904b\u7528\u30c7\u30fc\u30bf\u3068\u3057\u3066\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">AI\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u70b9\u691c\u3092\u983c\u3080\u3068\u3001\u300c\u3053\u306e\u30b7\u30fc\u30c8\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u300d\u300c\u3053\u306e\u5024\u304c\u7a7a\u6b04\u306e\u5834\u5408\u300d\u306a\u3069\u3001\u4f5c\u6210\u6642\u306b\u306f\u60f3\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u30d1\u30bf\u30fc\u30f3\u307e\u3067\u6307\u6458\u3057\u3066\u304f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7b2c\u4e09\u8005\u8996\u70b9\u3067\u306e\u30ec\u30d3\u30e5\u30fc\u3068\u3044\u3046\u610f\u5473\u3067\u3082\u6709\u52b9\u3060\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u91cd\u8981\u306a\u306e\u306f\u300c\u3068\u308a\u3042\u3048\u305a\u30a8\u30e9\u30fc\u3092\u6d88\u3059\u300d\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u3069\u3093\u306a\u7570\u5e38\u4e8b\u614b\u304c\u8d77\u3053\u308a\u3046\u308b\u304b\u300d\u3092\u6d17\u3044\u51fa\u3057\u305f\u3046\u3048\u3067\u3001\u305d\u308c\u305e\u308c\u306b\u9069\u5207\u306a\u5bfe\u5fdc\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u3067\u3059\u3002AI\u306b\u983c\u308b\u5834\u5408\u3082\u3001\u3053\u306e\u8003\u3048\u65b9\u306e\u8ef8\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6-3. \u3059\u3079\u3066\u306e\u30de\u30af\u30ed\u3092\u4e00\u5ea6\u306b\u898b\u76f4\u3059\u306e\u3067\u306f\u306a\u304f\u3001\u5f71\u97ff\u5ea6\u306e\u9ad8\u3044\u3082\u306e\u304b\u3089<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\u304cAI\u3068\u306e\u5354\u50cd\u3067\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u6539\u5584\u3092\u9032\u3081\u308b\u969b\u3082\u3001<strong>\u300c\u793e\u5185\u306e\u3059\u3079\u3066\u306e\u30de\u30af\u30ed\u3092\u4e00\u6589\u306b\u70b9\u691c\u3059\u308b\u300d\u3053\u3068\u306f\u72d9\u3044\u307e\u305b\u3093<\/strong>\u3002\u6700\u521d\u306f\u3001\u696d\u52d9\u5f71\u97ff\u306e\u5927\u304d\u3044\u30de\u30af\u30ed\uff08\u7de0\u3081\u51e6\u7406\u30fb\u8acb\u6c42\u66f8\u767a\u884c\u306a\u3069\u3001\u6b62\u307e\u308b\u3068\u696d\u52d9\u5168\u4f53\u306b\u6ce2\u53ca\u3059\u308b\u3082\u306e\uff09\u30921\u3064\u9078\u3093\u3067\u3001AI\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u70b9\u691c\u304b\u3089\u7740\u624b\u3057\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>\u6b62\u307e\u308b\u3068\u696d\u52d9\u5168\u4f53\u306b\u5f71\u97ff\u3059\u308b\u300c\u91cd\u8981\u5ea6\u306e\u9ad8\u3044\u30de\u30af\u30ed\u300d\u3092\u6d17\u3044\u51fa\u3059<\/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>\u305d\u306e\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u6709\u7121\u3092\u3001AI\u306b\u70b9\u691c\u30fb\u6d17\u3044\u51fa\u3057\u3057\u3066\u3082\u3089\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>\u6307\u6458\u3055\u308c\u305f\u7b87\u6240\u306b\u3064\u3044\u3066\u3001\u5b9f\u969b\u306e\u62c5\u5f53\u8005\u304c\u5bfe\u5fdc\u65b9\u91dd\u3092\u78ba\u8a8d\u3059\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u3001\u4ed6\u306e\u30de\u30af\u30ed\u306b\u3082\u540c\u3058\u70b9\u691c\u306e\u9032\u3081\u65b9\u3092\u6a2a\u5c55\u958b\u3059\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u9032\u3081\u65b9\u3067\u3042\u308c\u3070\u3001\u9650\u3089\u308c\u305f\u5de5\u6570\u306e\u4e2d\u3067\u3082\u3001\u696d\u52d9\u5f71\u97ff\u306e\u5927\u304d\u3044\u7b87\u6240\u304b\u3089\u78ba\u5b9f\u306b\u5b89\u5168\u6027\u3092\u9ad8\u3081\u3066\u3044\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/seminar2-blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=vba-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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;\">HOW TO INSTRUCT AI<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u304cAI\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u4efb\u305b\u308b3\u3064\u306e\u30b3\u30c4<\/span>\n  <span class=\"section-desc\">VBA\u3092\u66f8\u3051\u306a\u304f\u3066\u3082\u3001\u6b63\u3057\u304f\u8981\u4ef6\u3092\u4f1d\u3048\u308c\u3070\u5341\u5206\u306b\u4f7f\u3044\u3053\u306a\u305b\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On Error GoTo\u306e\u30b3\u30fc\u30c9\u3092\u81ea\u5206\u3067\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u91cd\u8981\u306a\u306e\u306f\u3001<strong>\u300c\u3069\u3093\u306a\u7570\u5e38\u4e8b\u614b\u304c\u8d77\u3053\u308a\u3046\u308b\u304b\u300d\u300c\u305d\u306e\u3068\u304d\u4f55\u3092\u3057\u3066\u307b\u3057\u3044\u304b\u300d\u3092\u5177\u4f53\u7684\u306b\u8a00\u8a9e\u5316\u3059\u308b\u529b<\/strong>\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u5b9f\u8df5\u3067\u304d\u308b3\u3064\u306e\u30b3\u30c4\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7-1. \u3010\u30b3\u30c41\u3011\u300c\u8d77\u3053\u308a\u3046\u308b\u7570\u5e38\u4e8b\u614b\u300d\u3092\u696d\u52d9\u76ee\u7dda\u3067\u6d17\u3044\u51fa\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5165\u308c\u3066\u300d\u3068\u3044\u3046\u6307\u793a\u3060\u3051\u3067\u306f\u3001AI\u306f\u3069\u3093\u306a\u7570\u5e38\u4e8b\u614b\u3092\u60f3\u5b9a\u3059\u3079\u304d\u304b\u5224\u65ad\u3067\u304d\u307e\u305b\u3093\u3002\u300c\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u300d\u300c\u5165\u529b\u5fc5\u9808\u306e\u6b04\u304c\u7a7a\u6b04\u306e\u307e\u307e\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u300d\u300c\u91d1\u984d\u304c\u30de\u30a4\u30ca\u30b9\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u300d\u306e\u3088\u3046\u306b\u3001<strong>\u696d\u52d9\u4e0a\u8d77\u3053\u308a\u3046\u308b\u7570\u5e38\u30d1\u30bf\u30fc\u30f3\u3092\u5177\u4f53\u7684\u306b<\/strong>\u4f1d\u3048\u308b\u3053\u3068\u3067\u3001\u5b9f\u7528\u7684\u306a\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7-2. \u3010\u30b3\u30c42\u3011\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306b\u300c\u8ab0\u304c\u4f55\u3092\u3059\u3079\u304d\u304b\u300d\u3092\u660e\u78ba\u306b\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u3001\u5358\u306b\u300c\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u307e\u3057\u305f\u300d\u3068\u8868\u793a\u3059\u308b\u3060\u3051\u3067\u306f\u3001\u62c5\u5f53\u8005\u4e0d\u5728\u6642\u306b\u5bfe\u51e6\u3067\u304d\u307e\u305b\u3093\u3002\u300c\u30a8\u30e9\u30fc\u5185\u5bb9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3057\u305f\u3046\u3048\u3067\u3001\u51e6\u7406\u3092\u4e2d\u65ad\u3059\u308b\u300d\u306e\u304b\u300c\u8efd\u5fae\u306a\u30a8\u30e9\u30fc\u306a\u3089\u8a18\u9332\u3060\u3051\u3057\u3066\u51e6\u7406\u3092\u7d9a\u3051\u308b\u300d\u306e\u304b\u3001<strong>\u30a8\u30e9\u30fc\u306e\u91cd\u5927\u5ea6\u306b\u5fdc\u3058\u305f\u5bfe\u5fdc\u65b9\u91dd<\/strong>\u3092\u4f1d\u3048\u3066\u304a\u304f\u3068\u3001\u3088\u308a\u5b9f\u7528\u7684\u306a\u5b9f\u88c5\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>\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u5834\u5408\u306f\u3069\u3046\u3057\u3066\u307b\u3057\u3044\u304b\u300d\u306a\u3069\u3001\u7570\u5e38\u30d1\u30bf\u30fc\u30f3\u3092\u5177\u4f53\u7684\u306b\u4f1d\u3048\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>\u300c\u30a8\u30e9\u30fc\u5185\u5bb9\u3092\u62c5\u5f53\u8005\u4ee5\u5916\u304c\u898b\u3066\u3082\u5206\u304b\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3057\u3066\u307b\u3057\u3044\u300d\u3068\u8868\u793a\u5185\u5bb9\u3092\u6307\u5b9a\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>\u300c\u8efd\u5fae\u306a\u30a8\u30e9\u30fc\u306f\u8a18\u9332\u3060\u3051\u3001\u91cd\u5927\u306a\u30a8\u30e9\u30fc\u306f\u51e6\u7406\u3092\u6b62\u3081\u308b\u300d\u306a\u3069\u5bfe\u5fdc\u65b9\u91dd\u3092\u5206\u3051\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>\u51e6\u7406\u304c\u9014\u4e2d\u3067\u6b62\u307e\u3063\u305f\u5834\u5408\u3001\u3069\u3053\u307e\u3067\u51e6\u7406\u6e08\u307f\u304b\u5206\u304b\u308b\u3088\u3046\u306b\u3057\u3066\u307b\u3057\u3044\u3068\u4f1d\u3048\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">7-3. \u3010\u30b3\u30c43\u3011\u5b9f\u88c5\u5f8c\u3001\u610f\u56f3\u7684\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u3066\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u304c\u5b9f\u88c5\u3057\u305f\u30a8\u30e9\u30fc\u51e6\u7406\u3082\u3001<strong>\u5b9f\u969b\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u3066\u307f\u3066\u3001\u610f\u56f3\u901a\u308a\u306b\u52d5\u304f\u304b\u3092\u78ba\u8a8d\u3059\u308b<\/strong>\u5de5\u7a0b\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u300c\u308f\u3056\u3068\u5b58\u5728\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u307f\u308b\u300d\u300c\u308f\u3056\u3068\u7a7a\u6b04\u306e\u307e\u307e\u5b9f\u884c\u3057\u3066\u307f\u308b\u300d\u3068\u3044\u3063\u305f\u5f62\u3067\u3001\u30c6\u30b9\u30c8\u7528\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\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;\">\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u52d5\u4f5c\u78ba\u8a8d\u306f\u5fc5\u9808<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u30b3\u30fc\u30c9\u306f\u3001\u6b63\u5e38\u7cfb\u306e\u30c6\u30b9\u30c8\u3060\u3051\u3067\u306f\u4e0d\u5177\u5408\u306b\u6c17\u3065\u3051\u307e\u305b\u3093\u3002\u610f\u56f3\u7684\u306b\u7570\u5e38\u306a\u72b6\u6cc1\u3092\u4f5c\u308a\u51fa\u3057\u3001\u60f3\u5b9a\u901a\u308a\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u50cd\u304f\u304b\u3092\u78ba\u8a8d\u3059\u308b\u5de5\u7a0b\u3092\u3001\u5b9f\u88c5\u5f8c\u306b\u5fc5\u305a\u8a2d\u3051\u3066\u304f\u3060\u3055\u3044\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\">\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u6e80\u8db3\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u672c\u5f53\u306b\u305d\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u6a5f\u80fd\u3059\u308b\u304b\u300d\u3092\u5b9f\u969b\u306b\u8a66\u3059\u3068\u3053\u308d\u307e\u3067\u304c\u30ef\u30f3\u30bb\u30c3\u30c8\u3067\u3059\u3002\u3053\u306e\u6700\u5f8c\u306e\u78ba\u8a8d\u3092\u7701\u7565\u3059\u308b\u3068\u3001\u3044\u3056\u3068\u3044\u3046\u3068\u304d\u306b\u6a5f\u80fd\u3057\u306a\u3044\u3068\u3044\u3046\u672c\u672b\u8ee2\u5012\u306a\u4e8b\u614b\u306b\u306a\u308a\u304b\u306d\u307e\u305b\u3093\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-goto-error-handling&#038;blog_slug=vba-goto-error-handling\" 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-goto-error-handling&#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 \u2500\u2500 \u300c\u7570\u5e38\u6642\u306e\u5099\u3048\u300d\u304c\u696d\u52d9\u30de\u30af\u30ed\u306e\u4fe1\u983c\u6027\u3092\u6c7a\u3081\u308b<\/span>\n  <span class=\"section-desc\">GoTo\u6587\u3068\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u7406\u89e3\u306f\u3001\u696d\u52d9\u30de\u30af\u30ed\u3092\u9577\u304f\u5b89\u5fc3\u3057\u3066\u4f7f\u3046\u571f\u53f0\u306b\u306a\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001VBA\u306eGoTo\u6587\u306e\u57fa\u672c\u304b\u3089\u3001\u30e9\u30d9\u30eb\u3078\u306e\u30b8\u30e3\u30f3\u30d7\u3001On Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u3001GoTo\u306e\u591a\u7528\u304c\u554f\u984c\u8996\u3055\u308c\u3066\u304d\u305f\u80cc\u666f\u3001\u305d\u3057\u3066\u300c\u306a\u305c\u696d\u52d9\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u7518\u3055\u304c\u5371\u967a\u306a\u306e\u304b\u300d\u3068\u3044\u3046\u5b9f\u52d9\u76ee\u7dda\u3067\u306e\u91cd\u8981\u6027\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>GoTo\u6587\u306f\u3001\u51e6\u7406\u3092\u6307\u5b9a\u3057\u305f\u30e9\u30d9\u30eb\u3078\u5f37\u5236\u7684\u306b\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u308b\u547d\u4ee4<\/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>GoTo\u306b\u3088\u308b\u30b8\u30e3\u30f3\u30d7\u306f\u3001\u540c\u3058\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u5185\u306e\u30e9\u30d9\u30eb\u306b\u3057\u304b\u4f7f\u3048\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>On Error GoTo\u306f\u3001\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306b\u6307\u5b9a\u3057\u305f\u51e6\u7406\u3078\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u57fa\u672c\u624b\u6bb5<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>On Error Resume Next\u306f\u30a8\u30e9\u30fc\u3092\u7121\u8996\u3057\u3066\u7d99\u7d9a\u3059\u308b\u547d\u4ee4\u3067\u3001\u4e71\u7528\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306e\u63e1\u308a\u3064\u3076\u3057\u306b\u3064\u306a\u304c\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u6761\u4ef6\u5206\u5c90\u30fb\u30eb\u30fc\u30d7\u306b\u306fGoTo\u3092\u907f\u3051\u3066\u69cb\u9020\u5316\u3059\u308b\u4e00\u65b9\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u3067\u306fGoTo\u304c\u5b9f\u52d9\u4e0a\u307b\u307c\u5fc5\u9808<\/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\u51e6\u7406\u306e\u306a\u3044\u30de\u30af\u30ed\u306f\u3001\u62c5\u5f53\u8005\u4e0d\u5728\u6642\u306b\u696d\u52d9\u304c\u5b8c\u5168\u306b\u6b62\u307e\u308b\u30ea\u30b9\u30af\u3092\u62b1\u3048\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>\u5f0a\u793eGENAI\u3067\u306f\u3001AI\u306b\u3088\u308b\u65e2\u5b58\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u70b9\u691c\u30fb\u6539\u5584\u3092\u5b9f\u8df5\u3057\u3066\u3044\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">GoTo\u6587\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u899a\u3048\u308b\u3053\u3068\u304c\u76ee\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u672c\u5f53\u306b\u304a\u4f1d\u3048\u3057\u305f\u304b\u3063\u305f\u306e\u306f\u3001<strong>\u300c\u6b63\u5e38\u306b\u52d5\u304f\u3053\u3068\u300d\u3060\u3051\u3067\u306a\u304f\u300c\u7570\u5e38\u4e8b\u614b\u306b\u3069\u3046\u5099\u3048\u308b\u304b\u300d\u3092\u6700\u521d\u304b\u3089\u8a2d\u8a08\u306b\u7d44\u307f\u8fbc\u3093\u3067\u304a\u304f\u3053\u3068\u304c\u3001\u696d\u52d9\u30de\u30af\u30ed\u3092\u9577\u304f\u5b89\u5fc3\u3057\u3066\u4f7f\u3044\u7d9a\u3051\u308b\u305f\u3081\u306e\u9375\u306b\u306a\u308b<\/strong>\u3068\u3044\u3046\u767a\u60f3\u3067\u3059\u3002\u3053\u306e\u767a\u60f3\u3055\u3048\u6301\u3066\u308c\u3070\u3001\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u306a\u304f\u3066\u3082\u3001AI\u306b\u7684\u78ba\u306a\u6307\u793a\u3092\u51fa\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7279\u306b\u3001\u62c5\u5f53\u8005\u304c\u4e0d\u5728\u306e\u3068\u304d\u3067\u3082\u30de\u30af\u30ed\u304c\u5b89\u5168\u306b\u505c\u6b62\u3057\u3001\u72b6\u6cc1\u304c\u5206\u304b\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6b8b\u3057\u3066\u304f\u308c\u308b\u304b\u3069\u3046\u304b\u306f\u3001\u696d\u52d9\u306e\u7d99\u7d9a\u6027\u3092\u5927\u304d\u304f\u5de6\u53f3\u3057\u307e\u3059\u3002\u300c\u52d5\u3044\u3066\u3044\u308b\u304b\u3089\u5927\u4e08\u592b\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u6b62\u307e\u3063\u305f\u3068\u304d\u306b\u3069\u3046\u306a\u308b\u304b\u300d\u307e\u3067\u60f3\u5b9a\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u3001\u696d\u52d9\u30de\u30af\u30ed\u3068\u9577\u304f\u4ed8\u304d\u5408\u3063\u3066\u3044\u304f\u305f\u3081\u306e\u73fe\u5b9f\u7684\u306a\u5099\u3048\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u5f0a\u793e\u3067\u306f\u300cAI\u9b3c\u7ba1\u7406\u300d\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3067\u3001Claude Code\u3092\u4f7f\u3063\u305f\u696d\u52d9\u30de\u30af\u30ed\u306e\u5b89\u5168\u6027\u70b9\u691c\u30fb\u4fdd\u5b88\u8a2d\u8a08\u304b\u3089\u4f34\u8d70\u307e\u3067\u652f\u63f4\u3057\u3066\u3044\u307e\u3059\u3002\u300c\u30a8\u30e9\u30fc\u3067\u6b62\u307e\u3063\u305f\u3068\u304d\u306b\u8ab0\u3082\u5bfe\u51e6\u3067\u304d\u306a\u3044\u300d\u3068\u3044\u3046\u4e0d\u5b89\u3092\u62b1\u3048\u3066\u3044\u308b\u4f01\u696d\u307b\u3069\u3001\u65e9\u3081\u306e\u70b9\u691c\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u7121\u6599\u76f8\u8ac7\u3067\u3001\u3042\u306a\u305f\u306e\u4f1a\u793e\u306e\u30de\u30af\u30ed\u904b\u7528\u72b6\u6cc1\u3092\u4e00\u7dd2\u306b\u6574\u7406\u3057\u307e\u3057\u3087\u3046\u3002<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u696d\u52d9\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u70b9\u691c\u30fb\u5b89\u5168\u6027\u5411\u4e0a\u3092\u3001AI\u9b3c\u7ba1\u7406\u304c\u4e00\u7dd2\u306b\u9032\u3081\u307e\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u898b\u76f4\u3057\u306e\u3088\u3046\u306a\u7d30\u304b\u3044\u4f5c\u696d\u304b\u3089\u3001\u30de\u30af\u30ed\u5168\u4f53\u306e\u5b89\u5168\u6027\u306e\u5e95\u4e0a\u3052\u307e\u3067\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 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\">\u300c\u30de\u30af\u30ed\u304c\u6b62\u307e\u3063\u305f\u3068\u304d\u306b\u8ab0\u3082\u5bfe\u51e6\u3067\u304d\u305a\u56f0\u3063\u305f\u7d4c\u9a13\u304c\u3042\u308b\u300d\u3068\u3044\u3046\u65b9\u306b\u6700\u9069\u3067\u3059\u3002\u307e\u305a\u306f\u7121\u6599\u76f8\u8ac7\u3067\u3001\u3042\u306a\u305f\u306e\u4f1a\u793e\u306e\u30de\u30af\u30ed\u904b\u7528\u306e\u73fe\u72b6\u3092\u4e00\u7dd2\u306b\u6574\u7406\u3057\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-goto-error-handling&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. GoTo\u6587\u306f\u4eca\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u4f7f\u3046\u3079\u304d\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u306e\u5236\u5fa1\u306b\u304a\u3044\u3066\u306f\u3001If\u6587\u3084For\u6587\u3067\u69cb\u9020\u5316\u3059\u308b\u66f8\u304d\u65b9\u304c\u63a8\u5968\u3055\u308c\u3066\u304a\u308a\u3001GoTo\u306e\u591a\u7528\u306f\u907f\u3051\u308b\u3079\u304d\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001VBA\u306e\u30a8\u30e9\u30fc\u51e6\u7406\uff08On Error GoTo\uff09\u306e\u3088\u3046\u306b\u3001GoTo\u3092\u4f7f\u3046\u3053\u3068\u304c\u5b9f\u52d9\u4e0a\u6a19\u6e96\u7684\u3068\u3055\u308c\u308b\u7528\u9014\u3082\u3042\u308a\u3001\u4e00\u5f8b\u306b\u300c\u4f7f\u3046\u3079\u304d\u3067\u306a\u3044\u300d\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. On Error GoTo\u3068On Error Resume Next\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u7279\u5b9a\u306e\u5bfe\u5fdc\u51e6\u7406\uff08\u30e1\u30c3\u30bb\u30fc\u30b8\u8868\u793a\u30fb\u5f8c\u7247\u4ed8\u3051\u306a\u3069\uff09\u3092\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306fOn Error GoTo\u3092\u3001\u7279\u5b9a\u306e1\u884c\u3060\u3051\u30a8\u30e9\u30fc\u3092\u7121\u8996\u3057\u3066\u3088\u3044\u5834\u5408\uff08\u5b58\u5728\u78ba\u8a8d\u306a\u3069\uff09\u306fOn Error Resume Next\u3092\u3001\u305d\u308c\u305e\u308c\u9650\u5b9a\u7684\u306a\u7bc4\u56f2\u3067\u4f7f\u3046\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u30e9\u30d9\u30eb\u306e\u540d\u524d\u306b\u306f\u4f55\u3067\u3082\u4f7f\u3048\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u57fa\u672c\u7684\u306b\u306f\u5909\u6570\u540d\u3068\u540c\u69d8\u306e\u30eb\u30fc\u30eb\uff08\u82f1\u6570\u5b57\u3068\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\u306e\u7d44\u307f\u5408\u308f\u305b\u306a\u3069\uff09\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002VBA\u306e\u4e88\u7d04\u8a9e\uff08Sub\u3001If\u306a\u3069\uff09\u3068\u540c\u3058\u540d\u524d\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002\u5206\u304b\u308a\u3084\u3059\u3055\u306e\u89b3\u70b9\u304b\u3089\u3001ErrorHandler\u3084Skip\u306a\u3069\u3001\u7528\u9014\u304c\u4f1d\u308f\u308b\u540d\u524d\u3092\u4ed8\u3051\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5165\u308c\u308b\u3068\u3001\u30de\u30af\u30ed\u306e\u52d5\u4f5c\u304c\u9045\u304f\u306a\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. On Error GoTo\u81ea\u4f53\u306e\u51e6\u7406\u8ca0\u8377\u306f\u975e\u5e38\u306b\u5c0f\u3055\u304f\u3001\u5b9f\u52d9\u4e0a\u4f53\u611f\u3067\u304d\u308b\u3088\u3046\u306a\u901f\u5ea6\u4f4e\u4e0b\u306b\u306f\u3064\u306a\u304c\u308a\u307e\u305b\u3093\u3002\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5165\u308c\u306a\u3044\u3053\u3068\u306b\u3088\u308b\u300c\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306e\u696d\u52d9\u505c\u6b62\u30ea\u30b9\u30af\u300d\u306e\u65b9\u304c\u3001\u5b9f\u52d9\u4e0a\u306f\u308b\u304b\u306b\u5927\u304d\u306a\u554f\u984c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u8907\u6570\u306e\u7570\u306a\u308b\u30a8\u30e9\u30fc\u306b\u5bfe\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u9055\u3046\u5bfe\u5fdc\u3092\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u53ef\u80fd\u3067\u3059\u3002\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u4e2d\u3067<code>Err.Number<\/code>\uff08\u30a8\u30e9\u30fc\u756a\u53f7\uff09\u3092\u78ba\u8a8d\u3057\u3001If\u6587\u3067\u5206\u5c90\u3055\u305b\u308b\u3053\u3068\u3067\u300c\u3053\u306e\u30a8\u30e9\u30fc\u306e\u3068\u304d\u306fA\u3001\u3042\u306e\u30a8\u30e9\u30fc\u306e\u3068\u304d\u306fB\u300d\u3068\u3044\u3063\u305f\u500b\u5225\u306e\u5bfe\u5fdc\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082AI\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u5b9f\u88c5\u3092\u4efb\u305b\u3089\u308c\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u4efb\u305b\u3089\u308c\u307e\u3059\u3002\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u5834\u5408\u306f\u3069\u3046\u3057\u3066\u307b\u3057\u3044\u304b\u300d\u300c\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u3068\u304d\u8ab0\u304c\u898b\u3066\u3082\u5206\u304b\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3057\u3066\u307b\u3057\u3044\u300d\u3068\u3044\u3063\u305f\u8981\u671b\u3092\u65e5\u672c\u8a9e\u3067\u4f1d\u3048\u308c\u3070\u3001AI\u304c\u9069\u5207\u306aOn Error GoTo\u306e\u5b9f\u88c5\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5b9f\u88c5\u5f8c\u306f\u610f\u56f3\u7684\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u3066\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b\u5de5\u7a0b\u3092\u5fc5\u305a\u6b8b\u3059\u3079\u304d\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\": \"GoTo\u6587\u306f\u4eca\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u4f7f\u3046\u3079\u304d\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u306e\u5236\u5fa1\u306b\u304a\u3044\u3066\u306f\u3001If\u6587\u3084For\u6587\u3067\u69cb\u9020\u5316\u3059\u308b\u66f8\u304d\u65b9\u304c\u63a8\u5968\u3055\u308c\u3066\u304a\u308a\u3001GoTo\u306e\u591a\u7528\u306f\u907f\u3051\u308b\u3079\u304d\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001VBA\u306e\u30a8\u30e9\u30fc\u51e6\u7406\uff08On Error GoTo\uff09\u306e\u3088\u3046\u306b\u3001GoTo\u3092\u4f7f\u3046\u3053\u3068\u304c\u5b9f\u52d9\u4e0a\u6a19\u6e96\u7684\u3068\u3055\u308c\u308b\u7528\u9014\u3082\u3042\u308a\u3001\u4e00\u5f8b\u306b\u300c\u4f7f\u3046\u3079\u304d\u3067\u306a\u3044\u300d\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"On Error GoTo\u3068On Error Resume Next\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u7279\u5b9a\u306e\u5bfe\u5fdc\u51e6\u7406\uff08\u30e1\u30c3\u30bb\u30fc\u30b8\u8868\u793a\u30fb\u5f8c\u7247\u4ed8\u3051\u306a\u3069\uff09\u3092\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306fOn Error GoTo\u3092\u3001\u7279\u5b9a\u306e1\u884c\u3060\u3051\u30a8\u30e9\u30fc\u3092\u7121\u8996\u3057\u3066\u3088\u3044\u5834\u5408\uff08\u5b58\u5728\u78ba\u8a8d\u306a\u3069\uff09\u306fOn Error Resume Next\u3092\u3001\u305d\u308c\u305e\u308c\u9650\u5b9a\u7684\u306a\u7bc4\u56f2\u3067\u4f7f\u3046\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u30e9\u30d9\u30eb\u306e\u540d\u524d\u306b\u306f\u4f55\u3067\u3082\u4f7f\u3048\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u57fa\u672c\u7684\u306b\u306f\u5909\u6570\u540d\u3068\u540c\u69d8\u306e\u30eb\u30fc\u30eb\uff08\u82f1\u6570\u5b57\u3068\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\u306e\u7d44\u307f\u5408\u308f\u305b\u306a\u3069\uff09\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002VBA\u306e\u4e88\u7d04\u8a9e\uff08Sub\u3001If\u306a\u3069\uff09\u3068\u540c\u3058\u540d\u524d\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002\u5206\u304b\u308a\u3084\u3059\u3055\u306e\u89b3\u70b9\u304b\u3089\u3001ErrorHandler\u3084Skip\u306a\u3069\u3001\u7528\u9014\u304c\u4f1d\u308f\u308b\u540d\u524d\u3092\u4ed8\u3051\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5165\u308c\u308b\u3068\u3001\u30de\u30af\u30ed\u306e\u52d5\u4f5c\u304c\u9045\u304f\u306a\u308a\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"On Error GoTo\u81ea\u4f53\u306e\u51e6\u7406\u8ca0\u8377\u306f\u975e\u5e38\u306b\u5c0f\u3055\u304f\u3001\u5b9f\u52d9\u4e0a\u4f53\u611f\u3067\u304d\u308b\u3088\u3046\u306a\u901f\u5ea6\u4f4e\u4e0b\u306b\u306f\u3064\u306a\u304c\u308a\u307e\u305b\u3093\u3002\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5165\u308c\u306a\u3044\u3053\u3068\u306b\u3088\u308b\u300c\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306e\u696d\u52d9\u505c\u6b62\u30ea\u30b9\u30af\u300d\u306e\u65b9\u304c\u3001\u5b9f\u52d9\u4e0a\u306f\u308b\u304b\u306b\u5927\u304d\u306a\u554f\u984c\u306b\u306a\u308a\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u8907\u6570\u306e\u7570\u306a\u308b\u30a8\u30e9\u30fc\u306b\u5bfe\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u9055\u3046\u5bfe\u5fdc\u3092\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u53ef\u80fd\u3067\u3059\u3002\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u4e2d\u3067<code>Err.Number<\/code>\uff08\u30a8\u30e9\u30fc\u756a\u53f7\uff09\u3092\u78ba\u8a8d\u3057\u3001If\u6587\u3067\u5206\u5c90\u3055\u305b\u308b\u3053\u3068\u3067\u300c\u3053\u306e\u30a8\u30e9\u30fc\u306e\u3068\u304d\u306fA\u3001\u3042\u306e\u30a8\u30e9\u30fc\u306e\u3068\u304d\u306fB\u300d\u3068\u3044\u3063\u305f\u500b\u5225\u306e\u5bfe\u5fdc\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u975e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082AI\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u5b9f\u88c5\u3092\u4efb\u305b\u3089\u308c\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u4efb\u305b\u3089\u308c\u307e\u3059\u3002\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u5834\u5408\u306f\u3069\u3046\u3057\u3066\u307b\u3057\u3044\u304b\u300d\u300c\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u3068\u304d\u8ab0\u304c\u898b\u3066\u3082\u5206\u304b\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3057\u3066\u307b\u3057\u3044\u300d\u3068\u3044\u3063\u305f\u8981\u671b\u3092\u65e5\u672c\u8a9e\u3067\u4f1d\u3048\u308c\u3070\u3001AI\u304c\u9069\u5207\u306aOn Error GoTo\u306e\u5b9f\u88c5\u3092\u63d0\u6848\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5b9f\u88c5\u5f8c\u306f\u610f\u56f3\u7684\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u3066\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b\u5de5\u7a0b\u3092\u5fc5\u305a\u6b8b\u3059\u3079\u304d\u3067\u3059\u3002\"\n      }\n    }\n  ]\n}\n<\/script>\n\n\n","protected":false},"excerpt":{"rendered":"<p>ExcelVBA\u306eGoTo\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30e9\u30d9\u30eb\u30fb\u30eb\u30fc\u30d7\u5236\u5fa1\u30fbOn Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u3068\u3068\u3082\u306b\u89e3\u8aac\u3002GoTo\u591a\u7528\u306e\u30ea\u30b9\u30af\u3001\u696d\u52d9\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u4e0d\u8db3\u304c\u62db\u304f\u30c8\u30e9\u30d6\u30eb\u3001AI\u306b\u3088\u308b\u30ec\u30d3\u30e5\u30fc\u4e8b\u4f8b\u307e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":26670,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sitemap_hide":"","_veu_custom_css":"","vkexunit_cta_each_option":"","footnotes":"","rank_math_description":"ExcelVBA\u306eGoTo\u6587\u306e\u4f7f\u3044\u65b9\u3092\u30e9\u30d9\u30eb\u30fb\u30eb\u30fc\u30d7\u5236\u5fa1\u30fbOn Error GoTo\u306b\u3088\u308b\u30a8\u30e9\u30fc\u51e6\u7406\u3068\u3068\u3082\u306b\u89e3\u8aac\u3002GoTo\u591a\u7528\u306e\u30ea\u30b9\u30af\u3001\u696d\u52d9\u30de\u30af\u30ed\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u4e0d\u8db3\u304c\u62db\u304f\u30c8\u30e9\u30d6\u30eb\u3001AI\u306b\u3088\u308b\u30ec\u30d3\u30e5\u30fc\u4e8b\u4f8b\u307e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002","rank_math_focus_keyword":"VBA GoTo \u30a8\u30e9\u30fc\u51e6\u7406","rank_math_title":"\u30102026\u5e748\u6708\u6700\u65b0\u3011VBA\u306eGoTo\u6587\u3068\u306f\uff1f\u30e9\u30d9\u30eb\u30fb\u30eb\u30fc\u30d7\u5236\u5fa1\u30fb\u30a8\u30e9\u30fc\u51e6\u7406\uff08On Error GoTo\uff09\u306e\u4f7f\u3044\u65b9","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-26664","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\/26664","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=26664"}],"version-history":[{"count":4,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/26664\/revisions"}],"predecessor-version":[{"id":26671,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/26664\/revisions\/26671"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media\/26670"}],"wp:attachment":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media?parent=26664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/categories?post=26664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/tags?post=26664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}