Skip to main content

How to archive without attachments in Outlook?

In general, Outlook’s Archive feature will save all email elements, including email content, email header, email attachments, etc. However, the attachments may make the archived PST file bulky. Here, I will introduce two solutions to archive without attachments in Outlook.

Office Tab - Enable Tabbed Editing and Browsing in Microsoft Office, Making Work a Breeze
Kutools for Outlook - Boost Outlook with 100+ Advanced Features for Superior Efficiency
Boost your Outlook 2021 - 2010 or Outlook 365 with these advanced features. Enjoy a comprehensive 60-day free trial and elevate your email experience!

Archive without attachments by VBA

This method will introduce a VBA to delete all attachments from the specified folder you will archive, and then you can archive without attachments. Please do as follows:

1. In the Mail view, select the folder you will archive, and press Alt + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and then paste below VBA into the new module window.

VBA: Remove all attachments from selected mail folder in Outlook

Public Sub SaveDeleteAttachments()
Dim xMailItem As Outlook.MailItem 'Object
Dim xAttachments As Outlook.Attachments
Dim i As Long
Dim xFolder As Folder
Dim xFilePath As String
Dim xFldPath As String
Dim xDeletedFilePath As String
On Error Resume Next
xFldPath = CreateObject("WScript.Shell").SpecialFolders(16)
xFldPath = xFldPath & "\MyAttachments"
If Dir(xFldPath, vbDirectory) = "" Then
MkDir xFldPath
End If
Set xFolder = Outlook.Application.ActiveExplorer.CurrentFolder
For Each xMailItem In xFolder.Items
If xMailItem.Class = olMail Then
Set xAttachments = xMailItem.Attachments
While xAttachments.Count > 0
xFilePath = xAttachments.Item(1).FileName
xFilePath = xFldPath & "\" & xFilePath
xAttachments.Item(1).SaveAsFile xFilePath
xAttachments.Item(1).Delete
If xMailItem.BodyFormat <> olFormatHTML Then
xDeletedFilePath = xDeletedFilePath & vbCrLf & "<file://" & xFilePath & ">"
Else
xDeletedFilePath = xDeletedFilePath & "
" & "" & xFilePath & "" End If Wend If xDeletedFilePath <> "" Then If xMailItem.BodyFormat <> olFormatHTML Then xMailItem.Body = "The file(s) were saved to: " & xDeletedFilePath & vbCrLf & xMailItem.Body Else xMailItem.HTMLBody = "

" & _ "The file(s) were saved to: " & xDeletedFilePath & "

" & xMailItem.HTMLBody End If xMailItem.Save xDeletedFilePath = "" End If End If Next Exit Sub: Set xAttachments = Nothing Set xMailItem = Nothing End Sub

3. Press the F5 key or click the Run button to run the code. Then all attachments are removed from the selected mail folder immediately.

4. Click File > Info > Tools > Clean Up Old Items (or File > Info > Cleanup Tools > Archive).

5. In the Archive dialog box, please click to highlight the copied folder, type TODAY in the Archive items older than box, and then click the Browse button. See screenshot:

6. In the Open Outlook Data Files dialog box, please open the folder you will save the archived PST file in, name the PST file in the File name box, and then click the OK button. See screenshot:

7. Now you return to the Archive dialog box, please click the OK button to finish the archiving.
So far, you have archived the mail folder without any attachments.


Archive without attachments by Kutools for Outlook

If you have Kutools for Outlook installed, you can apply its Detach All feature to quickly delete all attachments from the specified folder you will archive, and then archive without attachments easily.

Kutools for Outlook: Ultimate Outlook toolkit with over 100 handy tools. Try it FREE for 60 days, no limitations, no worries!   Read More...   Start Free Trial Now!

1. In the Mail view, open the specified mail folder you will archive, select all emails with pressing Ctrl + A keys, and then click Kutools > Detach All. See screenshot:

2. In the Please select a folder dialog box, click the Browse button  to specify the folder you will save the attachment in, specify a subfolder style from the create subfolders in the following style drop down list, and click the Ok button. See screenshot:

3. Please click Yes button and OK button successively in the popping out dialog boxes.

4. Go on to click File > Info > Tools > Clean Up Old Items (or File > Info > Cleanup Tools > Archive).

5. In the Archive dialog box, please click to highlight the specified folder you will archive without attachments, type TODAY in the Archive items older than box, and then click the Browse button. See screenshot:

6. In the Open Outlook Data Files dialog box, please open the folder you will save the archived PST file in, name the PST file in the File name box, and then click the OK button. See screenshot:

7. Now you return to the Archive dialog box, please click the OK button to finish the archiving.

So far, you have archived the specified mail folder without attachments already.

Kutools for Outlook: Supercharge Outlook with over 100 must-have tools. Test drive it for FREE for 60 days, no strings attached!   Read More...   Download Now!


Related Articles


Best Office Productivity Tools

Kutools for Outlook - Over 100 Powerful Features to Supercharge Your Outlook

πŸ€– AI Mail Assistant: Instant pro emails with AI magic--one-click to genius replies, perfect tone, multilingual mastery. Transform emailing effortlessly! ...

πŸ“§ Email Automation: Out of Office (Available for POP and IMAP)  /  Schedule Send Emails  /  Auto CC/BCC by Rules When Sending Email  /  Auto Forward (Advanced Rules)   /  Auto Add Greeting   /  Automatically Split Multi-Recipient Emails into Individual Messages ...

πŸ“¨ Email Management: Easily Recall Emails  /  Block Scam Emails by Subjects and Others  /  Delete Duplicate Emails  /  Advanced Search  /  Consolidate Folders ...

πŸ“ Attachments ProBatch Save  /  Batch Detach  /  Batch Compress  /  Auto Save   /  Auto Detach  /  Auto Compress ...

🌟 Interface Magic: 😊More Pretty and Cool Emojis   /  Boost Your Outlook Productivity with Tabbed Views  /  Minimize Outlook Instead of Closing ...

πŸ‘ One-click Wonders: Reply All with Incoming Attachments  /   Anti-Phishing Emails  /  πŸ•˜Show Sender's Time Zone ...

πŸ‘©πŸΌβ€πŸ€β€πŸ‘©πŸ» Contacts & Calendar: Batch Add Contacts From Selected Emails  /  Split a Contact Group to Individual Groups  /  Remove Birthday Reminders ...

Over 100 Features Await Your Exploration! Click Here to Discover More.

Read More       Free Download      Purchase
 

 

Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations