Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I use the following code to create an email from my VBA-project within Excel. All lines work fine except: objMail.InlineShapes.AddPicture Filename:= _ "E:\DisLogo.bmp", LinkToFile:=False, _ SaveWithDocument:=True Does anyone know how to write this line ? Dim objMail As Object Dim objOL As Object On Error Resume Next Set objOL = GetObject(, "Outlook.Application") On Error GoTo 0 If objOL Is Nothing Then Set objOL = CreateObject("Outlook.Application") End If Set objMail = objOL.CreateItem(0) objMail.To = " objMail.Body = "myText" objMail.Subject = "mySubject" objMail.InlineShapes.AddPicture Filename:= _ "E:\DisLogo.bmp", LinkToFile:=False, _ SaveWithDocument:=True objMail.Display thanks in advance hugo -- H.A. de Wilde ------------------------------------------------------------------------ H.A. de Wilde's Profile: http://www.excelforum.com/member.php...o&userid=30679 View this thread: http://www.excelforum.com/showthread...hreadid=566939 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
insert email message in excel | Excel Discussion (Misc queries) | |||
how do I insert picture into cell so vlookup can return picture? | Excel Worksheet Functions | |||
insert a picture in to a comment but picture not save on hard disk | Excel Discussion (Misc queries) | |||
Can I insert cell values into an email message this way? | Excel Programming | |||
Extract Email from a Picture | Excel Programming |