![](/img/trans.png)
[英]Create a new PST File (Not in Inbox) and move Outlook mail to that PST
[英]Getting Inbox mail item from multiple email ID configured in outlook
我正在使用Outlook添加,正在Outlook中根據要處理的收件箱項目選擇電子郵件ID配置了三個帳戶。 在2010年,我的代碼運行完美,但在Outlook 2007中卻出現了問題。
根據選擇,我收到了收件箱中的物品,但在2007年卻給了錯誤
Dim mailID As String = selectedmailID
inBoxItems = ns.Folders(mailID).Folders("Inbox").Items //error
inBoxItems = inBoxItems.Restrict("[Unread] = true")
我該如何解決這個問題? 開發系統包含Outlook 2010,但測試系統包含otlook 2007我也更改了參考,但是它不起作用。
Outlook中有設置嗎? 請幫我
確切的錯誤消息是什么? 為什么不使用ns.GetDefaultFolder(olFiolderInbox)?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.