Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I have a working routine to send out specific emails with attachments. How can i define the .from property of the email? Here is my code: Function SendEmail() Dim myOutlook As Object Dim MymailItem As Object Set otlApp = CreateObject("outlook.application") Set otlNewMail = otlApp.createitem(olmailitem) Set Template = ActiveWorkbook ThisWorkbook.Activate With otlNewMail '.from = " 'This line gives error .To = " .deferreddeliverytime = Range("DeliveryTime") .Subject = "Rates Update " .readreceiptrequested = True .attachments.Add Template.FullName .display .send End With End Function Thanks!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Macro how to create email link for the email addresses in aRange or Selection | Excel Worksheet Functions | |||
send wkbk as an email attachment with an email address copied from | Excel Discussion (Misc queries) | |||
can I copy a column of email addresses, paste into email address? | New Users to Excel | |||
Transfer Email addresses from spreadsheet to email address book | Excel Discussion (Misc queries) | |||
Email editor closes when forwarding Excel-embedded email | Setting up and Configuration of Excel |