{"id":4522,"date":"2014-06-26T16:00:50","date_gmt":"2014-06-26T07:00:50","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4522"},"modified":"2014-06-26T16:00:50","modified_gmt":"2014-06-26T07:00:50","slug":"%e5%8f%97%e4%bf%a1%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ab%e5%af%be%e3%81%97%e3%81%a6%e8%87%aa%e5%8b%95%e7%9a%84%e3%81%ab%e8%bf%94%e4%bf%a1%e3%81%99%e3%82%8boutlook%e3%83%9e%e3%82%af%e3%83%ad","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4522","title":{"rendered":"\u53d7\u4fe1\u30e1\u30fc\u30eb\u306b\u5bfe\u3057\u3066\u81ea\u52d5\u7684\u306b\u8fd4\u4fe1\u3059\u308bOutlook\u30de\u30af\u30ed"},"content":{"rendered":"<p>\u300c<strong>Outlook VBA \u81ea\u52d5\u8fd4\u4fe1<\/strong>\u300d\u3068\u3044\u3063\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3067\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u306e\u3067\u3001<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/ff863686.aspx\" title=\"Application.NewMailEx \u30a4\u30d9\u30f3\u30c8 (Outlook)(\u6a5f\u68b0\u7ffb\u8a33)\" target=\"_blank\">Application\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eNewMailEx\u30a4\u30d9\u30f3\u30c8<\/a>\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u4e0b\u8a18\u30b3\u30fc\u30c9\u306f\u300cThisOutlookSession\u300d\u306b\u8a18\u8ff0<\/span><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate Sub Application_NewMailEx(ByVal EntryIDCollection As String)\r\n  Dim itm As Object\r\n  Dim msg As String\r\n  \r\n  Set itm = Application.Session.GetItemFromID(EntryIDCollection)\r\n  If LCase(TypeName(itm)) = &quot;mailitem&quot; Then\r\n    With itm.ReplyAll\r\n      msg = itm.SenderName &amp; &quot;( &quot; &amp; itm.SenderEmailAddress &amp; &quot; )\u69d8&quot; &amp; vbCrLf &amp; vbCrLf &amp; _\r\n            &quot;\u3054\u9023\u7d61\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002&quot; &amp; vbCrLf &amp; _\r\n            &quot;\u53d7\u4ed8\u767b\u9332\u5b8c\u4e86\u3044\u305f\u3057\u307e\u3057\u305f\u3002&quot; &amp; vbCrLf &amp; vbCrLf &amp; _\r\n            &quot;--------------------&quot; &amp; vbCrLf &amp; .Body\r\n      .Body = msg\r\n      .Send\r\n    End With\r\n  End If\r\nEnd Sub<\/pre>\n<p>\u5927\u62b5\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u306fVacation(AutoReply)\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3057\u3001Outlook\u3067\u3082<a href=\"http:\/\/office.microsoft.com\/ja-jp\/HA010248748.aspx\" title=\"\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u81ea\u52d5\u8fd4\u4fe1\u3059\u308b\" target=\"_blank\">\u6a19\u6e96\u6a5f\u80fd<\/a>\u3067\u5bfe\u5fdc\u3067\u304d\u308b\u305f\u3081\u3001\u4e2d\u3005\u30de\u30af\u30ed\u3092\u4f7f\u3046\u6a5f\u4f1a\u306f\u7121\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30de\u30af\u30ed\u3060\u3068\u81ea\u7531\u5ea6\u306f\u9ad8\u3044\u306e\u3067\u3001\u305f\u3068\u3048\u3070\u30e1\u30fc\u30eb\u53d7\u4fe1\u6642\u306b\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3092\u5370\u5237\u3057\u305f\u308a\u3001\u30e1\u30fc\u30eb\u5185\u5bb9\u3092\u81ea\u52d5\u7684\u306bDB\u306b\u767b\u9332\u3057\u305f\u308a\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u300cOutlook VBA \u81ea\u52d5\u8fd4\u4fe1\u300d\u3068\u3044\u3063\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3067\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u306e\u3067\u3001Application\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eNewMailEx\u30a4\u30d9\u30f3\u30c8\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002 \u203b \u4e0b\u8a18\u30b3\u30fc\u30c9\u306f\u300cThisOutlo [&hellip;]","protected":false},"author":1,"featured_media":7124,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,68],"tags":[],"class_list":["post-4522","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-1aW","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4522","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=4522"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4522\/revisions"}],"predecessor-version":[{"id":4523,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4522\/revisions\/4523"}],"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=4522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}