Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Create Outlook email from Excel

I have an Outlook email template saved on my computer. For purposes
of simplicity, we'll say the location is C:\template.oft

I want to create a macro to open this template as a regular, ready-to-
be-sent email.

I have a workbook that I update every day. When my update is
finished, I send an email to the same people, in the same format. I
want to cut down on clicking all over the place to open up that
email. I figure it will be easier if I have a button (with an
underlying macro) within Excel to launch the email. Any help is much
appreciated.

Kevin

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Create Outlook email from Excel

this is a start. replace emailAddress with your own email address.


Sub SendMail()

strRecipient = "Email Address"
'Use a With...End With block to reference the MsoEnvelope object.
With Application.ActiveSheet.MailEnvelope

'Add some introductory text before the body of the e-mail.
.Introduction = "Please read this and send me your comments."

'Return a Microsoft Outlook MailItem object that
'you can use to send the document.
With .Item

'All of the mail item settings are saved with the document.
'When you add a recipient to the Recipients collection
'or change other properties, these settings will persist.
.Recipients.Add strRecipient
.Subject = "Here is the document."

'The body of this message will be
'the content of the active document.
.Send
End With
End With
End Sub


"DoooWhat" wrote:

I have an Outlook email template saved on my computer. For purposes
of simplicity, we'll say the location is C:\template.oft

I want to create a macro to open this template as a regular, ready-to-
be-sent email.

I have a workbook that I update every day. When my update is
finished, I send an email to the same people, in the same format. I
want to cut down on clicking all over the place to open up that
email. I figure it will be easier if I have a button (with an
underlying macro) within Excel to launch the email. Any help is much
appreciated.

Kevin


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel and Email/Outlook Carl Excel Worksheet Functions 2 January 5th 07 12:56 PM
How do I import Outlook email into Excel, as object? Wizard Excel Discussion (Misc queries) 0 May 26th 06 12:27 AM
How do I export email addresses from Excel to Outlook? JasonLi Excel Discussion (Misc queries) 2 May 22nd 06 04:51 PM
How do I get excel to create an email using Outlook? cleslie Excel Discussion (Misc queries) 0 November 30th 05 01:11 AM
How do I export email addresses from excel to outlook? Mark Davies Excel Discussion (Misc queries) 1 February 2nd 05 02:21 PM


All times are GMT +1. The time now is 07:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"