Note: The other languages of the website are Google-translated. Back to English
Log in  \/ 
x
or
x
Register  \/ 
x

or
×

normal Automatically Attach Files In reply With VBA outlook

More
10 months 3 weeks ago #2447 by Lewis-H
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.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #2211 by abedin9400
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

Please Log in or Create an account to join the conversation.

Moderators: Excelfans