跳到主要內容

如何在Outlook中批量刪除多個文件夾/子文件夾?

如您所知,您可以在Outlook中一次在“導航”窗格上選擇和刪除一個文件夾,並且似乎無法批量選擇多個文件夾。 但是,從導航窗格中一個接一個地刪除多個文件夾將太繁瑣。 本文將介紹一種解決方案,可以從Outlook快速批量刪除多個文件夾。


使用VBA刪除指定文件夾的所有子文件夾 在Outlook中

此方法將引入VBA來批量刪除Outlook中某個文件夾的所有子文件夾。 請執行以下操作:

1。 在郵件視圖中,選擇要刪除其所有子文件夾的指定文件夾。

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

3。 單擊插入>模塊,然後將以下VBA代碼粘貼到新的模塊窗口中。

Sub Delete_All_SubFolders()
Dim oCurrFolder As Folder
Dim oSubFolders As Folders
Dim i As Long

On Error Resume Next

Set oCurrFolder = Outlook.Application.ActiveExplorer.CurrentFolder
Set oSubFolders = oCurrFolder.Folders

For i = oSubFolders.Count To 1 Step -1
oSubFolders.item(i).Delete
Next
End Sub

4。 按 F5 運行此VBA的關鍵。 現在,您將看到盡快將所選文件夾下的所有子文件夾全部刪除。 看截圖:

在Outlook中快速搜索和刪除重複的電子郵件

使用Kutools for Outlook的 電子郵件重複 功能,您可以在多個郵件文件夾中快速找到並刪除它們,或者在Outlook中單擊兩次即可從所選郵件文件夾中找到並刪除所有重複項。


在Outlook中批量刪除多個文件夾

請按照以下步驟從Microsoft Outlook中批量刪除多個文件夾。

1。 右鍵單擊要批量刪除其文件夾的電子郵件帳戶,然後選擇 新建文件夾 從上下文菜單中,然後將新文件夾命名為 溫度。 請參見下面的屏幕截圖:

2。 現在將要刪除的文件夾之一拖到新文件夾中 溫度 文件夾,將其放到新 溫度 文件夾突出顯示。 看截圖:

3。 現在,將彈出一個Microsoft Outlook對話框,詢問您有關移動所選文件夾的確認。 請點擊按鈕。 參見上面的截圖。

4。 重複上述步驟2-3,直到將要刪除的所有文件夾都移至新文件夾 溫度 文件夾中。

5。 右鍵單擊新 溫度 文件夾,然後選擇 刪除文件夾 從上下文菜單中。 請參見下面的屏幕截圖:

6。 在警告Microsoft Outlook對話框中,請單擊 按鈕。 參見上面的截圖。

到目前為止,您需要刪除的所有文件夾已被批量刪除。


相關文章


最佳辦公生產力工具

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

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

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

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

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

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

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

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

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

了解更多       免費下載      購買
 

 

Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
One thing I didn't add from above is that my active Inbox (the one that actually harvests the new mail messages )now in Outlook is the Inbox that is in my set of GMail folders. Yes, I now have 2 Inboxes, along with the other duplicates. If I were to delete that whole set of folders that includes my GMail inbox, I wouldn't see any new emails coming into Outlook. Therefore, I'm leaving things as they are, at least for now.
This comment was minimized by the moderator on the site
yes, that's correct. I'm seeing a duplicate set of folders now(below the original set) in Outlook that are my GMail folders. They weren't there before I installed this new Office version. I was using Outlook 2016 desktop client ver. previously. Now, for instance, if I delete an email in Outlook, I see a small "synchronizing trash" window at the bottom of Outlook where it indicates that it's duplicating that deletion in GMail. I didn't have this before. As stated above, I can live with it, but it's just a bit different now.
This comment was minimized by the moderator on the site
I recently downloaded the new Office Pro 2021 for Windows which includes Outlook. I was using the 2016 version until now. The new installation went fine, but now I seem to have all of my Gmail folders appearing in Outlook also; they're below the original folders that I had before the conversion to the new Office. Any new emails that I get now come into the "Gmail" inbox instead of my original Inbox, which is still there. If I delete the Gmail folder and its subfolders I don't think my new emails will appear. I thought it might have been because IMAP was enabled in my Gmail settings. I disabled IMAP (to use only POP3), but the new emails still come into that Gmail inbox. Is there a way to fix this? If not, I can live with it....at least Outlook is harvesting the mail from my Gmail account. Thanks in advance.
This comment was minimized by the moderator on the site
Hi there, did you mean that you log in the same gmail account both in Outlook and Gmail?
Amanda
This comment was minimized by the moderator on the site
Thank you! This works!
This comment was minimized by the moderator on the site
This adds a step to an already arduous job. Is this a joke?
This comment was minimized by the moderator on the site
The VBA method to delete all subfolders works, thank you.
This comment was minimized by the moderator on the site
This is nonsense. I somehow have approx 300 trash subfolders, 300 note subfolders etc. Why can't I shift scroll to delete all?
This comment was minimized by the moderator on the site
This is a terrible solution! You still have to handle each folder individually! If you have hundreds of folders to delete, how is this any better than going one-by-one and deleting them? Using this "system", you have to go one-by-one and add them to a folder, then delete THAT folder. No better!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations