need to save work sheet

ikshanu

New Member
Joined
Sep 25, 2013
Messages
32
Hi,
I have a work book which contain 4 sheets.My program is run from sheet1.

Here, Given code for send mail particular cells of sheet 1
I want to send particular cells of sheet 4 at the same time.How much additional codes required..
Thaks advance,

Dim sourcebook As Workbook
Dim Sourcesheet As Worksheet
Set sourcebook = ActiveWorkbook
Set Sourcesheet = sourcebook.Sheets("sheet1")
' Select the range of cells on the active worksheet.
Range("A1:G65").Select

' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True

' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = "aaa"
.Item.To = "xdx@gmail.com"


.Item.Subject = "Daily Production report " & Format(Date, "dd/mmm/yy")
.Item.Send
End With
End sub
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,215,701
Messages
6,126,308
Members
449,308
Latest member
VerifiedBleachersAttendee

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