跳到主要內容

如何計算Outlook中所有文件夾中的項目(電子郵件)總數?

在Outlook中,它將自動在“導航”窗格中的文件夾名稱旁邊顯示未讀項目/電子郵件的數量,如右圖所示。 但是現在,您需要計算項目/電子郵件的總數,而不是未讀項目/電子郵件的總數,怎麼辦? 以下變通辦法將輕鬆解決此問題!


計算一個文件夾中的項目/電子郵件總數

要計算Outlook中一個文件夾中的項目/電子郵件總數,您可以輕鬆地更改此文件夾的屬性以進行存檔。

1。 在導航窗格中,右鍵單擊要計算其項目總數的文件夾,然後選擇 氟化鈉性能 從右鍵單擊菜單中。 請參見下面的屏幕截圖:

2。 在打開的“屬性”對話框中,請檢查 顯示項目總數 選項,然後單擊 OK 按鈕。 參見上面的截圖:

現在,文件夾名稱旁邊的未讀項目數將替換為所有項目/電子郵件的總數。 看截圖:

筆記:
(1)在導航窗格中選擇文件夾之後,所有電子郵件的數量和未讀電子郵件的數量也會顯示在 狀態欄.
(2)此方法一次只能顯示一個文件夾的項目/電子郵件總數。 要顯示所有文件夾的項目總數,請嘗試以下VBA。

使用VBA計算所有文件夾中的項目/電子郵件總數

要計算所有文件夾中所有項目的總數,請在Outlook中的VBA代碼下方應用。

1。 按 其他 + F11 同時按下鍵以打開“ Microsoft Visual Basic for Applications”窗口。

2。 點擊 插入 > 模塊,然後將以下VBA代碼粘貼到新打開的“模塊”窗口中。

VBA:計算/顯示Outlook中所有文件夾中的項目/電子郵件總數

Sub ShowTotalInAllFolders()
Dim oStore As Outlook.Store
Dim oRoot As Outlook.Folder

On Error Resume Next

For Each oStore In Application.Session.Stores
Set oRoot = oStore.GetRootFolder
ShowTotalInFolders oRoot
Next
End Sub

Private Sub ShowTotalInFolders(ByVal Root As Outlook.Folder)
Dim oFolder As Outlook.Folder

On Error Resume Next

If Root.Folders.Count > 0 Then
For Each oFolder In Root.Folders
oFolder.ShowItemCount = olShowTotalItemCount
ShowTotalInFolders oFolder
Next
End If
End Sub

3。 按 F5 鍵或單擊 按鈕以運行此VBA。
現在,每個文件夾中的項目/電子郵件總數顯示在文件夾名稱旁邊。 看截圖:


使用Kutools for Outlook計算每個文件夾中的項目/電子郵件總數

如果您安裝了Kutools for Outlook,則可以快速計算每個文件夾中所有項目/電子郵件的總數及其 所有文件夾顯示項目總數 特徵。 請執行以下操作:

Kutools for Outlook:終極 Outlook 工具包,包含 100 多個方便的工具。 免費試用 60 天,無任何限制,不用擔心!   閱讀更多...   立即開始免費試用!

點擊 Kutools 加 > 顯示項目數 > 所有文件夾顯示項目總數.
所有文件夾中的文檔計數項目電子郵件001

現在,導航窗格上每個文件夾後面的未讀項目數立即更改為所有項目的總數。 看截圖:所有文件夾中的文檔計數項目電子郵件4

Kutools for Outlook:透過 100 多種必備工具增強 Outlook 功能。 60 天免費試駕,無任何附加條件!   閱讀更多...   現在就下載!


計算所有/多個文件夾中所有項目/電子郵件的總數

以上所有方法都在討論計算每個文件夾中所有電子郵件的總數。 您是否曾經想過要對每個文件夾中的項目數求和並返回總數? 此方法將介紹Kutools for Outlook的 統計 此功能可以計算所有文件夾中所有/多個項目的總數。

Kutools for Outlook:終極 Outlook 工具包,包含 100 多個方便的工具。 免費試用 60 天,無任何限制,不用擔心!   閱讀更多...   立即開始免費試用!

1。 點擊 Kutools 加 > 統計。 看截圖:
所有文件夾中的文檔計數項目電子郵件002

