New email message with attachment, only for the active worksheets

Chris Williamson

Board Regular
Joined
Oct 16, 2010
Messages
83
Hi guys,
I hope you can help me with my query, I cannot find the right specific vba code that I'm looking for.

What I'm looking to do is from my excel workbook is to create a new email message in outlook, that automatically has an attachment, however, the attachment is not the whole workbook. I'm only looking to have attached three worksheets only.

I'm just looking for a simple vba code, nothing too complicated where I can create the new email message, and the email address and subject lines are automatically completed, I can add my own message body and signature before I hit the send button, but the main thing is that the attachment is a partial workbook, only containing three sheets:-
e.g. worksheets 1, 5 and 6

Please help me, many thanks

Chris
 

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"

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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