如何在Outlook中回覆郵件時複製所有附件名稱?
在Outlook中回覆RTF格式(富文本格式)的郵件時,它會自動將所有附件名稱複製並粘貼到郵件正文中(見下圖)。然而,在Outlook中回覆HTML格式的郵件時,回覆郵件中的附件卻不見了。本文將介紹一些方法,讓您在回覆郵件或直接在收到的郵件中複製所有附件名稱。
通過將HTML轉換為RTF回覆時複製所有附件名稱
如果我們在回覆之前已將HTML郵件轉換為RTF,則單擊「開始」>「答覆」後,所有附件名稱都會被複製到回覆郵件中。
1. 雙擊打開需要複製附件名稱的郵件,然後在郵件窗口中單擊「郵件地址」>「回覆」>「編輯郵件」。見截圖:
2. 繼續單擊「格式文本」>「富文本」,然後保存並關閉郵件。
3. 現在您返回到主視圖。保持選中該郵件,並單擊「 開始」>「 答覆」。
4. 此時,所有附件名稱都從原始郵件中複製並粘貼到回覆郵件中,如下圖所示。請撰寫回覆郵件並發送。
輕鬆回覆所選郵件並保留Outlook中的所有原始附件
一般來說,在Outlook中回覆郵件時,原始附件會被移除。但是,借助Kutools for Outlook出色的「帶附件回覆 」功能,您可以在Outlook中回覆郵件時輕鬆保留所有附件。

使用強大的工具回覆時複製所有附件名稱
如果您已安裝Kutools for Outlook,可以使用其「複製名稱」功能快速從收到的郵件中複製所有附件名稱,然後輕鬆地在Outlook中粘貼到回覆郵件中。
使用 Kutools for Outlook 解鎖極致郵件效率!永久免費獲取 70 項強大功能。立即下載免費版本!
1. 選擇要回覆的郵件,並單擊「Kutools Plus」>「附件工具」>「複製名稱」。
然後會彈出一個對話框,告訴您附件名稱已複製到剪貼板。單擊「確定」關閉它。
2. 繼續單擊「開始」>「答覆」以回覆所選郵件。
3. 在回覆郵件窗口中,將光標放在郵件正文中,然後按Ctrl + V鍵輕鬆粘貼附件名稱。
使用VBA回覆時複製所有附件名稱
此方法將介紹一個VBA宏,用於在回覆郵件時複製所有附件名稱,然後將這些名稱粘貼到Outlook中回覆郵件的正文中。
1. 同時按下Alt + F11鍵打開Microsoft Visual Basic for Applications窗口。
2. 在左側的項目資源管理器中,展開「項目1」,雙擊打開「ThisOutlookSession」窗口(見下圖),然後將以下代碼粘貼到窗口中。
VBA:在Outlook中回覆郵件時複製所有附件名稱
Option Explicit
Private WithEvents oExpl As Explorer
Private WithEvents oItem As MailItem
Private bAttachEvent As Boolean
Private Sub Application_Startup()
Set oExpl = Application.ActiveExplorer
bAttachEvent = False
End Sub
Private Sub oExpl_SelectionChange()
On Error Resume Next
Set oItem = oExpl.Selection.Item(1)
End Sub
' Reply
Private Sub oItem_Reply(ByVal Response As Object, Cancel As Boolean)
Dim oAtt As Attachment
Dim sAtts As String
Dim olInspector As Outlook.Inspector
Dim olDocument As Word.Document
Dim olSelection As Word.Selection
If bAttachEvent Or oItem.Attachments.Count = 0 Then
Exit Sub
End If
Cancel = True
bAttachEvent = True
sAtts = ""
For Each oAtt In oItem.Attachments
sAtts = sAtts & "<<" & oAtt.FileName & ">> "
Next oAtt
Dim oResponse As MailItem
Set oResponse = oItem.Reply
oResponse.Display
Set olInspector = Application.ActiveInspector()
Set olDocument = olInspector.WordEditor
Set olSelection = olDocument.Application.Selection
olSelection.InsertBefore sAtts
bAttachEvent = False
Set oItem = Nothing
End Sub
' Reply All
Private Sub oItem_ReplyAll(ByVal Response As Object, Cancel As Boolean)
Dim oAtt As Attachment
Dim sAtts As String
Dim olInspector As Outlook.Inspector
Dim olDocument As Word.Document
Dim olSelection As Word.Selection
If bAttachEvent Or oItem.Attachments.Count = 0 Then
Exit Sub
End If
Cancel = True
bAttachEvent = True
sAtts = ""
For Each oAtt In oItem.Attachments
sAtts = sAtts & "<<" & oAtt.FileName & ">> "
Next oAtt
Dim oResponse As MailItem
Set oResponse = oItem.ReplyAll
oResponse.Display
Set olInspector = Application.ActiveInspector()
Set olDocument = olInspector.WordEditor
Set olSelection = olDocument.Application.Selection
olSelection.InsertBefore sAtts
bAttachEvent = False
Set oItem = Nothing
End Sub
3. 單擊「工具 」>「引用」。
4在打開的Outlook 2016的「引用 – 項目1」窗口中,請勾選 Microsoft Word 16.0 Object Library 在可用引用框中的引用,然後單擊 確定 按鈕。見截圖:
注意: 請選擇 Microsoft Word 15.0 Object Library 引用,如果您使用的是Outlook 2013,或者選擇 Microsoft Word 14.0 Object Library 引用與Outlook 2010配合使用。
5. 保存VBA並關閉Microsoft Visual Basic for Applications窗口。
6. 現在您返回到Outlook的主界面。選擇要回覆的郵件,並單擊「開始」>「答覆」或 「全部答覆」。
注意: 如果附件名稱未複製並粘貼到回覆郵件中,請重新啟動您的Outlook並再次回覆。
現在,所有附件名稱都從所選郵件中複製並粘貼到回覆郵件中。見截圖:
相關文章:
最佳辦公室生產力工具
最新消息:Kutools for Outlook推出免費版本!
體驗全新的Kutools for Outlook免費版本,擁有70多項令人驚嘆的功能,永久使用!立即點擊下載!
🤖 Kutools AI :使用先進的AI技術輕鬆處理郵件,包括答覆、摘要、優化、擴展、翻譯和撰寫郵件。
📧 郵件自動化:自動回覆(適用於POP和IMAP) / 計劃發送郵件 / 發送郵件時按規則自動抄送密送 / 自動轉發(高級規則) / 自動新增問候語 / 自動將多收件人郵件拆分為個別郵件...
📨 郵件管理:撤回郵件 / 按主題和其他方式阻止詐騙郵件 / 刪除重複郵件 / 高級搜索 / 整合文件夾...
📁 附件專業版:批量保存 / 批量拆離 / 批量壓縮 / 自動保存 / 自動拆離 / 自動壓縮...
🌟 介面魔法:😊更多漂亮和酷炫的表情符号 / 當重要郵件到來時提醒您 / 最小化Outlook而不是關閉...
👍 一鍵奇蹟:帶附件全部答復 / 防止網絡釣魚郵件 / 🕘顯示發件人的時區...
👩🏼🤝👩🏻 聯絡人和日曆:從選中郵件批量新增聯絡人 / 將聯絡人組拆分為個別組 / 移除生日提醒...
立即單擊解鎖Kutools for Outlook。不要等待,立即下載並提升您的效率!

