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!

E-mail a worksheet in excel from a hyperlink 1

Status
Not open for further replies.

ka4016

MIS
Dec 11, 2000
8
US
I am trying to setup a hyperlink in a excel cell to e-mail a worksheet from a workbook when the hyperlink is clicked. If this is not possible, then is there a way to do this from a button or soemthing else. I am using Excel 97 and 2000.

Thanks.
 
I use this code to select and Email a particular file. You should be able to modify to suit your needs. BTW, a master file is open that contains the various lists of files to Email.

'Select and Email each file
MailName = Selection.Range("A1") ' get value from current cursor cell
MailFile = Selection.Range("B1") ' get value from current cell + 1 column to right
Windows(MailFile).Activate ' Activate the file to Email
ActiveWorkbook.SendMail Recipients:=MailName, Subject:="Here is the file ....." ' Send it
 
Thank you for the responses, but this option sends the entire workbook as an e-mail attachment. I am trying to basically automate the "e-mail" button that is available on the toolbar that will e-mail a single worksheet within an excel workbook, and it will e-mail it as the text of an e-mail, not as an attachment.


I tried both of these solutions, and they work great, but it is not exactly what I am looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top