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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send excel worksheet 1

Status
Not open for further replies.

MarcusLCox

Programmer
Sep 4, 2002
1
US
Seen lots of code for emailing excel workbook or file. I want to just mail an individual work sheet. Using Microsoft Outlook cox@bucon.com
 
Hi Marcus,

It sounds like you just want the simple method, with would be...

From Excels' menu, click: File - Send To - Mail Recipient

Hope this is what you wanted. :)

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
To send just the active sheet rather that the workbook use the following code,
Code:
Sub MailActiveSheet()    
    ActiveSheet.Copy    
    With ActiveWorkbook        
        .SendMail Recipients:="Recipient"        
        .Saved = True        
        .Close    
    End With
End Sub
replacing "Recipient" with an actual email address.

A.C.
 
Thanks, A.C.

I obviously missed the reference to "worksheet".

Your routine is a GOOD one ===> STAR :)

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top