{"id":6793,"date":"2016-03-09T11:12:30","date_gmt":"2016-03-09T02:12:30","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6793"},"modified":"2016-03-09T11:12:30","modified_gmt":"2016-03-09T02:12:30","slug":"outlook%e4%bb%95%e5%88%86%e3%81%91%e3%83%ab%e3%83%bc%e3%83%ab%e3%81%a7%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%83%9e%e3%82%af%e3%83%ad%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6793","title":{"rendered":"[Outlook]\u4ed5\u5206\u3051\u30eb\u30fc\u30eb\u3067\u30b9\u30af\u30ea\u30d7\u30c8(\u30de\u30af\u30ed)\u3092\u5b9f\u884c\u3059\u308b\u3002"},"content":{"rendered":"<p><a href=\"https:\/\/social.msdn.microsoft.com\/Forums\/ja-JP\/home?forum=vbajp\" title=\"Msdn \u30d5\u30a9\u30fc\u30e9\u30e0 - Visual Basic for Application(VBA)\" target=\"_blank\">Msdn \u30d5\u30a9\u30fc\u30e9\u30e0<\/a>\u306b\u3042\u3063\u305f<a href=\"https:\/\/social.msdn.microsoft.com\/Forums\/ja-JP\/vbajp\/thread\/919fdba7-8f6f-419e-8472-29bb2bcc0ead\" title=\"\u30e1\u30fc\u30eb\u672c\u6587\u306e\u307f\u81ea\u52d5\u5370\u5237\" target=\"_blank\">\u8cea\u554f<\/a>\u95a2\u9023\u3067\u30e1\u30e2\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>Outlook\u3067\u306f\u3001<\/p>\n<p>\u4ed5\u5206\u3051\u30eb\u30fc\u30eb\u3068\u901a\u77e5\u306e\u7ba1\u7406<br \/>\n\u2193<br \/>\n\u65b0\u3057\u3044\u4ed5\u5206\u3051\u30eb\u30fc\u30eb<br \/>\n\u2193<br \/>\n\u81ea\u52d5\u4ed5\u5206\u3051\u30a6\u30a3\u30b6\u30fc\u30c9<\/p>\n<p>\u306e\u300c\u30b9\u30c6\u30c3\u30d7 1: \u51e6\u7406\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u300d\u306b\u3042\u308b\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30b9\u30af\u30ea\u30d7\u30c8 \u3092\u5b9f\u884c\u3059\u308b<\/span>\u300d\u3067\u30de\u30af\u30ed\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u53d7\u4fe1\u6642\u306b\u4efb\u610f\u306e\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Outlook_Rule_Script_01.jpg\" alt=\"Outlook_Rule_Script_01\" width=\"529\" height=\"650\" class=\"alignnone size-full wp-image-6794\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Outlook_Rule_Script_01.jpg 529w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Outlook_Rule_Script_01-244x300.jpg 244w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Sub Test()\r\n  MsgBox &quot;Hello.&quot;\r\nEnd Sub<\/pre>\n<p>\u306e\u3088\u3046\u306a\u30de\u30af\u30ed\u3067\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8(\u30de\u30af\u30ed)\u3092\u9078\u629e\u3059\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u8868\u793a\u3055\u308c\u305a\u3001\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3069\u306e\u3088\u3046\u306a\u30de\u30af\u30ed\u306a\u3089\u5b9f\u884c\u3067\u304d\u308b\u306e\u304b\u3068\u8a00\u3048\u3070\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb(ThisOutlookSession\u3067\u3082\u53ef)\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u307f\u308b\u3068\u3088\u304f\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic Sub MailItemProc1(ByRef Item As Outlook.MailItem)\r\n  MsgBox Item.Subject, vbSystemModal + vbInformation\r\nEnd Sub\r\n\r\nPublic Sub MeetingItemProc1(ByRef Item As Outlook.MeetingItem)\r\n  MsgBox Item.Subject, vbSystemModal + vbExclamation\r\nEnd Sub\r\n\r\nPrivate Sub MailItemProc2(ByRef Item As Outlook.MailItem)\r\n  MsgBox Item.Subject, vbSystemModal + vbInformation\r\nEnd Sub\r\n\r\nPrivate Sub MeetingItemProc2(ByRef Item As Outlook.MeetingItem)\r\n  MsgBox Item.Subject, vbSystemModal + vbExclamation\r\nEnd Sub\r\n\r\nPublic Sub MailItemProc3(ByVal Item As Outlook.MailItem)\r\n  MsgBox Item.Subject, vbSystemModal + vbInformation\r\nEnd Sub\r\n\r\nPublic Sub MeetingItemProc3(ByVal Item As Outlook.MeetingItem)\r\n  MsgBox Item.Subject, vbSystemModal + vbExclamation\r\nEnd Sub\r\n\r\nPublic Sub MailItemProc4(ByRef Item As Object)\r\n  MsgBox Item.Subject, vbSystemModal + vbInformation\r\nEnd Sub\r\n\r\nPublic Sub MeetingItemProc4(ByRef Item As Variant)\r\n  MsgBox Item.Subject, vbSystemModal + vbExclamation\r\nEnd Sub\r\n\r\nPublic Sub MailItemProc5()\r\n  MsgBox &quot;Hello.&quot;, vbSystemModal + vbInformation\r\nEnd Sub\r\n\r\nPrivate Sub MeetingItemProc5()\r\n  MsgBox &quot;Hello.&quot;, vbSystemModal + vbExclamation\r\nEnd Sub<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306e\u3046\u3061\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u9078\u629e\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u8868\u793a\u3055\u308c\u308b\u306e\u306f\u300c<span style=\"color: #ff0000; font-weight: bold;\">MailItemProc1<\/span>\u300d\u3068\u300c<span style=\"color: #ff0000; font-weight: bold;\">MeetingItemProc1<\/span>\u300d\u3060\u3051\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Outlook_Rule_Script_02.jpg\" alt=\"Outlook_Rule_Script_02\" width=\"356\" height=\"200\" class=\"alignnone size-full wp-image-6795\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Outlook_Rule_Script_02.jpg 356w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Outlook_Rule_Script_02-300x169.jpg 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/p>\n<p>\u3064\u307e\u308a\u3001\u4ed5\u8a33\u30eb\u30fc\u30eb\u3067\u4f7f\u3048\u308b\u30b9\u30af\u30ea\u30d7\u30c8(\u30de\u30af\u30ed)\u306f\u3001<\/p>\n<ol>\n<li><span style=\"color: #ff0000; font-weight: bold;\">Public<\/span>\u30b9\u30b3\u30fc\u30d7<\/li>\n<li>\u5f15\u6570\u306b<span style=\"color: #ff0000; font-weight: bold;\">MailItem<\/span>\u304b<span style=\"color: #ff0000; font-weight: bold;\">MeetingItem<\/span>\u3092\u6301\u3064<\/li>\n<li>\u5f15\u6570\u306f<span style=\"color: #ff0000; font-weight: bold;\">ByRef<\/span><\/li>\n<\/ol>\n<p>\u4e0a\u8a18\u6761\u4ef6\u3092\u6e80\u305f\u3057\u305f\u3082\u306e\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u300c<a href=\"https:\/\/support.microsoft.com\/ja-jp\/kb\/306108\" title=\"How to create a script for the Rules Wizard in Outlook\" target=\"_blank\">How to create a script for the Rules Wizard in Outlook<\/a>\u300d\u306b\u8a18\u8f09\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u77e5\u3063\u3066\u3044\u306a\u3044\u3068\u300c\u306a\u3093\u3067\u9078\u629e\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u51fa\u3066\u3053\u306a\u3044\u306e\uff1f\u300d\u3068\u3001\u5f15\u3063\u639b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Msdn \u30d5\u30a9\u30fc\u30e9\u30e0\u306b\u3042\u3063\u305f\u8cea\u554f\u95a2\u9023\u3067\u30e1\u30e2\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002 Outlook\u3067\u306f\u3001 \u4ed5\u5206\u3051\u30eb\u30fc\u30eb\u3068\u901a\u77e5\u306e\u7ba1\u7406 \u2193 \u65b0\u3057\u3044\u4ed5\u5206\u3051\u30eb\u30fc\u30eb \u2193 \u81ea\u52d5\u4ed5\u5206\u3051\u30a6\u30a3\u30b6\u30fc\u30c9 \u306e\u300c\u30b9\u30c6\u30c3\u30d7 1: \u51e6\u7406\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u300d\u306b\u3042\u308b\u300c\u30b9\u30af\u30ea\u30d7 [&hellip;]","protected":false},"author":1,"featured_media":7124,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Outlook]\u4ed5\u5206\u3051\u30eb\u30fc\u30eb\u3067\u30b9\u30af\u30ea\u30d7\u30c8(\u30de\u30af\u30ed)\u3092\u5b9f\u884c\u3059\u308b]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,68],"tags":[],"class_list":["post-6793","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-outlook"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Outlook.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1Lz","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6793"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6793\/revisions"}],"predecessor-version":[{"id":6796,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6793\/revisions\/6796"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7124"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}