Posted to microsoft.public.excel.programming
|
|
create HTML from a range
No problem r
Have a nice day
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
"r" wrote in message ...
hello Ron
I wrote my answer without having first read your ... I discover with
pleasure that RangeInHtml has a father ... I had read he
http://groups.google.it/group/micros...c03900ee32733b
and I did not know then who was the author
... can also just update my article:
http://excelvba.altervista.org/blog/...ima-parte.html
RangeInHtml adding to the author's name
Meanwhile I am sorry even if I have acted in good faith.
regards
r
Il mio ultimo lavoro ...
http://excelvba.altervista.org/blog/...ternative.html
"Ron de Bruin" wrote:
Hi Martin
See
http://www.rondebruin.nl/mail/folder3/mail4.htm
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
"Martin" wrote in message ...
Hello,
I am trying to send a Mail with a HTML body created from a range. Using the
following code:
Sub test()
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
rngesend = Selection
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = "This is the Subject line"
.HTMLBody =
ActiveWorkbook.PublishObjects.Add(SourceType:=xlSo urceRange,
Filename:="C:\tempsht.htm", Sheet:=rngesend.Parent.Name,
Source:=rngesend.Address, HtmlType:=xlHtmlStatic)
.Display
End With
End Sub
I get an error pop-up at the line where I define the HTML body. Can somebody
help on this?
Many Thanks
Martin
|