Attach Several Workbooks To Outlook Message

Abarker1978

New Member
Joined
Mar 30, 2011
Messages
3
Using MSExcel 2010

Hi all, I need some vba script and despite trawling several sites and lots of search results here I have been unable to find anything that works!

I need something that will open a .msg file then attach several .xls files to the opened message. These files will always have the same name and be saved in the same location.

Any help appreciated, thanks in advance.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Bump - I can get it to open a message without putting any attachments, or to open a blank message with 1 attachment - But not a saved message with several attachments!
 
Upvote 0
Alas I have the workbook saved at work, not here, but the general gist of it is using the Shell object, and the /f switch in outlook to open the saved message.

It is something very close to the following:

sub OpenMsg()
Dim AppPath As String
Dim MsgPath As String

AppPath = "C:\MSOffice\Office\Outlook.exe"
MsgPath = "C:\Msg.msg"

x = shell (""""AppPath""" & """/f""" &"""MsgPath"""")
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top