Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
copy the sheet to a new workbook. SaveAs HTML and close the workbook. Use
code at Ron's site to attach it to the email and send. Delete the file You can get most of the code you need by turning on the macro recorder and performing the actions manually. -- Regards, Tom Ogilvy "Pieter" wrote in message ... Hello Readers, I use the following working code (thanks to ron de bruin) : Sub Mail_Loadingorder() Dim OutApp As Object Dim OutMail As Object Application.ScreenUpdating = False Set OutApp = CreateObject("Outlook.Application") Set OutMail = OutApp.CreateItem(0) With OutMail .To = ThisWorkbook.Sheets("Loadingorder").Range("a1").Va lue .CC = "" .BCC = "" .Subject = "Loadingorder " & Sheets("Loadingorder").Range("h2").Value .HTMLBody = SheetToHTML(ActiveSheet) .Send 'or use .Display End With Application.ScreenUpdating = True Set OutMail = Nothing Set OutApp = Nothing End Sub Now i want to change this to attach the sheet as an html attachment instead of the the sheet is standing in the body. Anyone know this solution.. Greetings |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cant Send Email Attachment | Excel Discussion (Misc queries) | |||
send wkbk as an email attachment with an email address copied from | Excel Discussion (Misc queries) | |||
Can't send attachment as Email from Excel 2007 | Excel Discussion (Misc queries) | |||
I can't send attachment from excel by email | Excel Discussion (Misc queries) | |||
cant send email attachment from excel | New Users to Excel |