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

Automate email from within Excel. 1

Status
Not open for further replies.

Ezzer

Technical User
Sep 25, 2001
7
GB
I would like to automatically email a workbook as an attachment. I have tried to do it by recording the macro but to no avail. If it is possible could you please supply the code.

TIA.

Ezzer...
 
Dim A As String
Dim B As String

'Who the email should go to
A = test@email.com
'The Subject
B = "Here is your Spreadsheet"

ActiveWorkbook.SendMail Recipients:=A, Subject:=B

Is this what you need?

David Lerwill
"If at first you don't succeed go to the pub"
 
If only everything in life was so easy!!

Cheers

Ezzer...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top