Reply All with Attachments – Macro/VBA
Guide to enable 'Reply All with Attachments' functionality in Outlook using a VBA macro, and compatibility notes for the New Outlook.
Outlook: Reply All with Attachments – Macro & Compatibility Guide
Guide to enable 'Reply All with Attachments' functionality in Outlook using a VBA macro, and compatibility notes for the New Outlook.
📝 Goal
Enable a “Reply All with Attachments” functionality in Outlook, which is not natively supported by default.
✅ Solution for Classic Outlook (Outlook 365 Desktop)
We can use a VBA macro to simulate this functionality.
🔧 Steps to Create the Macro
-
Open the VBA Editor in Outlook:
PressAlt + F11. -
Insert a new module:
In the VBA editor, go toInsert > Module. -
Paste the following VBA code:
Sub ReplyAllWithAttachments()
Dim originalMail As MailItem
Dim replyMail As MailItem
Dim attachment As Attachment
Dim tempAttachmentPath As String
Dim fso As Object
Dim tempFolder As String
' Ensure only one mail item is selected
If Application.ActiveExplorer.Selection.Count <> 1 Then
MsgBox "Please select a single email item.", vbExclamation
Exit Sub
End If
If Not TypeOf Application.ActiveExplorer.Selection.Item(1) Is MailItem Then
MsgBox "Selected item is not an email.", vbExclamation
Exit Sub
End If
Set originalMail = Application.ActiveExplorer.Selection.Item(1)
Set replyMail = originalMail.ReplyAll
' Save attachments to temp folder and re-attach
Set fso = CreateObject("Scripting.FileSystemObject")
tempFolder = Environ("TEMP") & "\OutlookTempAttachments\"
If Not fso.FolderExists(tempFolder) Then
fso.CreateFolder tempFolder
End If
For Each attachment In originalMail.Attachments
tempAttachmentPath = tempFolder & attachment.FileName
attachment.SaveAsFile tempAttachmentPath
replyMail.Attachments.Add tempAttachmentPath
Next attachment
replyMail.Display
End Sub▶️ How to Use
- Select an email in your inbox.
- Run the macro (
Developertab →Macros→ReplyAllWithAttachments).
⚠️ Notes
- Attachments are temporarily saved to disk and then reattached.
- Does not copy inline images.
- Make sure to allow macros in:
File > Options > Trust Center > Trust Center Settings > Macro Settings.
❌ Incompatibility with New Outlook
The New Outlook (based on Outlook on the Web) does NOT support VBA macros.
Why?
- New Outlook is built on web technologies.
- No access to the VBA editor or scripting.
Options:
- ✅ Switch back to Classic Outlook using the toggle in the top-right corner.
- 🧩 Build a custom Outlook add-in (JavaScript + Office.js API).
✅ Recommendation
- Use the macro in Classic Outlook for simplicity.
- Only consider building an add-in if required for the New Outlook.
PowerPoint Template Distribution Overview
Overview of methods for distributing PowerPoint templates within an organization via Microsoft 365.
Sophos Central Endpoint Isolation
Documentation on how to use the Endpoint Isolation feature in Sophos Central for incident response, including a recommended 24-hour workflow for handling malicious link clicks and other security incidents.