Skip to main content
 

How to copy all attachments from multiple emails to a new email in Outlook?

Author: Kelly Last Modified: 2024-08-20

In general, it’s easy to copy attachments from one email to another with copying and pasting in Outlook. But how about copying attachments from multiple emails to a new one? This article will introduce the solutions for you.


Copy all attachments from multiple emails to a new email

This article will introduce a VBA to quickly copy all attachments from multiple emails to a new one in Outlook. Please do as follows:

1. Select multiple emails whose attachments you will copy, and press Alt + F11 keys to open the Microsoft Visual Basic for Applications window.
Note: Holding Ctrl key, you can select multiple nonadjacent emails with clicking them one by one; holding Shift key, you can select multiple adjacent emails with clicking the first one and the last one.

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

VBA: Copy all attachments from multiple emails to a new one

Sub NewEmailInsertAttachmentsName()
Dim xSelection As Outlook.Selection
Dim xMailItem As Outlook.MailItem
Dim xAttachment As Outlook.Attachment
Dim xFSO As Object
Dim xFldPath As String

Dim xFilePath As String
Dim xNewMail As Outlook.MailItem
On Error Resume Next
Set xSelection = Outlook.Application.ActiveExplorer.Selection
Set xNewMail = Outlook.Application.CreateItem(olMailItem)
Set xFSO = CreateObject("Scripting.FileSystemObject")
xFldPath = xFSO.GetSpecialFolder(2).Path & "\MyAttachments"
If xFSO.FolderExists(xFldPath) = False Then
xFSO.CreateFolder (xFldPath)
End If

For Each xMailItem In xSelection
For Each xAttachment In xMailItem.Attachments
xFilePath = xFldPath & "\" & xAttachment.FileName
xAttachment.SaveAsFile (xFilePath)
xNewMail.Attachments.Add (xFilePath)
xFSO.DeleteFile (xFilePath)
Next
Next
xFSO.GetFolder(xFldPath).Delete
xNewMail.Display
End Sub

3. Press F5 key or the Run button to run this VBA.

Now you will see all attachments are copied from the selected emails, and pasted into a new email.


Copy all attachments from an email to its replying email

If you have Kutools for Outlook installed, you can apply its Reply with Attachment feature to easily copy all attachments from an email to its replying email in Outlook. Please do as follows:

Unlock ultimate email efficiency with Kutools for Outlook! Access 70 powerful features absolutely free, forever. Download the Free Version Now!

Select the email you will reply, and click Kutools > Reply with Attachment > Reply with Attachment. See screenshot:

the screenshot of copying all attachments from multiple emails to a new email in outlook 1

Now you will see all attachments are copied to the replying email automatically.

the screenshot of copying all attachments from multiple emails to a new email in outlook 2

Related Articles

How to copy attachment to another email in Outlook?


Best Office Productivity Tools

Breaking News: Kutools for Outlook Launches Free Version!

Experience the all-new Kutools for Outlook FREE version with 70+ incredible features, yours to use FOREVER! Click to download now!

🤖 Kutools AI : Uses advanced AI technology to handle emails effortlessly, including replying, summarizing, optimizing, extending, translating, and composing emails.

📧 Email Automation: Auto Reply (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: 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   /  Remind you when important emails come  /  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 ...

Instantly unlock Kutools for Outlook with a single click—permanently free. Don't wait, download now and boost your efficiency!

kutools for outlook features1 kutools for outlook features2