Bỏ qua nội dung chính

Làm cách nào để giữ tệp đính kèm khi trả lời trong Outlook?

Khi chúng tôi chuyển tiếp một thư email trong Microsoft Outlook, các tệp đính kèm ban đầu trong thư email này vẫn còn trong thư được chuyển tiếp. Tuy nhiên, khi chúng tôi trả lời thư email, các tệp đính kèm ban đầu sẽ không được đính kèm trong thư trả lời mới. Ở đây chúng tôi sẽ giới thiệu một số thủ thuật về việc giữ các tệp đính kèm gốc khi trả lời trong Microsoft Outlook.

Trả lời bằng tệp đính kèm bằng cách sao chép và dán thủ công
Trả lời tự động với tệp đính kèm bằng VBA
Một cú nhấp chuột để trả lời với tệp đính kèm với Kutools cho Outlook


Trả lời bằng tệp đính kèm bằng cách sao chép và dán thủ công

Chúng tôi có thể sao chép thủ công các tệp đính kèm gốc trong email và dán chúng vào cửa sổ Reply Message khi chúng tôi trả lời email sau.

Bước 1: Nhấp vào email để xem trước trong Ngăn đọc.

Bước 2: Nhấp chuột phải vào một tệp đính kèm trong email xem trước và chọn Chọn tất cả từ menu chuột phải.

Bước 3: Nhấp chuột phải vào các tệp đính kèm đã chọn và chọn Sao chép từ menu chuột phải.

Bước 4: Trả lời email bằng cách nhấp vào đáp lại nút trên Trang Chủ (hoặc trên Thanh công cụ trong Outlook 2007).

Bước 5: Trong cửa sổ Thư trả lời, nhấp vào Dán nút trên Tin nhắn để dán các tệp đính kèm này.

Nếu bạn đang sử dụng Outlook 2013 hoặc phiên bản mới hơn, hãy bấm vào Bật ra ở góc trên bên trái của Ngăn đọc để mở cửa sổ Thư trả lời. Nhấp để biết thêm…

Bước 6: Soạn tin nhắn trả lời và nhấp vào Gửi .


Dễ dàng trả lời email với các tệp đính kèm gốc trong Outlook:

Kutools cho Outlook's Trả lời bằng tệp đính kèm tiện ích có thể giúp bạn dễ dàng trả lời email đã nhận với các tệp đính kèm gốc của nó trong Outlook. Xem bản demo dưới đây: 
Tải xuống và dùng thử ngay bây giờ! (đường mòn miễn phí 60 ngày)


Trả lời tự động với tệp đính kèm bằng VBA 

Có một macro VBA có thể giúp bạn tự động trả lời các tệp đính kèm gốc.

Lưu ý: Trước khi chạy bất kỳ macro VBA nào, bạn cần phải bật macro trong Microsoft Outlook.

Bước 1: Chọn email mà bạn sẽ trả lời kèm theo các tệp đính kèm.

Bước 2: Nhấn Khác + F11 để mở cửa sổ Microsoft Visual Basic for Applications.

Bước 3: Mở rộng Đối tượng Project1 và Microsoft Outlook ở thanh bên trái và bấm đúp vào ĐâyOutlookSession mở nó ra.

Bước 4: Dán đoạn mã sau vào cửa sổ ThisOutlookSession.

Sub RunReplyWithAttachments()
'Update by Extendoffice 20180830
    Dim xReplyItem As Outlook.MailItem
    Dim xItem As Object
    On Error Resume Next
    Set xItem = GetCurrentItem()
    If xItem Is Nothing Then Exit Sub
    Set xReplyItem = xItem.Reply
    CopyAttachments xItem, xReplyItem
    xReplyItem.Display
    Set xReplyItem = Nothing
    Set xItem = Nothing
End Sub
Sub RunReplyAllWithAttachments()
    Dim xReplyAllItem As Outlook.MailItem
    Dim xItem As Object
    Set xItem = GetCurrentItem()
    If xItem Is Nothing Then Exit Sub
    Set xReplyAllItem = xItem.ReplyAll
    CopyAttachments xItem, xReplyAllItem
    xReplyAllItem.Display
    Set xReplyAllItem = Nothing
    Set xItem = Nothing
End Sub
    
Function GetCurrentItem() As Object
    On Error Resume Next
    Select Case TypeName(Application.ActiveWindow)
        Case "Explorer"
            Set GetCurrentItem = Application.ActiveExplorer.Selection.Item(1)
        Case "Inspector"
            Set GetCurrentItem = Application.ActiveInspector.currentItem
    End Select
End Function
    
