It is always suggested to remove large email attachments from Outlook, which can keep your Outlook file in small size and prevent the file from corruption. This article, we will introduce you 2 quick means.
As we all know, Outlook file is susceptible to corruption. One of the main culprits is the oversized Outlook file. Therefore, in order to block your Outlook data from being damaged, you should always keep tabs on your file size and keep it in small size. One of the common methods is to delete the large attachments from Outlook emails. Here are 2 tips to delete the email attachments whose sizes are greater than a specific size.
Tip 1: Remove Large Email Attachments Manually
- For a start, right click on the “Search Folders” and choose “New Search Folder” in the Mail navigation pane.
- Then select “Create a custom Search Folder” > “Choose”. In the popup dialog box of “Custom Search Folder”, specify a name for the search folder and then hit “Criteria” button.
- Next in the “Search Folder Criteria” dialog box, you ought to switch to “More Choices” tab. And then specify the following 2 criteria.
- Firstly, tick “Only items with” option and set “one or more attachments”.
- Secondly, select “greater than” in the “Size (kilobytes)” section. And then input a specific size in the following box.
- After that, click a series of “OK” to enable the search folder.
- Later you can access the search folder, which have contained the emails with the large attachments.
- Finally you can remove the email attachments manually.
- Open an email or preview it in Reading Pane.
- Then select all the email attachments and hit “Remove Attachment” button on “Attachments” tab.
- Lastly you will receive a message, like the following screenshot. Click on “Remove Attachment”.
- Repeat the above 3 steps to manually delete attachments from all emails in the search folder.
Tip 2: Remove Large Email Attachments with Outlook VBA
- At first, press “Alt + F11” buttons to get access to “Visual Basic” window.
- Then create a new module by choosing “Insert” > “Module”.
- Next copy and paste the following VBA codes into the new module.
Sub RemoveLargeAttachments() Dim olInbox As Folder Dim obj As Object Dim olItem As MailItem Dim Att As Attachment Dim Atts As Attachments Set olInbox = Session.GetDefaultFolder(olFolderInbox) 'Remove large attachments from the emails in Inbox folder For Each obj In olInbox.Items If obj.Class = olMail Then Set olItem = obj Set Atts = olItem.Attachments End If For Each Att In Atts 'Change the "500" to your desired size in bytes If Att.Size > 500 Then Att.Delete End If Next Next End Sub
Note: The VBA codes are aimed to removing large attachments from the emails in Inbox folder. If you would like to remove attachments from mails in Sent Items folder, you can make two changes:
- Replace all “olInbox” with “olSentfolder”.
- Change “Set olInbox = Session.GetDefaultFolder(olFolderInbox)” to “Set olSentfolder = Session.GetDefaultFolder(olFolderSentMail)”
- After that, close the “Visual Basic” window and add the new macro to Quick Access Toolbar as usual.
- Eventually, you can back to the main Outlook window. Locate and click on the “macro” button in the Quick Access Toolbar. At once, the attachments which are larger than the specified size in bytes.
Keep Away from Malicious Macros
It is recommended that we should change Outlook macro settings to only permit digitally signed macros, since that there are a great amount of emails which may include malicious macro in the current era. Our Outlook data can get attacked by the email borne viruses readily. Therefore, not only should we keep alert of these potential threats, but also we ought to procure a damaged Outlook data recovery tool, like DataNumen Outlook Repair. It can come to our rescue in time.
Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair SQL mdf file problem and outlook repair software products. For more information visit www.datanumen.com