By abedin9400 on Wednesday, 22 April 2020
Replies 1
Likes 0
Views 5.4K
Votes 0
Hi there, 

Thank you so much for your application Kutools that is very useful for me.
I need a VBA script that I did not find on your application. I need when I reply to an email with a Macro, a specific file on my pc attach to Reply Windows and I sent it !

I saw this code that can use just for create a new message with attached file : 
Sub 
NewMessageWithAttachment()

Dim
oMsg 
As
Outlook.MailItem

Set
oMsg = Application.CreateItem(olMailItem)

With
oMsg

.Attachments.Add 
"C:\Attachment.doc"

.Display

End
With

End
Sub

But I need this function when I reply an email.
Best regards
There is a trick to automatically attach files in new messages with VBA macro in Microsoft Outlook. Step 1: Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window. Step 2: Click the Insert > Module. Step 3: Paste the following code into the new module window.
·
3 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post