跳到主要內容

如何統一多個帳戶的所有收件箱以在Outlook中一起顯示所有電子郵件?

Outlook支持同時運行的多個電子郵件帳戶。 默認情況下,每個電子郵件帳戶在Outlook中都有自己的收件箱。 因此,您在Outlook中創建的電子郵件帳戶越多,收件箱就會越多。 您必須來回切換到單獨的電子郵件收件箱以檢查電子郵件。 有沒有一種創建統一收件箱的好方法,該收件箱可以將多個帳戶的所有收件箱收集在一起? 本文將向您展示一種實現它的方法。

使用VBA代碼創建包含多個電子郵件帳戶的統一收件箱


使用VBA代碼創建包含多個電子郵件帳戶的統一收件箱

請按照以下步驟將多個帳戶的所有收件箱統一顯示在 Outlook 中所有收到的電子郵件。

1。 按 其他 + F11 鍵打開 Microsoft Visual Basic for Applications 窗口。

2。 在裡面 Microsoft Visual Basic for Applications 窗口中,將下面的VBA代碼複製到 本次展望會議 代碼窗口。

VBA代碼:創建包含多個電子郵件帳戶的統一收件箱:

Sub UnifiedInbox()
'Update by Extendoffice 20180504
Dim xExplorer As Outlook.Explorer
Dim xSearch As String
On Error Resume Next
xSearch = "folderpath:Inbox"
Set xExplorer = Outlook.Application.ActiveExplorer
xExplorer.Search xSearch, olSearchScopeAllFolders
Set xApp = Nothing
End Sub

3。 然後按下 其他 + Q 鍵儲存並關閉 Microsoft Visual Basic for Applications 窗口。

4。 點擊 自定義快速訪問工具欄 按鈕,然後單擊 更多命令 從下拉菜單中。 看截圖:

5。 在裡面 Outlook選項 對話框,您需要:

5.1選擇 來自 從中選擇命令 下拉列表;

5.2選擇 項目1.ThisOutlookSession.UnifiedInbox 從命令框中;

5.3點擊 加入 按鈕;

5.4繼續選擇 本次展望會議 在右邊 自定義快速訪問工具欄 框,然後單擊 修改 按鈕;

5.5為宏選擇一個修改按鈕,然後單擊 OK 按鈕;

5.6點擊 OK 按鈕在 Outlook選項 對話框。 看截圖:

6. 然後修改按鈕出現在 快速訪問工具欄。 點擊按鈕,則多個郵箱帳戶所有收件匣中的郵件都會被搜尋出來並統一在一起,如下圖所示:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (3)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This worked perfectly as a way to add capability to search for flagged items across multiple inboxes and .pst files, with a minor edit. Thank you so much for solving a major annoyance with how Outlook makes search folders.
This comment was minimized by the moderator on the site
Works fine for me on Outlook 365 Desktop Version for Windows 11 - thank you very much! I Only had to change the folder to "ordnerpfad:posteingang" due to the German version.
Do you have any ideas, how to add all junk folders to the macro, so that all emails from all Inboxes and Junk-folders are shown as result? If possible also with the German name for the folder - or maybe you know where to look it up?
Thank you very much in advance and best wishes from Germany!
This comment was minimized by the moderator on the site
This worked for me first time, but after an Office Update (the following day) it failed. I contacted Addin Technology via their 'contact us' link but was advised to post here, so here I am. In between times, I solved the issue. You need to enable macros at a suitable level. Go to File->Options-Trust Centre-Trust CentreSettings->Macro Settings and select the third option down, 'Notifications for all macros'. This is slightly more risky than the recommended level, but less so than the "Enable all" option. Clever solution, but I can't help feel that there's a way to achieve a unified inbox using Office options without a VBA macro.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations