Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing an Excel Worksheet

Status
Not open for further replies.

KarMac21

Programmer
Jan 8, 2001
109
US
Can anyone please tell me how I can automate emailing a single Excel worksheet instead of having to email the entire workbook. I want it to do the exact samething it does when you go to FILE..SEND TO..MAIL Recipient and the pick single sheet.

Any help would be greatly appreciated.

Thanks - Mac
 
Try the following , it copies the active sheet to a new workbook and sends it. You can include code to close it when finished, or save it
Code:
    Sub MailSheet()
        ActiveSheet.Copy
        ActiveWorkbook.SendMail _
            Recipients:="somebody@somewhere.com", _
            Subject:="Update"
    End Sub
AC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top