Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Email from within Excel

I have a DDE link in a worksheet. Once the cell with the DDE link
reaches a certain value I would like to send an automated email via my
email software (outlook or outlook express).

My gues it could be done with a macro that runs every minute but I do
not know how to write it.

1. How can I be sure the macro will run with a given interval?
2. How do I send email from within excel?

Please post here or send email to

Thanks!
Ken
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Email from within Excel

Look in Excel VBA help at the Workbook level method SetLinkOnData

--
Regards,
Tom Ogilvy


"Kenneth" wrote in message
om...
I have a DDE link in a worksheet. Once the cell with the DDE link
reaches a certain value I would like to send an automated email via my
email software (outlook or outlook express).

My gues it could be done with a macro that runs every minute but I do
not know how to write it.

1. How can I be sure the macro will run with a given interval?
2. How do I send email from within excel?

Please post here or send email to

Thanks!
Ken



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Email from within Excel

Kenneth,

I use something like this:
This does not use a refernce.
With a refernce to Otlook 2000 the last couple of lines of code will
work fine (if you have Outlook 2000 then use its VBE for help).

Set objOutlook = CreateObject("Outlook.Application")
Set EmailMessage = objOutlook.CreateItem(olmailitem)

With EmailMessage
.To = e-mail address
.CC = e-mail address
.Subject = "Title "
.Body = "Dear etc. etc."
.Attachments.Add "<filepathway", 1
.Display
.Importance = olImportancelow
End With

On Error Resume Next
ActiveInspector.WindowState = olNormalWindow 'error if in Otlook
97
On Error GoTo 0

Regards
J

(Kenneth) wrote in message . com...
I have a DDE link in a worksheet. Once the cell with the DDE link
reaches a certain value I would like to send an automated email via my
email software (outlook or outlook express).

My gues it could be done with a macro that runs every minute but I do
not know how to write it.

1. How can I be sure the macro will run with a given interval?
2. How do I send email from within excel?

Please post here or send email to


Thanks!
Ken

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
send email to each customer email in excel sheet. -keevill- Excel Discussion (Misc queries) 3 July 17th 08 02:33 PM
Email addresses in Excel need to format for mass email Boomer Excel Worksheet Functions 1 June 9th 06 01:46 PM
Email editor closes when forwarding Excel-embedded email Bambina Setting up and Configuration of Excel 0 March 16th 06 10:45 PM
working on excel document in email saved changes in email not in . butter Excel Discussion (Misc queries) 2 February 20th 06 09:25 AM
body of email disappears when I send an email from Excel ~A Excel Discussion (Misc queries) 0 February 25th 05 10:55 PM


All times are GMT +1. The time now is 02:08 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"