{"id":2620,"date":"2021-10-20T20:17:25","date_gmt":"2021-10-20T11:17:25","guid":{"rendered":"https:\/\/extan.jp\/?p=2620"},"modified":"2022-10-06T21:43:52","modified_gmt":"2022-10-06T12:43:52","slug":"%e3%80%90outlookvba%e3%80%91getnamespace%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%81%ae%e7%a8%ae%e9%a1%9e%e3%81%a8%e5%bc%95%e6%95%b0%e3%81%af%e3%81%aa","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=2620","title":{"rendered":"\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01"},"content":{"rendered":"<p>Outlook\u3067\u53d7\u4fe1\u30e1\u30fc\u30eb\u3084\u4e88\u5b9a\u8868\u3001\u30bf\u30b9\u30af\u306a\u3069\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u3067\u4f55\u304b\u3068\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044<br \/>\nGetNamespace\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u304c\u3001<\/p>\n<div class=\"kininarukoto1\">\u30fb\u4f7f\u3044\u65b9\u304c\u3044\u307e\u3044\u3061\u308f\u304b\u3089\u306a\u3044\u2026<br \/>\n\u30fb\u5f15\u6570\u306f\u4f55\u3092\u6307\u5b9a\u3057\u3066\u3044\u3044\u304b\u308f\u304b\u3089\u306a\u3044\u2026<br \/>\n\u30fb\u5b9f\u884c\u3057\u305f\u304c\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f<\/div>\n<p>\u3068\u3044\u3046\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u3068\u304d\u306b\u5f79\u7acb\u3064<\/p>\n<div class=\"rdinfo\">\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066<br \/>\n\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066<br \/>\n\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570<br \/>\n\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_66_1 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\">\u3082\u304f\u3058<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=2620\/#Namespace%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A8GetNamespace%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A8%E3%81%AF%EF%BC%9F\" title=\"Namespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068GetNamespace\u30e1\u30bd\u30c3\u30c9\u3068\u306f\uff1f\">Namespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068GetNamespace\u30e1\u30bd\u30c3\u30c9\u3068\u306f\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A8%E3%81%AF%EF%BC%9F\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3068\u306f\uff1f\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3068\u306f\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%AE%E6%A7%8B%E6%96%87%E3%81%AF%EF%BC%9F\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306f\uff1f\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306f\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%93%8D%E4%BD%9C%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%83%BC%E3%81%AE%E7%A8%AE%E9%A1%9E%E3%81%A8%E6%8C%87%E5%AE%9A%E3%81%A7%E3%81%8D%E3%82%8B%E5%BC%95%E6%95%B0%E3%81%AF%E3%81%AA%E3%81%AB%EF%BC%9F\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u64cd\u4f5c\u3067\u304d\u308b\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u306f\u306a\u306b\uff1f\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u64cd\u4f5c\u3067\u304d\u308b\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u306f\u306a\u306b\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%AE%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%AF%EF%BC%9F\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\uff1f\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\uff1f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E5%8F%97%E4%BF%A1%E3%83%88%E3%83%AC%E3%82%A4%E4%B8%80%E8%A6%A7%E3%82%92%E5%8F%96%E5%BE%97\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u4e00\u89a7\u3092\u53d6\u5f97\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u4e00\u89a7\u3092\u53d6\u5f97<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E4%BA%88%E5%AE%9A%E4%B8%80%E8%A6%A7%E3%82%92%E5%8F%96%E5%BE%97\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u4e88\u5b9a\u4e00\u89a7\u3092\u53d6\u5f97\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u4e88\u5b9a\u4e00\u89a7\u3092\u53d6\u5f97<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E3%82%BF%E3%82%B9%E3%82%AF%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%82%92%E5%8F%96%E5%BE%97\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30bf\u30b9\u30af\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30bf\u30b9\u30af\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E3%83%A1%E3%83%A2%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%82%92%E5%8F%96%E5%BE%97\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30e1\u30e2\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30e1\u30e2\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/extan.jp\/?p=2620\/#GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%82%92%E8%AA%BF%E3%81%B9%E3%82%8B%E6%96%B9%E6%B3%95\" title=\"GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u3067\u304d\u306a\u3044\u30d5\u30a9\u30eb\u30c0\u3092\u8abf\u3079\u308b\u65b9\u6cd5\">GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u3067\u304d\u306a\u3044\u30d5\u30a9\u30eb\u30c0\u3092\u8abf\u3079\u308b\u65b9\u6cd5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/extan.jp\/?p=2620\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" title=\"\u3055\u3044\u3054\u306b\">\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Namespace%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A8GetNamespace%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A8%E3%81%AF%EF%BC%9F\"><\/span>Namespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068GetNamespace\u30e1\u30bd\u30c3\u30c9\u3068\u306f\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Namespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306fOutlookApplication\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3072\u3068\u3064\u3067\u3001Outlook\u306e\u30e1\u30fc\u30eb\u3001\u4e88\u5b9a\u8868\u3001\u30e1\u30e2\u3001\u9023\u7d61\u5148\u306a\u3069Outlook\u306e\u69d8\u3005\u306a\u30c7\u30fc\u30bf\u3092\u4fdd\u6709\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Namespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<br \/>\nGetNamespace\u30e1\u30bd\u30c3\u30c9\u306b&#8221;MAPI&#8221;\u3068\u3044\u3046\u540d\u524d\u7a7a\u9593\u3092\u6307\u5b9a\u3057\u3066\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u3001GetNamespace\u30e1\u30bd\u30c3\u30c9\u306fNamespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<div class=\"info\"><code>Set olApp = New Outlook.Application<br \/>\nSet olNamespace = olApp.GetNamespace(&quot;MAPI&quot;)<\/code><\/div>\n<p>\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306f\u898f\u5b9a\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u500b\u4eba\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u3078\u7a2e\u985e\u5225\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306f\u500b\u4eba\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u8aac\u660e\u3092\u3057\u307e\u3059\u3002<\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">GetNamespace\u30e1\u30bd\u30c3\u30c9\u3067&#8221;MAPI&#8221;\u3068\u3044\u3046\u7a7a\u9593\u306b\u3042\u308bOutlook\u306e\u30c7\u30fc\u30bf\u4fdd\u7ba1\u5eab\u3092\u3044\u3063\u305f\u3093\u4e38\u3054\u3068\u53d6\u5f97\u3057\u3066\u3001\u5f8c\u3067\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u500b\u5225\u306b\u53d6\u5f97\u3059\u308b\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u306d\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h2><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A8%E3%81%AF%EF%BC%9F\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3068\u306f\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u500b\u4eba\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f<br \/>\nNamespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8.GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306f\u5f15\u6570\u3067\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u53d7\u4fe1\u30c8\u30ec\u30a4\u3092\u30d5\u30a9\u30eb\u30c0\u6307\u5b9a\u3059\u308b\u3068\u53d7\u4fe1\u30c8\u30ec\u30a4\u306b\u5165\u3063\u3066\u3044\u308b\u30a2\u30a4\u30c6\u30e0\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u53d6\u5f97\u3067\u304d\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u5bfe\u8c61\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u524d\u8ff0\u306e\u901a\u308a\u3001Outlook\u4e0a\u3067\u300c<strong>\u898f\u5b9a<\/strong>\u300d\u3068\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">DefaultFolder\u306f<strong>\u898f\u5b9a\u3067\u6307\u5b9a\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\uff08\u30e6\u30fc\u30b6\u30fc\uff09\u306e\u30d5\u30a9\u30eb\u30c0<\/strong>\u3068\u3044\u3046\u610f\u5473\u306a\u3093\u3067\u3059\u306d\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h2><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%AE%E6%A7%8B%E6%96%87%E3%81%AF%EF%BC%9F\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306f\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>\u300c<strong>\uff1c\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\uff1e<\/strong>\u300d\u306b\u53d6\u5f97\u3057\u305f\u3044\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1ahttps:\/\/docs.microsoft.com\/ja-jp\/office\/vba\/api\/outlook.store.getdefaultfolder<\/p>\n<div class=\"info\"><code>Namespace\u30aa\u30d6\u30b8\u30a7\u30af\u30c8.GetDefaultFolder(&lt;strong&gt;\uff1c\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\uff1e&lt;\/strong&gt;)<\/code><\/div>\n<h2><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%93%8D%E4%BD%9C%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%83%BC%E3%81%AE%E7%A8%AE%E9%A1%9E%E3%81%A8%E6%8C%87%E5%AE%9A%E3%81%A7%E3%81%8D%E3%82%8B%E5%BC%95%E6%95%B0%E3%81%AF%E3%81%AA%E3%81%AB%EF%BC%9F\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u64cd\u4f5c\u3067\u304d\u308b\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u306f\u306a\u306b\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u64cd\u4f5c\u3067\u304d\u308b\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<table width=\"324\">\n<tbody>\n<tr>\n<th width=\"180\">\u6307\u5b9a\u5024<\/th>\n<th width=\"10\">\u5024<\/th>\n<th>\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e<\/th>\n<\/tr>\n<tr>\n<td>olFolderDeletedItems<\/td>\n<td>3<\/td>\n<td>\u524a\u9664\u6e08\u307f\u30a2\u30a4\u30c6\u30e0\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderOutbox<\/td>\n<td>4<\/td>\n<td>\u9001\u4fe1\u30c8\u30ec\u30a4\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderSentMail<\/td>\n<td>5<\/td>\n<td>\u9001\u4fe1\u6e08\u307f\u30e1\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderInbox<\/td>\n<td>6<\/td>\n<td>\u53d7\u4fe1\u30c8\u30ec\u30a4\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderCalendar<\/td>\n<td>9<\/td>\n<td>\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderContacts<\/td>\n<td>10<\/td>\n<td>\u9023\u7d61\u5148\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderJournal<\/td>\n<td>11<\/td>\n<td>Journal\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderNotes<\/td>\n<td>12<\/td>\n<td>Notes\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderTasks<\/td>\n<td>13<\/td>\n<td>\u30bf\u30b9\u30af\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderDrafts<\/td>\n<td>16<\/td>\n<td>\u4e0b\u66f8\u304d\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olPublicFoldersAllPublicFolders<\/td>\n<td>18<\/td>\n<td width=\"72\">Exchange\u30d1\u30d6\u30ea\u30c3\u30af\u30d5\u30a9\u30eb\u30c0\u30b9\u30c8\u30a2\u306e\u3059\u3079\u3066\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30d5\u30a9\u30eb\u30c0\u30d5\u30a9\u30eb\u30c0<br \/>\n\u203bExchange\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>olFolderConflicts<\/td>\n<td>19<\/td>\n<td>Conflicts\u30d5\u30a9\u30eb\u30c0\u30fc\uff08SyncIssues\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u30fc\uff09<br \/>\n\u203bExchange\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>olFolderSyncIssues<\/td>\n<td>20<\/td>\n<td>\u540c\u671f\u306e\u554f\u984c\u30d5\u30a9\u30eb\u30c0\u30fc<\/td>\n<\/tr>\n<tr>\n<td>olFolderLocalFailures<\/td>\n<td>21<\/td>\n<td>Local Failures\u30d5\u30a9\u30eb\u30c0\u30fc\uff08SyncIssues\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u30fc\uff09<br \/>\n\u203bExchange\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>olFolderServerFailures<\/td>\n<td>22<\/td>\n<td>\u30b5\u30fc\u30d0\u30fc\u969c\u5bb3\u30d5\u30a9\u30eb\u30c0\u30fc\uff08\u540c\u671f\u306e\u554f\u984c\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u30fc\uff09<br \/>\n\u203bExchange\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>olFolderJunk<\/td>\n<td>23<\/td>\n<td>\u8ff7\u60d1\u30e1\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderRssFeeds<\/td>\n<td>25<\/td>\n<td>RSS\u30d5\u30a3\u30fc\u30c9\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<tr>\n<td>olFolderToDo<\/td>\n<td>28<\/td>\n<td>ToDo\u30d5\u30a9\u30eb\u30c0\u30fc<\/td>\n<\/tr>\n<tr>\n<td>olFolderManagedEmail<\/td>\n<td>29<\/td>\n<td width=\"72\">\u7ba1\u7406\u30d5\u30a9\u30eb\u30c0\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u6700\u4e0a\u4f4d\u30d5\u30a9\u30eb\u30c0\u30fc<br \/>\n\u203bExchange\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<td>olFolderSuggestedContacts<\/td>\n<td>30<\/td>\n<td>\u63d0\u6848\u3055\u308c\u305f\u9023\u7d61\u5148\u30d5\u30a9\u30eb\u30c0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%AE%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%AF%EF%BC%9F\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\uff08VBA\uff09\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>Outlook\u306e\u958b\u767a\u30bf\u30d6\u3092\u6709\u52b9\u306b\u3057\u3001\u30de\u30af\u30ed\u3092\u5b9f\u88c5\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>VBA\u306e\u8a2d\u5b9a\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044\u65b9\u306f\u3053\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"impxet81yj\"><p><a href=\"https:\/\/extan.jp\/?p=421\">Outlook VBA\u3092\u306f\u3058\u3081\u3088\u3046\uff01\u521d\u5fc3\u8005\u5411\u3051\u624b\u5f15\u304d<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Outlook VBA\u3092\u306f\u3058\u3081\u3088\u3046\uff01\u521d\u5fc3\u8005\u5411\u3051\u624b\u5f15\u304d&#8221; &#8212; \u30a8\u30af\u77ed\uff5cExtan.jp\" src=\"https:\/\/extan.jp\/?p=421&#038;embed=true#?secret=RNC37sfXC1#?secret=impxet81yj\" data-secret=\"impxet81yj\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E5%8F%97%E4%BF%A1%E3%83%88%E3%83%AC%E3%82%A4%E4%B8%80%E8%A6%A7%E3%82%92%E5%8F%96%E5%BE%97\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u4e00\u89a7\u3092\u53d6\u5f97<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30ebVBA\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u306f2020\u5e7410\u67081\u65e5\u304b\u30892\u65e5\u307e\u3067\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<strong> strStart = Format(&#8220;2020\/10\/1&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u958b\u59cb\u65e5\u3092\u6307\u5b9a<br \/>\nstrEnd = Format(&#8220;2020\/10\/2&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a<\/strong><\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u6307\u5b9a\u65e5\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u30e1\u30fc\u30eb\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97()\n \n    &#039;Outlook\u7528\u306e\u5b9a\u7fa9\n    Dim olApp As Outlook.Application\n    Dim olNamespace As Outlook.NameSpace\n    Dim olFolder As Folder\n    Dim olConItems\n    Dim olItem\n    Dim strStart As String\n    Dim strEnd As String\n    \n    &#039;Outlook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a\u3057\u3001MAPI\u540d\u524d\u7a7a\u9593\u3092\u4ecb\u3057\u3066Outlook\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    Set olApp = New Outlook.Application\n    Set olNamespace = olApp.GetNamespace(&quot;MAPI&quot;)\n    Set olFolder = olNamespace.GetDefaultFolder(olFolderInbox)\n    Set olConItems = olFolder.Items\n \n    strStart = Format(&quot;2020\/10\/1&quot;, &quot;yyyy\/mm\/dd&quot;) &#039;\u958b\u59cb\u65e5\u3092\u6307\u5b9a\n    strEnd = Format(&quot;2020\/10\/2&quot;, &quot;yyyy\/mm\/dd&quot;)  &#039;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a\n    strEnd = DateAdd(&quot;d&quot;, 1, strEnd)   &#039; 1\u65e5\u8ffd\u52a0\n    \n    &#039;Restrict\u30e1\u30bd\u30c3\u30c9\u3067\u671f\u9593\u6307\u5b9a\u3057\u3066\u62bd\u51fa\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30a4\u30c6\u30e0\u3092\u7d5e\u308a\u8fbc\u3080\n    Set olConItems = olConItems.Restrict(&quot;[ReceivedTime] &gt;= &#039;&quot; &amp; strStart &amp; &quot;&#039; And [ReceivedTime] &lt; &#039;&quot; &amp; strEnd &amp; &quot;&#039;&quot;)\n \n    For Each olItem In olConItems\n        With olItem\n            Debug.Print &quot;\u53d7\u4fe1\u65e5\uff1a&quot; &amp; .ReceivedTime\n            Debug.Print &quot;\u30bf\u30a4\u30c8\u30eb\uff1a&quot; &amp; .Subject\n        End With\n    Next\n \n    &#039;\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30af\u30ea\u30a2\n    Set olItem = Nothing\n    Set olConItems = Nothing\n    Set olFolder = Nothing\n    Set olNamespace = Nothing\n    Set olApp = Nothing\n\nEnd Sub<\/code><\/pre>\n<p>\u306f\u3044\u3001\u53d7\u4fe1\u30c8\u30ec\u30a4\u306e\u30e1\u30fc\u30eb\u30a2\u30a4\u30c6\u30e0\u304c\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u306d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2633\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/102720_2011_1.png\" alt=\"\" width=\"344\" height=\"169\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E4%BA%88%E5%AE%9A%E4%B8%80%E8%A6%A7%E3%82%92%E5%8F%96%E5%BE%97\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u4e88\u5b9a\u4e00\u89a7\u3092\u53d6\u5f97<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u4e88\u5b9a\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30ebVBA\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u306f2020\u5e7410\u67081\u65e5\u304b\u30892\u65e5\u307e\u3067\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<strong> strStart = Format(&#8220;2020\/10\/1&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u958b\u59cb\u65e5\u3092\u6307\u5b9a<br \/>\nstrEnd = Format(&#8220;2020\/10\/2&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a<\/strong><\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u6307\u5b9a\u65e5\u306e\u4f1a\u8b70\u8868\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97()\n \n    &#039;Outlook\u7528\u306e\u5b9a\u7fa9\n    Dim olApp As Outlook.Application\n    Dim olNamespace As Outlook.NameSpace\n    Dim olFolder As Folder\n    Dim olConItems As Outlook.Items\n    Dim olItem  As AppointmentItem\n    Dim strStart As String\n    Dim strEnd As String\n    \n    &#039;Outlook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a\u3057\u3001MAPI\u540d\u524d\u7a7a\u9593\u3092\u4ecb\u3057\u3066Outlook\u306e\u4e88\u5b9a\u8868\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    Set olApp = New Outlook.Application\n    Set olNamespace = olApp.GetNamespace(&quot;MAPI&quot;)\n    Set olFolder = olNamespace.GetDefaultFolder(olFolderCalendar)\n    Set olConItems = olFolder.Items\n \n    strStart = Format(&quot;2020\/10\/1&quot;, &quot;yyyy\/mm\/dd&quot;) &#039;\u958b\u59cb\u65e5\u3092\u6307\u5b9a\n    strEnd = Format(&quot;2020\/10\/2&quot;, &quot;yyyy\/mm\/dd&quot;)  &#039;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a\n    strEnd = DateAdd(&quot;d&quot;, 1, strEnd)   &#039; 1\u65e5\u8ffd\u52a0\n    \n    &#039;Find\u30e1\u30bd\u30c3\u30c9\u3067\u671f\u9593\u6307\u5b9a\u3057\u3066\u62bd\u51fa\u3059\u308b\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3092\u7d5e\u308a\u8fbc\u3080\n    Set olItem = olConItems.Find(&quot;[End] &lt; &quot;&quot;&quot; &amp; strEnd &amp; &quot;&quot;&quot; AND [Start] &gt;= &quot;&quot;&quot; &amp; strStart &amp; &quot;&quot;&quot;&quot;)\n    \n    While TypeName(olItem) = &quot;AppointmentItem&quot;\n        &#039;Find\u3067\u691c\u7d22\u3059\u308b\u3068\u671f\u9593\u7bc4\u56f2\u5916\u306e\u4f59\u8a08\u306a\u3082\u306e\u307e\u3067\u30d2\u30c3\u30c8\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u518d\u5ea6\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002\n        If olItem.Start &gt;= strStart And olItem.End &lt; strEnd Then\n            With olItem\n                Debug.Print &quot;\u30bf\u30a4\u30c8\u30eb\uff1a&quot; &amp; .Subject\n                Debug.Print &quot;\u5834\u6240\uff1a&quot; &amp; .Location\n                Debug.Print &quot;\u958b\u59cb\u65e5\u6642\uff1a&quot; &amp; .Start\n                Debug.Print &quot;\u7d42\u4e86\u65e5\u6642\uff1a&quot;; .End\n            End With\n            lnContactCount = lnContactCount + 1\n        End If\n        Set olItem = olConItems.FindNext\n    Wend\n \n    &#039;\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30af\u30ea\u30a2\n    Set olItem = Nothing\n    Set olConItems = Nothing\n    Set olFolder = Nothing\n    Set olNamespace = Nothing\n    Set olApp = Nothing\n \n    \nEnd Sub<\/code><\/pre>\n<p>\u306f\u3044\u3001\u6307\u5b9a\u671f\u9593\u306e\u4e88\u5b9a\u8868\u304c\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u306d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2634\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/102720_2011_2.png\" alt=\"\" width=\"344\" height=\"169\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E3%82%BF%E3%82%B9%E3%82%AF%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%82%92%E5%8F%96%E5%BE%97\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30bf\u30b9\u30af\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30bf\u30b9\u30af\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30ebVBA\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u306f2020\u5e7410\u67081\u65e5\u304b\u30892\u65e5\u307e\u3067\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<strong> strStart = Format(&#8220;2020\/10\/1&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u958b\u59cb\u65e5\u3092\u6307\u5b9a<br \/>\nstrEnd = Format(&#8220;2020\/10\/2&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a<\/strong><\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u6307\u5b9a\u65e5\u306e\u30bf\u30b9\u30af\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97()\n \n    &#039;Outlook\u7528\u306e\u5b9a\u7fa9\n    Dim olApp As Outlook.Application\n    Dim olNamespace As Outlook.NameSpace\n    Dim olFolder As Folder\n    Dim olConItems\n    Dim olItem\n    Dim strStart As String\n    Dim strEnd As String\n    \n    &#039;Outlook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a\u3057\u3001MAPI\u540d\u524d\u7a7a\u9593\u3092\u4ecb\u3057\u3066Outlook\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    Set olApp = New Outlook.Application\n    Set olNamespace = olApp.GetNamespace(&quot;MAPI&quot;)\n    Set olFolder = olNamespace.GetDefaultFolder(olFolderTasks)\n    Set olConItems = olFolder.Items\n \n    strStart = Format(&quot;2020\/10\/1&quot;, &quot;yyyy\/mm\/dd&quot;) &#039;\u958b\u59cb\u65e5\u3092\u6307\u5b9a\n    strEnd = Format(&quot;2020\/10\/2&quot;, &quot;yyyy\/mm\/dd&quot;)  &#039;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a\n    strEnd = DateAdd(&quot;d&quot;, 1, strEnd)   &#039; 1\u65e5\u8ffd\u52a0\n    \n    &#039;Restrict\u30e1\u30bd\u30c3\u30c9\u3067\u671f\u9593\u6307\u5b9a\u3057\u3066\u62bd\u51fa\u3059\u308b\u30bf\u30b9\u30af\u30a2\u30a4\u30c6\u30e0\u3092\u7d5e\u308a\u8fbc\u3080\n    Set olConItems = olConItems.Restrict(&quot;[DueDate] &gt;= &#039;&quot; &amp; strStart &amp; &quot;&#039; And [DueDate] &lt; &#039;&quot; &amp; strEnd &amp; &quot;&#039;&quot;)\n \n    For Each olItem In olConItems\n        With olItem\n            Debug.Print &quot;\u671f\u9650\uff1a&quot; &amp; .DueDate\n            Debug.Print &quot;\u30bf\u30a4\u30c8\u30eb\uff1a&quot; &amp; .Subject\n        End With\n    Next\n \n    &#039;\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30af\u30ea\u30a2\n    Set olItem = Nothing\n    Set olConItems = Nothing\n    Set olFolder = Nothing\n    Set olNamespace = Nothing\n    Set olApp = Nothing\n \n    \nEnd Sub<\/code><\/pre>\n<p>\u306f\u3044\uff01\u6307\u5b9a\u671f\u9593\u306e\u30bf\u30b9\u30af\u304c\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u306d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2635\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/102720_2011_3.png\" alt=\"\" width=\"344\" height=\"169\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E6%9C%9F%E9%96%93%E3%81%AE%E3%83%A1%E3%83%A2%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%82%92%E5%8F%96%E5%BE%97\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30e1\u30e2\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u671f\u9593\u306e\u30e1\u30e2\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97\u3059\u308b\u30b5\u30f3\u30d7\u30ebVBA\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u306f2020\u5e7410\u67081\u65e5\u304b\u30892021\u5e7410\u670831\u65e5\u307e\u3067\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u671f\u9593\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<strong> strStart = Format(&#8220;2020\/10\/1&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u958b\u59cb\u65e5\u3092\u6307\u5b9a<br \/>\nstrEnd = Format(&#8220;2021\/10\/31&#8221;, &#8220;yyyy\/mm\/dd&#8221;) &#8216;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a<\/strong><\/p>\n<pre style=\"padding: 0;\"><code class=\"language-visual-basic line-numbers\">Sub \u6307\u5b9a\u65e5\u306e\u30e1\u30e2\u30a2\u30a4\u30c6\u30e0\u3092\u53d6\u5f97()\n \n    &#039;Outlook\u7528\u306e\u5b9a\u7fa9\n    Dim olApp As Outlook.Application\n    Dim olNamespace As Outlook.NameSpace\n    Dim olFolder As Folder\n    Dim olConItems\n    Dim olItem\n    Dim strStart As String\n    Dim strEnd As String\n    \n    &#039;Outlook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a\u3057\u3001MAPI\u540d\u524d\u7a7a\u9593\u3092\u4ecb\u3057\u3066Outlook\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    Set olApp = New Outlook.Application\n    Set olNamespace = olApp.GetNamespace(&quot;MAPI&quot;)\n    Set olFolder = olNamespace.GetDefaultFolder(olFolderNotes)\n    Set olConItems = olFolder.Items\n \n    strStart = Format(&quot;2020\/10\/1&quot;, &quot;yyyy\/mm\/dd&quot;) &#039;\u958b\u59cb\u65e5\u3092\u6307\u5b9a\n    strEnd = Format(&quot;2021\/10\/31&quot;, &quot;yyyy\/mm\/dd&quot;)  &#039;\u7d42\u4e86\u65e5\u3092\u6307\u5b9a\n    strEnd = DateAdd(&quot;d&quot;, 1, strEnd)   &#039; 1\u65e5\u8ffd\u52a0\n    \n    &#039;Restrict\u30e1\u30bd\u30c3\u30c9\u3067\u671f\u9593\u6307\u5b9a\u3057\u3066\u62bd\u51fa\u3059\u308b\u30e1\u30e2\u30a2\u30a4\u30c6\u30e0\u3092\u7d5e\u308a\u8fbc\u3080\n    Set olConItems = olConItems.Restrict(&quot;[CreationTime] &gt;= &#039;&quot; &amp; strStart &amp; &quot;&#039; And [CreationTime] &lt; &#039;&quot; &amp; strEnd &amp; &quot;&#039;&quot;)\n\n \n    For Each olItem In olConItems\n        With olItem\n            Debug.Print &quot;\u4f5c\u6210\u65e5\uff1a&quot; &amp; .CreationTime\n            Debug.Print &quot;\u30bf\u30a4\u30c8\u30eb\uff1a&quot; &amp; .Subject\n            Debug.Print &quot;\u30e1\u30e2\u672c\u6587\uff1a&quot; &amp; .Body\n        End With\n    Next\n \n    &#039;\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30af\u30ea\u30a2\n    Set olItem = Nothing\n    Set olConItems = Nothing\n    Set olFolder = Nothing\n    Set olNamespace = Nothing\n    Set olApp = Nothing\n \n    \nEnd Sub<\/code><\/pre>\n<p>\u306f\u3044\uff01\u6307\u5b9a\u671f\u9593\u306e\u30e1\u30e2\u304c\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u306d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5824\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2021\/10\/102121_0131_1.png\" alt=\"\" width=\"277\" height=\"131\" \/><\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">Outlook\u306e\u30e1\u30e2\u3092Excel\u3078\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"koirb10Glb\"><p><a href=\"https:\/\/extan.jp\/?p=2620\">\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01&#8221; &#8212; \u30a8\u30af\u77ed\uff5cExtan.jp\" src=\"https:\/\/extan.jp\/?p=2620&#038;embed=true#?secret=GAMBEICehV#?secret=koirb10Glb\" data-secret=\"koirb10Glb\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3><span class=\"ez-toc-section\" id=\"GetDefaultFolder%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%82%92%E8%AA%BF%E3%81%B9%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u3067\u304d\u306a\u3044\u30d5\u30a9\u30eb\u30c0\u3092\u8abf\u3079\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GetDefaultFolder\u3067\u306f\u5b9a\u6570\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u898f\u5b9a\u30e6\u30fc\u30b6\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u5bfe\u8c61\u3068\u306a\u308a\u3001\u305d\u308c\u4ee5\u5916\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u3064\u3044\u3066\u306f\u5bfe\u8c61\u5916\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">\u4f8b\u3048\u3070\u3084\u500b\u4eba\u3067\u30eb\u30fc\u30c8\u306b\u4f5c\u6210\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u3084\u5171\u6709\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u30d5\u30a9\u30eb\u30c0\u306fGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<p>\u305f\u3060\u3001\u898f\u5b9a\u5916\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u53d6\u5f97\u5bfe\u8c61\u306b\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u308c\u306b\u306f\u307e\u305a\u30ed\u30fc\u30ab\u30eb\u306eOutlook\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Outlook\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u306f\u30e6\u30fc\u30b6\u3054\u3068\u306b\u30d5\u30a9\u30eb\u30c0\u304c\u533a\u5207\u3089\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u53d6\u5f97\u3057\u305f\u3044\u30e6\u30fc\u30b6\u306e\u30d5\u30a9\u30eb\u30c0\u756a\u53f7\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u3092Outlook\u307e\u305f\u306fExcel\u5074\u306eVBA\u306b\u5b9f\u88c5\u3057\u3001\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/extan.jp\/?p=6621#%E3%80%90%E8%A3%8F%E6%8A%80%E3%80%91%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%A7%E3%82%82%E5%85%B1%E6%9C%89%E3%81%AE%E9%80%A3%E7%B5%A1%E5%85%88%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\">\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30eb\u30c0\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u78ba\u8a8d\u3059\u308b\uff08Outlook\u30d5\u30a9\u30eb\u30c0\u30c1\u30a7\u30c3\u30ab\u30fc\uff09<\/a><\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u3067\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"info\">**\u756a\u76ee\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30eb\u30c0\uff1a****@extan.jp<br \/>\n1\u5c64\u76ee\uff1a\u524a\u9664\u6e08\u307f\u30a2\u30a4\u30c6\u30e0<br \/>\n1\u5c64\u76ee\uff1a\u53d7\u4fe1\u30c8\u30ec\u30a4<br \/>\n1\u5c64\u76ee\uff1a\u9001\u4fe1\u30c8\u30ec\u30a4<br \/>\n1\u5c64\u76ee\uff1a\u9001\u4fe1\u6e08\u307f\u30a2\u30a4\u30c6\u30e0<br \/>\n1\u5c64\u76ee\uff1a\u30af\u30a4\u30c3\u30af\u64cd\u4f5c\u8a2d\u5b9a<br \/>\n1\u5c64\u76ee\uff1a\u9023\u7d61\u5148<br \/>\n2\u5c64\u76ee\uff1a\u8ffd\u52a0\u9023\u7d61\u5148\u30d5\u30a9\u30eb\u30c0<br \/>\n\u30fb\u30fb\u30fb\u30fb<\/div>\n<p>\u300c**\u756a\u76ee\u300d\u304c\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30eb\u30c0\u306e\u4f4d\u7f6e\u756a\u53f7\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u53d6\u5f97\u3057\u305f\u3044\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u756a\u53f7\u3092\u30e1\u30e2\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u756a\u53f7\u300c**\u300d\u3068<span class=\"token string\">\uff1c\u30d5\u30a9\u30eb\u30c0\u540d\uff1e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/extan.jp\/?p=6621#%E3%80%90%E8%A3%8F%E6%8A%80%E6%94%B9%E8%89%AF%E7%89%88%E3%80%91%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%A7%E3%82%82%E5%85%B1%E6%9C%89%E3%81%AE%E9%80%A3%E7%B5%A1%E5%85%88%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95Ver2\">\u3010\u88cf\u6280\u6539\u826f\u7248\u3011\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u30fc\u3067\u3082\u5171\u6709\u306e\u9023\u7d61\u5148\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5Ver2<\/a><\/span><\/p>\n<div class=\"info\"><code>&lt;span class=&quot;token keyword&quot;&gt;Set&lt;\/span&gt; olFolder &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; olNamespace&lt;span class=&quot;token punctuation&quot;&gt;.&lt;\/span&gt;Folders&lt;span class=&quot;token punctuation&quot;&gt;(&lt;\/span&gt;**&lt;span class=&quot;token punctuation&quot;&gt;)&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;\/span&gt;Folders&lt;span class=&quot;token punctuation&quot;&gt;(&lt;\/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;\uff1c\u30d5\u30a9\u30eb\u30c0\u540d\uff1e&quot;&lt;\/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;\/span&gt;<\/code><\/div>\n<p><span class=\"token punctuation\"><\/p>\n<p>\u968e\u5c64\u304c\u3055\u3089\u306b\u3042\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306bFolders\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><\/span><\/p>\n<div class=\"info\"><code>&lt;span class=&quot;token keyword&quot;&gt;Set&lt;\/span&gt; olFolder &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; olNamespace.Folders(**).Folders(&lt;span class=&quot;token string&quot;&gt;&quot;\uff1c1\u968e\u5c64\u76ee\u30d5\u30a9\u30eb\u30c0\u540d\uff1e&quot;&lt;\/span&gt;).Folders(&lt;span class=&quot;token string&quot;&gt;&quot;\uff1c2\u968e\u5c64\u76ee\u30d5\u30a9\u30eb\u30c0\u540d\uff1e&quot;&lt;\/span&gt;)<\/code><\/div>\n<p><span class=\"token punctuation\"><\/p>\n<p><\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<div class=\"endinfo\">\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066<br \/>\n\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066<br \/>\n\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570<br \/>\n\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>GetNamespace\u30e1\u30bd\u30c3\u30c9\u3068GetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306f\u3088\u304f\u4f7f\u3044\u307e\u3059\u306e\u3067\u3001<br \/>\n\u3057\u3063\u304b\u308a\u69cb\u6587\u3068\u5f15\u6570\u3092\u899a\u3048\u3066\u304a\u304d\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Outlook\u3067\u53d7\u4fe1\u30e1\u30fc\u30eb\u3084\u4e88\u5b9a\u8868\u3001\u30bf\u30b9\u30af\u306a\u3069\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u3067\u4f55\u304b\u3068\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044 GetNamespace\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u304c\u3001 \u30fb\u4f7f\u3044\u65b9\u304c\u3044\u307e\u3044\u3061\u308f\u304b\u3089\u306a\u3044\u2026 \u30fb\u5f15\u6570\u306f\u4f55\u3092\u6307\u5b9a\u3057\u3066\u3044\u3044\u304b\u308f\u304b\u3089\u306a\u3044\u2026 \u30fb\u5b9f\u884c\u3057\u305f\u304c\u30a8\u30e9\u30fc\u3068\u306a\u3063&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2625,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[43],"class_list":{"0":"post-2620","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-exceloutlook","8":"tag-43","9":"article cf"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"description\" content=\"\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=2620\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=2620\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-20T11:17:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-06T12:43:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/err-5-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"765\" \/>\n\t<meta property=\"og:image:height\" content=\"496\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"24\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/extan.jp\/#website\",\"url\":\"https:\/\/extan.jp\/\",\"name\":\"\u30a8\u30af\u77ed\uff5cExtan.jp\",\"description\":\"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/extan.jp\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/?p=2620#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/err-5-1.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/err-5-1.png\",\"width\":765,\"height\":496},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=2620#webpage\",\"url\":\"https:\/\/extan.jp\/?p=2620\",\"name\":\"\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=2620#primaryimage\"},\"datePublished\":\"2021-10-20T11:17:25+00:00\",\"dateModified\":\"2022-10-06T12:43:52+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"description\":\"\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=2620#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=2620\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=2620#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\",\"name\":\"\u30bf\u30ab\u30d2\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/#personlogo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"caption\":\"\u30bf\u30ab\u30d2\u30ed@extan\"},\"url\":\"https:\/\/extan.jp\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"description":"\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/extan.jp\/?p=2620","og_locale":"ja_JP","og_type":"article","og_title":"\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","og_url":"https:\/\/extan.jp\/?p=2620","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2021-10-20T11:17:25+00:00","article_modified_time":"2022-10-06T12:43:52+00:00","og_image":[{"width":765,"height":496,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/err-5-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30bf\u30ab\u30d2\u30ed@extan","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"24\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/extan.jp\/#website","url":"https:\/\/extan.jp\/","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/extan.jp\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=2620#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/err-5-1.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2020\/10\/err-5-1.png","width":765,"height":496},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=2620#webpage","url":"https:\/\/extan.jp\/?p=2620","name":"\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=2620#primaryimage"},"datePublished":"2021-10-20T11:17:25+00:00","dateModified":"2022-10-06T12:43:52+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"description":"\u30fbGetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u69cb\u6587\u306b\u3064\u3044\u3066\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u30fbGetDefaultFolder\u30e1\u30bd\u30c3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/extan.jp\/?p=2620#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=2620"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=2620#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"\u3010OutlookVBA\u3011GetNamespace\u30e1\u30bd\u30c3\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u7a2e\u985e\u3068\u5f15\u6570\u306f\u306a\u306b\uff1f\u30b5\u30f3\u30d7\u30ebVBA\u3067\u89e3\u8aac\uff01"}]},{"@type":"Person","@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/#personlogo","inLanguage":"ja","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","caption":"\u30bf\u30ab\u30d2\u30ed@extan"},"url":"https:\/\/extan.jp\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2620"}],"version-history":[{"count":20,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2620\/revisions"}],"predecessor-version":[{"id":9866,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/2620\/revisions\/9866"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/2625"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}