2。 點擊 OK 直接在第一個“統計”對話框中單擊按鈕。
備註:默認情況下,所有電子郵件帳戶中的所有文件夾均處於選中狀態。 要計算多個文件夾中的總數,請僅檢查它們,然後單擊 OK 按鈕。

現在,出現第二個“統計”對話框,您將獲得在Outlook中配置的所有電子郵件帳戶的所有文件夾中的所有項目/電子郵件的總數。 看截圖:

Kutools for Outlook:透過 100 多種必備工具增強 Outlook 功能。 60 天免費試駕,無任何附加條件!   閱讀更多...   現在就下載!


演示:計算Outlook中每個/多個/所有文件夾中的項目(電子郵件)總數


尖端: 在這個視頻裡, 庫工具 選項卡添加者 Kutools for Outlook。 如果需要,請單擊 這裡 免費試用60天!


相關文章


最佳辦公生產力工具

Kutools for Outlook - 超過 100 種強大的功能可增強您的 Outlook

🤖 人工智慧郵件助手: 具備人工智慧魔力的即時專業電子郵件——一鍵天才回覆、完美語調、多語言掌握。輕鬆改變電子郵件! ……

📧 電子郵件自動化: 外出(適用於 POP 和 IMAP)  /  安排發送電子郵件  /  發送電子郵件時按規則自動抄送/密件副本  /  自動轉送(進階規則)   /  自動添加問候語   /  自動將多收件者電子郵件拆分為單獨的訊息 ...

📨 電子郵件管理: 輕鬆回憶電子郵件  /  按主題和其他人阻止詐騙電子郵件  /  刪除重複的電子郵件  /  進階搜索  /  合併資料夾 ...

📁 附件專業版批量保存  /  批量分離  /  批量壓縮  /  自動保存   /  自動分離  /  自動壓縮 ...

🌟 介面魔法: 😊更多又漂亮又酷的表情符號   /  使用選項卡式視圖提高 Outlook 工作效率  /  最小化 Outlook 而不是關閉 ...

👍 一鍵奇蹟: 使用傳入附件回覆全部  /   反網路釣魚電子郵件  /  🕘顯示寄件者的時區 ...

👩🏼‍🤝‍👩🏻 通訊錄和行事曆: 從選定的電子郵件中大量新增聯絡人  /  將聯絡人群組拆分為各組  /  刪除生日提醒 ...

超過 100特點 等待您的探索! 按此處了解更多。

閱讀更多       免費下載      購買
 

 

Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hoping you guys can help me out. I used the VBA method above but now would like to remove it. I deleted the module in outlook and in C:\Users\user\AppData\Roaming\Microsoft\Outlook but the totals are still appearing next to the folder names.
This comment was minimized by the moderator on the site
Hi Michael,
Start Outlook, right click the folder you want to turn off the total number of items on the Navigation Pane, select Properties in the context menu, and then check Show number of unread items on the General tab in the Properties dialog. See screenshot:
Note that you can turn off the total number of items for one folder at a time. If you want to turn off total numbers of items for all folders in your Outlook, Kutools for Outlook’s All Folders Show Number of Unread Items feature is recommended. https://www.extendoffice.com/documents/outlook/3728-outlook-count-items-emails-in-all-folders.html#kto
This comment was minimized by the moderator on the site
I searched quite a bit before discovering this. The VBA worked quite well and did exactly what I wanted.

Unforseen issue, the effect seems permanent. Took a while to figure how to resolve/undo. Change this one line from...

oFolder.ShowItemCount = olShowTotalItemCount to...

oFolder.ShowItemCount = olShowUnreadItemCount

...and there's another constant that can be used, olShowNoItemCount, if no counts should be displayed.

The first two are available through the UI but, so far as I could tell, have to be applied on a folder by folder basis so the VBA is a real time saver!
This comment was minimized by the moderator on the site
Hi Alan,
Thank you very much for your comment and suggestion on the VBA. Actually, Kutools for Outlook has released the Show Number of Items feature to quickly show or hide the total number of items or the number of unread items in each folder by one click.
This comment was minimized by the moderator on the site
I Googled this question several ways, all included Outlook or Office 365, but of the 100's of links, NONE showed how to do this in Outlook online. All show how in Outlook desktop.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations