{"id":156653,"date":"2025-08-07T13:43:43","date_gmt":"2025-08-07T04:43:43","guid":{"rendered":"https:\/\/bizroad-svc.com\/blog\/?p=156653"},"modified":"2026-11-17T17:40:08","modified_gmt":"2026-11-17T08:40:08","slug":"vba-kihon-code","status":"publish","type":"post","link":"https:\/\/bizroad-svc.com\/blog\/vba-kihon-code\/","title":{"rendered":"\u30102026\u3011VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\uff01\u5b9a\u578b\u696d\u52d9\u306e\u81ea\u52d5\u5316\u306b\u4f7f\u3048\u308b\u5b9f\u8df5\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u3082"},"content":{"rendered":"<p>\u65e5\u3005\u306e\u696d\u52d9\u306e\u4e2d\u306b\u306f\u3001\u7e70\u308a\u8fd4\u3057\u884c\u3046\u5b9a\u578b\u696d\u52d9\u3082\u542b\u307e\u308c\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u3002VBA\u3092\u4f7f\u3048\u3070\u3001\u305d\u3093\u306a\u5b9a\u578b\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001<span class=\"marker-halfYellow\"><strong>VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u306a\u304c\u3089\u3001\u5b9f\u52d9\u3067\u3082\u4f7f\u3048\u308b\u51e6\u7406\u306e\u5b9f\u88c5\u65b9\u6cd5\u306b\u3064\u3044\u3066<\/strong><\/span>\u89e3\u8aac\u3059\u308b\u3068\u3068\u3082\u306b\u3001VBA\u306e\u57fa\u672c\u3092\u77ed\u671f\u9593\u3067\u5b66\u3079\u308b<a href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\" target=\"_blank\" rel=\"noopener\">VBA\u8b1b\u5ea7<\/a>\u3082\u3042\u308f\u305b\u3066\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002VBA\u3092\u4f7f\u3063\u305f\u81ea\u52d5\u5316\u306b\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"btn btn-center\"><a class=\"btn__link btn__link-primary\" href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\">\u304a\u3059\u3059\u3081\u306eVBA\u8b1b\u5ea7\u306f\u3053\u3061\u3089<\/a><\/div>\n<h2>VBA\u3068\u306f<\/h2>\n<div class=\"youtube\"><iframe title=\"VBA\u3068\u306f\uff1f\u3069\u3093\u306a\u8a00\u8a9e\u306a\u306e\uff1f\uff1f\u3000\u521d\u5fc3\u8005\u5411\u3051\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\" src=\"https:\/\/www.youtube.com\/embed\/pJ9pkRw7v84?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<p><span class=\"marker-halfYellow\"><strong>VBA\uff08Visual Basic for Applications\uff09\u306f\u3001Microsoft Office\u88fd\u54c1\u306b\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002<\/strong><\/span>\u4e3b\u306bExcel\u306e\u5b9a\u578b\u4f5c\u696d\u306e\u81ea\u52d5\u5316\u306b\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6df7\u540c\u3055\u308c\u3084\u3059\u3044\u30de\u30af\u30ed\u3068RPA\u3068\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30de\u30af\u30ed\u3068\u306e\u9055\u3044<\/h3>\n<p><span class=\"marker-halfYellow\"><strong>\u30de\u30af\u30ed\u3068\u306f\u3001\u64cd\u4f5c\u3092\u8a18\u9332\u3057\u3066\u81ea\u52d5\u518d\u751f\u3059\u308b\u6a5f\u80fd\u3092\u6307\u3057\u307e\u3059\u3002<\/strong><\/span>\u4f8b\u3048\u3070\u3001\u30bb\u30eb\u306b\u5165\u529b\u3057\u305f\u5024\u3092\u30b3\u30d4\u30fc\u3057\u3066\u5225\u306e\u5834\u6240\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u64cd\u4f5c\u3092\u30de\u30af\u30ed\u306b\u8a18\u9332\u3059\u308c\u3070\u3001\u30dc\u30bf\u30f3\u4e00\u3064\u3067\u540c\u3058\u51e6\u7406\u304c\u4f55\u5ea6\u3067\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001VBA\u306f\u305d\u306e\u30de\u30af\u30ed\u306e\u4e2d\u8eab\u3092\u81ea\u5206\u3067\u7de8\u96c6\u3057\u305f\u308a\u3001\u3088\u308a\u8907\u96d1\u306a\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u305f\u308a\u3067\u304d\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30de\u30af\u30ed\u3092\u4f5c\u6210\u3059\u308b\u624b\u6bb5\u3068\u3057\u3066VBA\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001VBA\u3067\u3067\u304d\u308b\u3053\u3068\u30fb\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"TPzf6PdON6\"><p><a href=\"https:\/\/bizroad-svc.com\/blog\/excel-vba\/\">\u30102025\u3011\u30a8\u30af\u30bb\u30eb\u306eVBA\u3068\u306f\uff1fVBA\u3067\u3067\u304d\u308b\u3053\u3068\u3084\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u3064\u3044\u3066\u89e3\u8aac<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30102025\u3011\u30a8\u30af\u30bb\u30eb\u306eVBA\u3068\u306f\uff1fVBA\u3067\u3067\u304d\u308b\u3053\u3068\u3084\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u3064\u3044\u3066\u89e3\u8aac&#8221; &#8212; BIZ ROAD\uff08\u30d3\u30ba\u30ed\u30fc\u30c9\uff09\" src=\"https:\/\/bizroad-svc.com\/blog\/excel-vba\/embed\/#?secret=KJBlSKzqSn#?secret=TPzf6PdON6\" data-secret=\"TPzf6PdON6\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3>RPA\u306e\u9055\u3044<\/h3>\n<p><span class=\"marker-halfYellow\"><strong>RPA\u306f\u3001\u4eba\u9593\u306e\u4ee3\u308f\u308a\u306b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ed\u30dc\u30c3\u30c8\u304c\u63d0\u643a\u696d\u52d9\u3092\u81ea\u52d5\u7684\u306b\u884c\u3063\u3066\u304f\u308c\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002<\/strong><\/span>\u81ea\u52d5\u5316\u3067\u306fVBA\u3068\u5171\u901a\u3057\u3066\u3044\u307e\u3059\u304c\u3001RPA\u306e\u65b9\u304c\u3055\u307e\u3056\u307e\u306a\u30c4\u30fc\u30eb\u3068\u9023\u643a\u304c\u3067\u304d\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u5c0e\u5165\u306b\u306f\u521d\u671f\u8cbb\u7528\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3001Office\u88fd\u54c1\u306b\u6a19\u6e96\u642d\u8f09\u3055\u308c\u3066\u3044\u308bVBA\u3068\u306f\u30b3\u30b9\u30c8\u9762\u3067\u3082\u7570\u306a\u308a\u307e\u3059\u3002<br \/>\n\u6709\u540d\u306aRPA\u30c4\u30fc\u30eb\u306b\u306f\u3001Excel\u3068\u540c\u3058Microsoft\u793e\u306ePower Automate\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>VBA\u306e\u57fa\u672c\u64cd\u4f5c<\/h2>\n<p>VBA\u3092\u4f7f\u3046\u6d41\u308c\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>\u958b\u767a\u30bf\u30d6\u3092\u8868\u793a\u3059\u308b<\/strong><\/li>\n<li><strong>VBA\u30a8\u30c7\u30a3\u30bf\u30fc\u304b\u3089\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3059\u308b<\/strong><\/li>\n<li><strong>\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u5b9f\u884c\u3059\u308b<\/strong><\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u306e\u57fa\u672c\u64cd\u4f5c\u3092\u884c\u3046\u6d41\u308c\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u2460\u958b\u767a\u30bf\u30d6\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>VBA\u3092\u4f7f\u3046\u306b\u306f\u3001\u958b\u767a\u30bf\u30d6\u3092\u8868\u793a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001\u30ea\u30dc\u30f3\u306e\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u30ea\u30dc\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u300d\u3092\u958b\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156656\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-1.png\" alt=\"\u300c\u30ea\u30dc\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u300d\u3092\u958b\u304f\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u7d9a\u3044\u3066\u3001\u53f3\u5074\u306e\u30ea\u30b9\u30c8\u304b\u3089<span class=\"marker-halfYellow\"><strong>\u300c\u958b\u767a\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u300cOK\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/strong><\/span>\u3068\u3001\u30ea\u30dc\u30f3\u306b\u958b\u767a\u30bf\u30d6\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156658\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-2.png\" alt=\"\u300c\u958b\u767a\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\" width=\"698\" height=\"365\" \/><\/p>\n<h3>\u2461VBA\u30a8\u30c7\u30a3\u30bf\u30fc\u304b\u3089\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<p><span class=\"marker-halfYellow\"><strong>\u958b\u767a\u30bf\u30d6\u304b\u3089\u300cVisual Basic\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156657\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-3.png\" alt=\"\u300cVisual Basic\u300d\u3092\u958b\u304f\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u7d9a\u3044\u3066\u3001<span class=\"marker-halfYellow\"><strong>\u633f\u5165\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u300d\u3092\u9078\u629e<\/strong><\/span>\u3057\u307e\u3057\u3087\u3046\u3002\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u306f\u3001VBA\u306e\u5171\u901a\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156659\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-4.png\" alt=\"\u300c\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u300d\u3092\u9078\u629e\u3059\u308b\" width=\"698\" height=\"365\" \/><\/p>\n<h3>\u2462\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u5b9f\u884c\u3059\u308b<\/h3>\n<p>\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306bVBA\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<span class=\"marker-halfYellow\"><strong>\u8a18\u8ff0\u3057\u305f\u30b3\u30fc\u30c9\u306f\u3001F5\u30ad\u30fc\u3001\u3082\u3057\u304f\u306f\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156660\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-5.png\" alt=\"\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u307e\u305f\u3001VBA\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u30d7\u30ed\u304b\u3089\u6559\u308f\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u8b1b\u5ea7\u306e\u5229\u7528\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<a href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\">Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc<\/a>\u306a\u3089\u3001VBA\u3092\u4f7f\u3063\u305f\u696d\u52d9\u52b9\u7387\u5316\u306e\u624b\u9806\u306b\u3064\u3044\u3066\u5b66\u3079\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><a class=\"btn__link btn__link-primary\" href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\">Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc\u306e\u8a73\u7d30\u306f\u3053\u3061\u3089<\/a><\/p>\n<h2>VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u301c\u57fa\u790e\u7de8\u301c<\/h2>\n<p>VBA\u3067\u307e\u305a\u899a\u3048\u305f\u3044\u57fa\u672c\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u306e\u5b9a\u7fa9<\/strong><\/li>\n<li><strong>\u5909\u6570\u306e\u5ba3\u8a00<\/strong><\/li>\n<li><strong>\u6761\u4ef6\u5206\u5c90<\/strong><\/li>\n<li><strong>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08For\uff09<\/strong><\/li>\n<li><strong>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08Do While\uff09<\/strong><\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u2460\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u306e\u5b9a\u7fa9<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156661\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-6.png\" alt=\"\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u306e\u5b9a\u7fa9\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u306f\u3001VBA\u306e\u51e6\u7406\u3092\u307e\u3068\u3081\u305f\u30b3\u30fc\u30c9\u306e\u96c6\u307e\u308a\u3067\u3059\u3002<\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub \u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u540d()<\/strong><br \/>\n<strong>\u3000\u5b9f\u884c\u30b3\u30fc\u30c9<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b<span class=\"marker-halfYellow\"><strong>Sub\u3068End Sub\u3067\u56f2\u3080\u3053\u3068\u3067\u3001\u4e00\u9023\u306e\u51e6\u7406\u304c\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h3>\u2461\u5909\u6570\u306e\u5ba3\u8a00<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156662\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-7.png\" alt=\"\u5909\u6570\u306e\u5ba3\u8a00\" width=\"698\" height=\"365\" \/><\/p>\n<p><span class=\"marker-halfYellow\"><strong>\u5909\u6570\u3068\u306f\u3001\u30c7\u30fc\u30bf\u3092\u4e00\u6642\u7684\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u7bb1\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/strong><\/span><br \/>\nDim\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3067\u5909\u6570\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000Dim Tax As Double<\/strong><br \/>\n<strong>\u3000Dim Price As Double<\/strong><br \/>\n<strong><strong>\u3000Dim Total As Double<\/strong><\/strong><strong>\u3000Tax = 1.1 &#8216; \u6d88\u8cbb\u7a0e\u7387\uff0810%\uff09<\/strong><br \/>\n<strong>\u3000Price = 1000 &#8216; \u7a0e\u629c\u4fa1\u683c<\/strong><br \/>\n<strong><strong>\u3000Total = Price * Tax &#8216; \u7a0e\u8fbc\u4fa1\u683c\u306e\u8a08\u7b97<\/strong><\/strong><strong>\u3000MsgBox &#8220;\u7a0e\u8fbc\u4fa1\u683c\u306f &#8221; &amp; Total &amp; &#8221; \u5186\u3067\u3059&#8221;<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u6d88\u8cbb\u7a0e\u3084\u7a0e\u629c\u304d\u4fa1\u683c\u3092\u5909\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u5024\u304c\u5909\u66f4\u306b\u306a\u3063\u305f\u3068\u304d\u3067\u3082\u67d4\u8edf\u306b\u5bfe\u5fdc\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u2462\u6761\u4ef6\u5206\u5c90\uff08If\u6587\uff09<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156663\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-8.png\" alt=\"\u6761\u4ef6\u5206\u5c90\uff08If\u6587\uff09\" width=\"698\" height=\"365\" \/><\/p>\n<p><span class=\"marker-halfYellow\"><strong>IF\u6587\u306f\u3001\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u305f\u3044\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000If Range(&#8220;A1&#8221;).Value &gt;= 100 Then<\/strong><br \/>\n<strong>\u3000\u3000MsgBox &#8220;\u9054\u6210&#8221;<\/strong><br \/>\n<strong>\u3000Else<\/strong><br \/>\n<strong>\u3000\u3000MsgBox &#8220;\u672a\u9054\u6210&#8221;<\/strong><br \/>\n<strong>\u3000End If<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u30bb\u30ebA1\u306e\u5024\u304c100\u4ee5\u4e0a\u304b\u3069\u3046\u304b\u3067\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5207\u308a\u66ff\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u2463\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08For\uff09<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156664\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-9.png\" alt=\"\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08For\uff09\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306f\u3001\u540c\u3058\u51e6\u7406\u3092\u4f55\u5ea6\u3082\u884c\u3046\u3068\u304d\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<span class=\"marker-halfYellow\"><strong>For\u6587\u306f\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u306e\u69cb\u6587\u3067\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000Dim i As Integer<\/strong><br \/>\n<strong>\u3000For i = 1 To 5<\/strong><br \/>\n<strong>\u3000\u3000MsgBox i<\/strong><br \/>\n<strong>\u3000Next i<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001MsgBox\u306b\u6570\u5b57\u3092\u8868\u793a\u3059\u308b\u51e6\u7406\u30921\u301c5\u307e\u3067\u7e70\u308a\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u2464\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08Do While\uff09<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156665\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-10.png\" alt=\"\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08Do While\uff09\" width=\"698\" height=\"365\" \/><\/p>\n<p><span class=\"marker-halfYellow\"><strong>Do While\u6587\u306f\u3001\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u3066\u3044\u308b\u9593\u306e\u307f\u3001\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000Dim i As Integer<\/strong><br \/>\n<strong>\u3000i = 1<\/strong><br \/>\n<strong>\u3000Do While i &lt;= 5<\/strong><br \/>\n<strong>\u3000\u3000MsgBox i<\/strong><br \/>\n<strong>\u3000\u3000i = i + 1<\/strong><br \/>\n<strong>\u3000Loop<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>Do While\u306f\u7e70\u308a\u8fd4\u3057\u6761\u4ef6\u3092\u67d4\u8edf\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u305f\u3081\u3001\u6761\u4ef6\u304c\u5909\u52d5\u3059\u308b\u3088\u3046\u306a\u51e6\u7406\u306b\u5411\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001VBA\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306e\u5bfe\u8c61\u6cd5\u3084\u3001\u305d\u306e\u307b\u304b\u5b9f\u52d9\u3067\u4f7f\u3048\u308b\u57fa\u672c\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3082\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"M0DpZ9qSJj\"><p><a href=\"https:\/\/bizroad-svc.com\/blog\/vba-nyuumon\/\">\u30102025\u3011\u308f\u304b\u308a\u3084\u3059\u3044VBA\u5165\u9580\u30ac\u30a4\u30c9\uff01\u521d\u671f\u8a2d\u5b9a\u30fb\u30a8\u30e9\u30fc\u6642\u306e\u5bfe\u51e6\u6cd5\u30fb\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5\u3068\u751f\u6210AI\u6d3b\u7528\u8853\u3082\u89e3\u8aac<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30102025\u3011\u308f\u304b\u308a\u3084\u3059\u3044VBA\u5165\u9580\u30ac\u30a4\u30c9\uff01\u521d\u671f\u8a2d\u5b9a\u30fb\u30a8\u30e9\u30fc\u6642\u306e\u5bfe\u51e6\u6cd5\u30fb\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5\u3068\u751f\u6210AI\u6d3b\u7528\u8853\u3082\u89e3\u8aac&#8221; &#8212; BIZ ROAD\uff08\u30d3\u30ba\u30ed\u30fc\u30c9\uff09\" src=\"https:\/\/bizroad-svc.com\/blog\/vba-nyuumon\/embed\/#?secret=iRcv2TX2iM#?secret=M0DpZ9qSJj\" data-secret=\"M0DpZ9qSJj\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u301c\u5fdc\u7528\u7de8\u301c<\/h2>\n<p>VBA\u3092\u4f7f\u3063\u3066\u30bb\u30eb\u64cd\u4f5c\u304c\u3067\u304d\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5fdc\u7528\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u30bb\u30eb\u306b\u5024\u3092\u5165\u529b<\/strong><\/li>\n<li><strong>\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664<\/strong><\/li>\n<li><strong>\u30bb\u30eb\u306e\u5024\u3092\u30b3\u30d4\u30fc\/\u8cbc\u308a\u4ed8\u3051<\/strong><\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u306e\u5fdc\u7528\u7684\u306a\u57fa\u672c\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u2460\u30bb\u30eb\u306b\u5024\u3092\u5165\u529b<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156666\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-11.png\" alt=\"\u30bb\u30eb\u306b\u5024\u3092\u5165\u529b\" width=\"698\" height=\"365\" \/><\/p>\n<p><span class=\"marker-halfYellow\"><strong>\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u306b\u5024\u3092\u5165\u529b\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000\u3000Range(\u201cA1\u201d).Value = \u201c\u3053\u3093\u306b\u3061\u306f\u201d<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001A1\u30bb\u30eb\u306b\u300c\u3053\u3093\u306b\u3061\u306f\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u2461\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156667\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-12.png\" alt=\"\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664\" width=\"698\" height=\"365\" \/><\/p>\n<p><span class=\"marker-halfYellow\"><strong>\u30bb\u30eb\u306b\u5165\u529b\u3055\u308c\u305f\u5024\u3092\u524a\u9664\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000Range(&#8220;A1&#8221;).ClearContents<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001A1\u306b\u5165\u529b\u3055\u308c\u305f\u5024\u3092\u524a\u9664\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30bb\u30eb\u306e\u5024\u3092\u524a\u9664\u3059\u308b\u306e\u306b\u4f7f\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\"><strong>\u30e1\u30bd\u30c3\u30c9<\/strong><\/td>\n<td style=\"width: 50%;\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">.ClearContents<\/td>\n<td style=\"width: 50%;\">\u5024\u306e\u307f\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">.Clear<\/td>\n<td style=\"width: 50%;\">\u5024\u30fb\u66f8\u5f0f\u30fb\u80cc\u666f\u8272\u3059\u3079\u3066\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">.Value<\/td>\n<td style=\"width: 50%;\">= &#8220;&#8221;\u3067\u5024\u3060\u3051\u7a7a\u6b04\u306b\u3059\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7528\u9014\u306b\u3088\u3063\u3066\u4f7f\u3044\u5206\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u2462\u30bb\u30eb\u306e\u5024\u3092\u30b3\u30d4\u30fc\/\u8cbc\u308a\u4ed8\u3051<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156668\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-13.png\" alt=\"\u30bb\u30eb\u306e\u5024\u3092\u30b3\u30d4\u30fc\/\u8cbc\u308a\u4ed8\u3051\" width=\"698\" height=\"365\" \/><\/p>\n<p><span class=\"marker-halfYellow\"><strong>\u30bb\u30eb\u306b\u5165\u529b\u3055\u308c\u305f\u5024\u3092\u30b3\u30d4\u30fc\u3057\u3001\u5225\u306e\u30bb\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000\u3000Range(\u201cA1\u201d).Copy Destination:=Range(\u201cB1\u201d)<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001A1\u306e\u5024\u3092B1\u306b\u30b3\u30d4\u30fc&amp;\u30da\u30fc\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001VBA\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u57fa\u790e\u304b\u3089\u5b66\u3073\u305f\u3044\u5834\u5408\u306f\u3001\u8b1b\u5ea7\u306e\u5229\u7528\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<a href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\">Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc<\/a>\u306a\u3089\u3001VBA\u3092\u4f7f\u3063\u305f\u81ea\u52d5\u5316\u51e6\u7406\u306b\u3064\u3044\u3066\u5b66\u3079\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><a class=\"btn__link btn__link-primary\" href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\">Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc\u306e\u8a73\u7d30\u306f\u3053\u3061\u3089<\/a><\/p>\n<h2>VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u301c\u5b9f\u8df5\u7de8\u301c<\/h2>\n<p>VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3001\u5b9f\u52d9\u3067\u3082\u4f7f\u3048\u308b\u51e6\u7406\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u30b0\u30e9\u30d5\u306e\u81ea\u52d5\u4f5c\u6210<\/strong><\/li>\n<li><strong>\u8907\u6570\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u96c6\u7d04<\/strong><\/li>\n<li><strong>\u5b9a\u578b\u696d\u52d9\u306e\u81ea\u52d5\u5316<\/strong><\/li>\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u306e\u81ea\u52d5\u4fdd\u5b58<\/strong><\/li>\n<li><strong>\u30e1\u30fc\u30eb\u306e\u81ea\u52d5\u9001\u4fe1<\/strong><\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u306e\u51e6\u7406\u304c\u5b9f\u88c5\u3067\u304d\u308b\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u2460\u30b0\u30e9\u30d5\u306e\u81ea\u52d5\u4f5c\u6210<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156675\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-15.png\" alt=\"\u30b0\u30e9\u30d5\u306e\u81ea\u52d5\u4f5c\u6210\" width=\"698\" height=\"365\" \/><\/p>\n<p>VBA\u3092\u4f7f\u3048\u3070\u3001\u30c7\u30fc\u30bf\u3092\u3082\u3068\u306b\u30b0\u30e9\u30d5\u3092\u81ea\u52d5\u3067\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<span class=\"marker-halfYellow\"><strong>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30bb\u30eb\u7bc4\u56f2B2\u304b\u3089F6\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u3001\u6298\u308c\u7dda\u30b0\u30e9\u30d5\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000With ActiveSheet.Shapes.AddChart.Chart.<\/strong><br \/>\n<strong>\u3000\u3000ChartType = xlLine<\/strong><br \/>\n<strong>\u3000\u3000.SetSourceData Source:=Range(&#8220;B2:F6&#8221;)<\/strong><br \/>\n<strong>\u3000End With<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u624b\u4f5c\u696d\u3067\u30b0\u30e9\u30d5\u3092\u4f5c\u308b\u624b\u9593\u3092\u7701\u3051\u308b\u305f\u3081\u3001\u30ec\u30dd\u30fc\u30c8\u4f5c\u6210\u306e\u52b9\u7387\u5316\u304c\u56f3\u308c\u307e\u3059\u3002<\/p>\n<h3>\u2461\u8907\u6570\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u96c6\u7d04<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156679\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-16.png\" alt=\"\u8907\u6570\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u96c6\u7d04\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u8907\u6570\u306e\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306b\u5206\u304b\u308c\u305f\u30c7\u30fc\u30bf\u3092\u30011\u3064\u306e\u300c\u96c6\u7d04\u30b7\u30fc\u30c8\u300d\u306b\u307e\u3068\u3081\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b<span class=\"marker-halfYellow\"><strong>\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u4f7f\u3063\u3066\u30012\u679a\u76ee\u4ee5\u964d\u306e\u30b7\u30fc\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<br \/>\n<\/strong>\u3000<strong>Dim i As Long<\/strong><br \/>\n<strong>\u3000For i = 2 To Sheets.Count<\/strong><br \/>\n<strong>\u3000\u3000With Sheets(i).Range(&#8220;A2&#8221;).CurrentRegion\u00a0<\/strong><br \/>\n<strong>\u3000\u3000\u3000.Copy Destination:=Sheets(&#8220;\u96c6\u7d04\u30b7\u30fc\u30c8&#8221;).Cells(Rows.Count, &#8220;A&#8221;).End(xlUp).Offset(1, 0)<\/strong><br \/>\n<strong>\u3000\u3000End With<\/strong><br \/>\n<strong>\u3000Next<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u5927\u91cf\u30c7\u30fc\u30bf\u306e\u6574\u7406\u306b\u5f79\u7acb\u3064\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n<h3>\u2462\u5b9a\u578b\u696d\u52d9\u306e\u81ea\u52d5\u5316<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156671\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-14.png\" alt=\"\u5b9a\u578b\u696d\u52d9\u306e\u81ea\u52d5\u5316\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u6bce\u65e5\u7e70\u308a\u8fd4\u3059\u3088\u3046\u306a\u5b9a\u578b\u4f5c\u696d\u3082VBA\u3067\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<span class=\"marker-halfYellow\"><strong>\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001B\u5217\u306e3\u301c5\u884c\u76ee\u306b\u4eca\u65e5\u306e\u65e5\u4ed8\u3092\u5165\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u00a0 \u00a0Dim i As Integer<\/strong><br \/>\n<strong>\u00a0 \u00a0For i = 3 To 5<\/strong><br \/>\n<strong>\u00a0 \u00a0 \u00a0 \u00a0Cells(i, 2).Value = Date<\/strong><br \/>\n<strong>\u00a0 \u00a0Next i<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u7c21\u5358\u306a\u30eb\u30fc\u30d7\u51e6\u7406\u3067\u3001\u4e00\u5ea6\u306b\u884c\u3046\u5165\u529b\u306e\u624b\u9593\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u2463\u30d5\u30a1\u30a4\u30eb\u306e\u81ea\u52d5\u4fdd\u5b58<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156682\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-17.png\" alt=\"\u30d5\u30a1\u30a4\u30eb\u306e\u81ea\u52d5\u4fdd\u5b58\" width=\"698\" height=\"365\" \/><\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092ThisWorkbook\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u8a18\u8ff0\u3059\u308c\u3070\u3001<span class=\"marker-halfYellow\"><strong>\u30d6\u30c3\u30af\u3092\u9589\u3058\u308b\u3068\u304d\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u81ea\u52d5\u4fdd\u5b58\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Private Sub Workbook_BeforeClose(Cancel As Boolean)<\/strong><br \/>\n<strong>\u3000ThisWorkbook.Save<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u4fdd\u5b58\u5fd8\u308c\u3092\u9632\u6b62\u3067\u304d\u308b\u306e\u3067\u3001\u5c0e\u5165\u3057\u3066\u304a\u304f\u3068\u65e5\u3005\u306e\u696d\u52d9\u3092\u5b89\u5fc3\u3057\u3066\u884c\u3048\u307e\u3059\u3002<\/p>\n<h3>\u2464\u30e1\u30fc\u30eb\u306e\u81ea\u52d5\u9001\u4fe1<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-156683\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2025\/08\/capture488-18.png\" alt=\"\u30e1\u30fc\u30eb\u306e\u81ea\u52d5\u9001\u4fe1\" width=\"698\" height=\"365\" \/><\/p>\n<p><span class=\"marker-halfYellow\"><strong>Outlook\u3068\u9023\u643a\u3057\u3066\u3001VBA\u304b\u3089\u81ea\u52d5\u3067\u30e1\u30fc\u30eb\u3092\u9001\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/strong><\/span>\u4ee5\u4e0b\u306f\u305d\u306e\u57fa\u672c\u7684\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><strong>Sub Test()<\/strong><br \/>\n<strong>\u3000Dim OutlookApp As Object<\/strong><br \/>\n<strong>\u3000Dim OutlookMail As Object<br \/>\n<\/strong><strong><br \/>\nSet OutlookApp = CreateObject(&#8220;Outlook.Application&#8221;)<\/strong><br \/>\n<strong><strong><strong>\u3000Set OutlookMail = OutlookApp.CreateItem(0)<br \/>\n<\/strong><\/strong><\/strong><strong>\u3000With OutlookMail<\/strong><br \/>\n<strong>\u3000\u3000.To = &#8220;sample@example.com&#8221;<\/strong><br \/>\n<strong>\u3000\u3000.Subject = &#8220;\u30b5\u30f3\u30d7\u30eb\u30e1\u30fc\u30eb&#8221;<\/strong><br \/>\n<strong>\u3000\u3000.Body = &#8220;\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002&#8221;<\/strong><br \/>\n<strong>\u3000\u3000.Send<\/strong><br \/>\n<strong>\u3000End With<\/strong><br \/>\n<strong>End Sub<\/strong><\/div>\n<p>\u5831\u544a\u30e1\u30fc\u30eb\u3092\u81ea\u52d5\u9001\u4fe1\u3059\u308b\u5834\u9762\u306a\u3069\u3067\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>VBA\u306e\u57fa\u672c\u3092\u52b9\u7387\u7684\u306b\u5b66\u3076\u306a\u3089<\/h2>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-107848 size-full\" src=\"https:\/\/bizroad-svc.com\/blog\/wp-content\/uploads\/2024\/10\/excel-macro-vba.png\" alt=\"Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc\" width=\"698\" height=\"365\" \/><\/p>\n<p>VBA\u306e\u57fa\u672c\u3092\u5b66\u3076\u306a\u3089\u3001\u8b1b\u5ea7\u3067\u30d7\u30ed\u304b\u3089\u6559\u308f\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<a href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\">Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc<\/a>\u3067\u306f\u3001<span class=\"marker-halfYellow\"><strong>VBA\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u304b\u3089\u3001\u5b9f\u969b\u306b\u81ea\u52d5\u5316\u3092\u884c\u3046\u6d41\u308c\u307e\u3067\u3092\u7db2\u7f85\u7684\u306b\u5b66\u3079\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u72ec\u5b66\u3067\u306f\u306a\u306b\u304b\u3089\u59cb\u3081\u305f\u3089\u3088\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u65b9\u306f\u3001\u305c\u3072\u672c\u30bb\u30df\u30ca\u30fc\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span data-sheets-root=\"1\"><div class=\"seminar-list\"><div class=\"seminar-item\"><table class=\"seminar-feed-table\">\n                    <tr><th>\u30bb\u30df\u30ca\u30fc\u540d<\/th><td>Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc<\/td><\/tr>\n                    <tr><th>\u904b\u55b6\u5143<\/th><td>GETT Proskill\uff08\u30b2\u30c3\u30c8 \u30d7\u30ed\u30b9\u30ad\u30eb\uff09<\/td><\/tr>\n                    <tr><th>\u4fa1\u683c(\u7a0e\u8fbc)<\/th><td>29,700\u5186\u301c<\/td><\/tr>\n                                                              <tr><th>\u53d7\u8b1b\u671f\u9593<\/th><td>2\u65e5\u9593<\/td><\/tr>\n                                                            <tr><th>\u53d7\u8b1b\u5f62\u5f0f<\/th><td>\u5bfe\u9762\uff08\u6771\u4eac\u30fb\u540d\u53e4\u5c4b\u30fb\u5927\u962a\uff09\u30fb\u30e9\u30a4\u30d6\u30a6\u30a7\u30d3\u30ca\u30fc\u30fbe\u30e9\u30fc\u30cb\u30f3\u30b0<\/td><\/tr>\n                                    <\/table><\/div><\/div><\/span><\/p>\n<div class=\"btn btn-center\"><a class=\"btn__link btn__link-primary\" href=\"https:\/\/proskilll.com\/seminar\/excel-macro-vba\/\">Excel VBA\u30fb\u30de\u30af\u30ed\u30bb\u30df\u30ca\u30fc\u306e\u8a73\u7d30\u306f\u3053\u3061\u3089<\/a><\/div>\n<h2>VBA\u3067\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n<p>VBA\u3067\u3088\u304f\u3042\u308b\u8cea\u554f\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002\u56de\u7b54\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"ep-box es-BmarkQ bgc-white\"><strong>VBA\u306f\u72ec\u5b66\u3067\u7fd2\u5f97\u3067\u304d\u308b\uff1f<\/strong><\/div>\n<div class=\"ep-box es-BmarkA bgc-white\"><span class=\"marker-halfYellow\"><strong>VBA\u306f\u5b66\u7fd2\u96e3\u6613\u5ea6\u304c\u6bd4\u8f03\u7684\u4f4e\u304f\u3001\u521d\u5fc3\u8005\u306b\u3082\u5411\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u72ec\u5b66\u3067\u3082\u5341\u5206\u7fd2\u5f97\u3067\u304d\u307e\u3059\u3002<\/strong><\/span>\u5b66\u7fd2\u3059\u308b\u969b\u306f\u3001\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u8a66\u3059\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/div>\n<div class=\"ep-box es-BmarkQ bgc-white\"><strong>VBA\u306f\u3044\u3064\u5ec3\u6b62\u3055\u308c\u308b\u306e\uff1f<\/strong><\/div>\n<div class=\"ep-box es-BmarkA bgc-white\">\n<p><span class=\"marker-halfYellow\"><strong>VBA\u306f\u3001\u73fe\u6642\u70b9\u3067\u5ec3\u6b62\u306e\u4e88\u5b9a\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/span>\u305f\u3060\u3057\u3001JavaScript\u3092\u30d9\u30fc\u30b9\u306b\u4f5c\u3089\u308c\u305fOfficeScripts\u306e\u767b\u5834\u306b\u3088\u308a\u3001\u5f90\u3005\u306b\u79fb\u884c\u304c\u9032\u3080\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u3082\u3001\u5177\u4f53\u7684\u306a\u30a2\u30ca\u30a6\u30f3\u30b9\u306f\u306a\u3044\u305f\u3081\u3001\u5b66\u7fd2\u306f\u7d99\u7d9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/div>\n<div class=\"ep-box es-BmarkQ bgc-white\"><strong>VBA\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u5e74\u53ce\u306f\uff1f<\/strong><\/div>\n<div class=\"ep-box es-BmarkA bgc-white\"><span class=\"marker-halfYellow\"><strong>VBA\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u5e74\u53ce\u306f\u3001400\u301c500\u4e07\u5186\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/strong><\/span>\u305f\u3060\u3057\u3001\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u306e\u5834\u5408\u306f\u3001\u30b9\u30ad\u30eb\u3084\u7d4c\u9a13\u306b\u3088\u3063\u3066\u306f\u5e74\u53ce500\u4e07\u5186\u4ee5\u4e0a\u3082\u76ee\u6307\u305b\u308b\u3067\u3057\u3087\u3046\u3002<\/div>\n<h2>VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306e\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<span class=\"marker-halfYellow\"><strong>\u96e3\u3057\u3044\u30a4\u30e1\u30fc\u30b8\u306e\u3042\u308bVBA\u3067\u3059\u304c\u3001\u57fa\u672c\u69cb\u6587\u3092\u7406\u89e3\u3067\u304d\u308c\u3070\u3001\u5fdc\u7528\u30b9\u30ad\u30eb\u306b\u3082\u3059\u3093\u306a\u308a\u30c1\u30e3\u30ec\u30f3\u30b8\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/strong><\/span><\/p>\n<p>\u521d\u5fc3\u8005\u306f\u3001\u307e\u305a\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u3092\u771f\u4f3c\u3057\u306a\u304c\u3089\u66f8\u3044\u3066\u307f\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u5b9f\u884c\u3068\u4fee\u6b63\u3092\u7e70\u308a\u8fd4\u3057\u306a\u304c\u3089\u3001VBA\u306e\u66f8\u304d\u65b9\u306b\u6163\u308c\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e5\u3005\u306e\u696d\u52d9\u306e\u4e2d\u306b\u306f\u3001\u7e70\u308a\u8fd4\u3057\u884c\u3046\u5b9a\u578b\u696d\u52d9\u3082\u542b\u307e\u308c\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u3002VBA\u3092\u4f7f\u3048\u3070\u3001\u305d\u3093\u306a\u5b9a\u578b\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001VBA\u306e\u57fa\u672c\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u306a\u304c\u3089\u3001\u5b9f\u52d9\u3067\u3082\u4f7f\u3048\u308b\u51e6\u7406\u306e\u5b9f\u88c5\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3059\u308b\u3068\u3068\u3082\u306b\u3001VBA\u306e\u57fa\u672c\u3092\u77ed\u671f\u9593\u3067\u5b66\u3079\u308bVBA\u8b1b [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":156685,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[168],"tags":[264,597,242],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/posts\/156653"}],"collection":[{"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/comments?post=156653"}],"version-history":[{"count":9,"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/posts\/156653\/revisions"}],"predecessor-version":[{"id":169811,"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/posts\/156653\/revisions\/169811"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/media\/156685"}],"wp:attachment":[{"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/media?parent=156653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/categories?post=156653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bizroad-svc.com\/blog\/wp-json\/wp\/v2\/tags?post=156653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}