Sub CopyAttachments(SourceItem As MailItem, TargetItem As MailItem)
    Dim xFilePath As String
    Dim xAttachment As Attachment
    Dim xFSO As Scripting.FileSystemObject
    Dim xTmpFolder As Scripting.Folder
    Dim xFldPath As String
    Set xFSO = New Scripting.FileSystemObject
    Set xTmpFolder = xFSO.GetSpecialFolder(2)
    xFldPath = xTmpFolder.Path & "\"
    For Each xAttachment In SourceItem.Attachments
        If IsEmbeddedAttachment(xAttachment) = False Then
            xFilePath = xFldPath & xAttachment.Filename
            xAttachment.SaveAsFile xFilePath
            TargetItem.Attachments.Add xFilePath, , , xAttachment.DisplayName
            xFSO.DeleteFile xFilePath
        End If
    Next
    Set xFSO = Nothing
    Set xTmpFolder = Nothing
End Sub

Function IsEmbeddedAttachment(Attach As Attachment)
    Dim xAttParent As Object
    Dim xCID As String, xID As String
    Dim xHTML As String
    On Error Resume Next
    Set xAttParent = Attach.Parent
    xCID = ""
    xCID = Attach.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001F")
    If xCID <> "" Then
        xHTML = xAttParent.HTMLBody
        xID = "cid:" & xCID
        If InStr(xHTML, xID) > 0 Then
            IsEmbeddedAttachment = True
        Else
            IsEmbeddedAttachment = False
        End If
    End If
End Function

Bước 5: Nhấn F5 phím để chạy macro này. Trong phần mở đầu Macros hộp thoại, nhấn ChạyTrả lờiTất cảVớiTệp đính kèm nếu bạn muốn trả lời tất cả bằng tệp đính kèm. Nếu không, hãy chọn ChạyReplyWithAttachments, sau đó nhấp vào chạy .

Sau đó, nó sẽ mở cửa sổ Thư trả lời kèm theo tất cả các tệp đính kèm ban đầu.

Bước 6: Soạn tin nhắn trả lời và nhấp vào Gửi .


Tự động trả lời bằng tệp đính kèm với Kutools cho Outlook

Sản phẩm Trả lời với Đính kèm tiện ích của Kutools cho Outlook có thể giúp bạn trả lời email có tệp đính kèm gốc chỉ với một cú nhấp chuột.

Kutools cho Outlook : với hơn 100+ bổ trợ Outlook tiện dụng, dùng thử miễn phí không giới hạn trong 60 ngày.

1. Chọn email chứa các tệp đính kèm mà bạn cần trả lời.

2. Sau đó nhấn vào Kutools > Trả lời bằng tệp đính kèm > Trả lời bằng tệp đính kèm. Xem ảnh chụp màn hình:

Sau đó, tất cả các tệp đính kèm của email đã chọn được liệt kê trong Ban hành kèm trường của tin nhắn trả lời. Soạn email của bạn và gửi nó.

Nếu bạn muốn dùng thử miễn phí tiện ích này, vui lòng truy cập tải xuống miễn phí phần mềm đầu tiên, và sau đó đi đến áp dụng hoạt động theo các bước trên.


Một cú nhấp chuột để trả lời với tệp đính kèm với Kutools cho Outlook

  Nếu bạn muốn dùng thử miễn phí (60 ngày) tiện ích này, vui lòng nhấp để tải xuống, và sau đó đi đến áp dụng hoạt động theo các bước trên.


Các bài liên quan:


Công cụ năng suất văn phòng tốt nhất

Kutools cho Outlook - Hơn 100 tính năng mạnh mẽ để tăng cường Outlook của bạn

🤖 Trợ lý thư AI: Email chuyên nghiệp tức thì với phép thuật AI--một cú nhấp chuột để có câu trả lời xuất sắc, giọng điệu hoàn hảo, khả năng thông thạo đa ngôn ngữ. Chuyển đổi email một cách dễ dàng! ...

📧 Tự động hoá email: Vắng Mặt (Có sẵn cho POP và IMAP)  /  Lên lịch gửi email  /  Tự động CC/BCC theo quy định khi gửi Email  /  Tự động chuyển tiếp (Quy tắc nâng cao)   /  Tự động thêm lời chào   /  Tự động chia email nhiều người nhận thành các tin nhắn riêng lẻ hữu ích. Cảm ơn !

📨 Quản lý email: Dễ dàng thu hồi email  /  Chặn email lừa đảo theo chủ đề và những người khác  /  Xóa các email trùng lặp  /  Tìm Kiếm Nâng Cao  /  Hợp nhất các thư mục hữu ích. Cảm ơn !

📁 Tệp đính kèm chuyên nghiệpLưu hàng loạt  /  Tách hàng loạt  /  Nén hàng loạt  /  Tự động lưu   /  Tự động tách  /  Tự động nén hữu ích. Cảm ơn !

🌟 Giao diện ma thuật: 😊Thêm nhiều biểu tượng cảm xúc đẹp và thú vị hơn   /  Tăng năng suất Outlook của bạn với chế độ xem theo thẻ  /  Thu nhỏ Outlook thay vì đóng hữu ích. Cảm ơn !

👍 Kỳ quan chỉ bằng một cú nhấp chuột: Trả lời tất cả bằng tệp đính kèm đến  /   Email chống lừa đảo  /  🕘Hiển thị múi giờ của người gửi hữu ích. Cảm ơn !

👩🏼‍🤝‍👩🏻 Danh bạ & Lịch: Thêm hàng loạt liên hệ từ các email đã chọn  /  Chia nhóm liên hệ thành các nhóm riêng lẻ  /  Xóa lời nhắc sinh nhật hữu ích. Cảm ơn !

Trên 100 tính năng Chờ đợi sự khám phá của bạn! Bấm vào đây để khám phá thêm.

 

 

Comments (26)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Ciao, la macro funziona. Peccato che risponde solo al mittente, allegando gli allegati, e non a tutte le persone presenti in una mail. come si potrebbe modificare per aggiungere questa seconda funzione?

grazie mille
This comment was minimized by the moderator on the site
Buna ziua!

Exista posibilitatea de a da reply all la un email care are persoane in bcc?

Multumesc!
This comment was minimized by the moderator on the site
Hi, I am using your code for reply which is great, thank you form making it available.I have my mail options set to preface comments with my initials which works when I use the standard reply. When I create a reply using this code my intials are not inserted Can you assist please?ThanksSteve
This comment was minimized by the moderator on the site
Hi
I am going to use the code to reply all with attachments in search results from All Mailboxes but it shows me an error and does not work.
please let me know how to change the code to be usable for All Mailboxes.

Best regards
Shahrooz
This comment was minimized by the moderator on the site
Hi,
The error does not cause by the search.
To avoid the error, please click Tools > References to open the References dialog, and then enable the Microsoft Scripting Runtime option. See the attached image for the steps.
This comment was minimized by the moderator on the site
Hi!

Thanks a lot for such a great tool!

Can the command be ran so that the reply window won't pop-up but stay in reading pane view?
This comment was minimized by the moderator on the site
Hi Alexey,
We have released a new version with the tool updated. Thank you for your support.
This comment was minimized by the moderator on the site
Hi Crystal!

thanks for update!
had the macro code changed or it would work only with tool installed?
This comment was minimized by the moderator on the site
Hi Alexey,
The code is used alone without the tool installed.
This comment was minimized by the moderator on the site
Very nice, thanks, but I have compiler error: User-defined type not defined. There is highlighted Dim xFSO As Scripting.FileSystemObject in part Sub CopyAttachments
This comment was minimized by the moderator on the site
Hi Honza,
The code works well in my case. Which Office version do you use?
This comment was minimized by the moderator on the site
me too. I have the problem with the same people above. I use Office 2016.
This comment was minimized by the moderator on the site
I am using office 365 with the same error
This comment was minimized by the moderator on the site
Hi Bob,
Please try:
1. Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window again;
2. Click Tools > References, and check the Microsoft Scripting Runtime box.
Now the code can work.
This comment was minimized by the moderator on the site
That solve it for me!

Thanks.
This comment was minimized by the moderator on the site
I used VBA code but it attaches with all image (.gif, jpg,...) in email content. Pls show me how to solve this problem?
This comment was minimized by the moderator on the site
Good Day,
The code is updated in the post. The problen now is solved. Please have a try and thanks for your comment.
This comment was minimized by the moderator on the site
In the last part of the script, many of the variables are not defined.
This comment was minimized by the moderator on the site
I have downloaded the Kutools tab. Can I add the 'Reply with Attachment' to my home tab or to Quick Steps??
This comment was minimized by the moderator on the site
Dear Jim,
You can right click the Reply with Attachment button, and select the "Add to Quick Access Toolbar" to add this function to the Quick Access Toolbar on the Ribbon. See screenshot:
This comment was minimized by the moderator on the site
I am trying to use the Reply with Attachments but it isn't adding the attachment, just keeping the link. I use the automatic detach when email is received. Is there a configuration setting that I need to update? Thank you for your help!
This comment was minimized by the moderator on the site
Dear Susan,

The attachments won't locate in the email any more as they are detached automatically from the email. Please turn off the auto detach feature for the sake of using this Reply with Attachment feature.

Best Regards, Crystal.
This comment was minimized by the moderator on the site
how do you turn off the auto detach feature
This comment was minimized by the moderator on the site
Dear Dakota,

If you are using the Auto detach all receiving attachments feature of Kutools for Outlook, please do as below screenshot shown to turn off this feature by unchecking it in your Outlook. Thank you!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations