Wednesday, 22 April 2020
  1 Replies
  5.4K Visits
0
Votes
Undo
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
3 years ago
·
#2120
0
Votes
Undo
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.
  • Page :
  • 1
There are no replies made for this post yet.