Excel Email

MazPower

New Member
Joined
Apr 8, 2002
Messages
5
Hi!
I have no code to post.
I'm trying to find a code to send
2 out of 7 sheets from my workbook
by email via outlook.
let say sheets 1,2,3,4,5,6,7
want to send 2 and 6 by email
to MrTest@Test.com
with subject : this is only a test
thanks
Regards
jeff
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I can give you the code to send the entire workbook. you can muck around with it so it sends just a couple of pages. You will need to create your own code to copy the two necessary sheets to a new workbook so that you can then send them(this code sends a workbook not sheets)..

'myworkbook is file name
'me@me.me is the e-mail of recipient

Workbooks("myworkbook".xls").HasRoutingSlip = True
With Workbooks("myworkbook.XLS").RoutingSlip
.Delivery = xlOneAfterAnother
.Recipients = Array("me@me.me")
.Subject = "test only"
.Message = "Do you think this is cool" Workbooks("myworkbook.XLS").Route
 
Upvote 0
why not use the posted code that Mr. Excel already has in his archives section:

Sheets(3).Copy
Application.Dialogs(xlDialogSendMail).Show _
arg1:=RecipientEmailAddress, _
arg2:="subject line goes here"
ActiveWorkbook.Close SaveChanges:=False
 
Upvote 0

Forum statistics

Threads
1,214,615
Messages
6,120,538
Members
448,970
Latest member
kennimack

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