Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DWBAUS
 
Posts: n/a
Default E-mail notifications from Excel based on dates in speadsheets

I would like to trigger e-mail notifications based on dates in an Excel
spreadsheet.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Norman Jones
 
Posts: n/a
Default E-mail notifications from Excel based on dates in speadsheets

Hi DW,

See Ron de Bruin at:

http://www.rondebruin.nl/sendmail.htm

See particularly:

http://www.rondebruin.nl/mail/change.htm


---
Regards,
Norman



"DWBAUS" wrote in message
...
I would like to trigger e-mail notifications based on dates in an Excel
spreadsheet.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DWBAUS
 
Posts: n/a
Default E-mail notifications from Excel based on dates in speadsheets

This Sendmail is really great, I'm so close and need one more thing:

I need the Email notification to be triggered by the cell date as related to
the present or computer date.
e.g I have a maintenance sheet which I want to notify the respective
managers of an upcoming maintenance due say a week prior.
I think I can use the computer date versus the cell date minus a week but am
struggling.
Any help would be greatly appriciated.

DWBAUS

"Norman Jones" wrote:

Hi DW,

See Ron de Bruin at:

http://www.rondebruin.nl/sendmail.htm

See particularly:

http://www.rondebruin.nl/mail/change.htm


---
Regards,
Norman



"DWBAUS" wrote in message
...
I would like to trigger e-mail notifications based on dates in an Excel
spreadsheet.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Norman Jones
 
Posts: n/a
Default E-mail notifications from Excel based on dates in speadsheets

Hi DWBAUS,

I need the Email notification to be triggered by the cell date as related
to the present or computer date.
e.g I have a maintenance sheet which I want to notify the respective
managers of an upcoming maintenance due say a week prior.
I think I can use the computer date versus the cell date minus a week
but am struggling.


To trigger your email macro, try something like:

'=============
Private Sub Workbook_Open()
Dim SH As Worksheet
Dim Rng As Range
Dim blSent As Boolean

Set SH = Me.Sheets("Maintenance") '<<==== CHANGE
Set Rng = SH.Range("A1") '<<==== CHANGE

With Rng
blSent = .Offset(0, 1).Value = "SENT"

If Not blSent Then
If IsDate(.Value) Then
If .Value <= Date Then
Call YourMacroName '<<==== CHANGE
.Offset.Offset(0, 1).Value = "SENT"
End If
End If
End If
End With

End Sub
'<<=============

Change the sheet name to the sheet of interest; change A1 to the cell which
contains the date value. YourMacroName is the name of the Ron de Bruin email
macro which you have copied into a standard code module.

The above procedure is workbook event code and should be pasted into the
workbook's ThisWorkbook module *not* a standard module or a sheet module:

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your workbook is maximised)
Select 'View Code' from the menu and paste the code.
Alt-F11 to return to Excel.

---
Regards,
Norman


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Norman Jones
 
Posts: n/a
Default E-mail notifications from Excel based on dates in speadsheets

Hi DWBAUS,

If .Value <= Date Then


should read:

If .Value <= Date - 7 Then


---
Regards,
Norman


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
java based pdf and excel generation [email protected] Excel Discussion (Misc queries) 1 December 13th 05 01:01 AM
Dates and Recomended Graphing Programs to work with excel? John Charts and Charting in Excel 2 December 8th 05 07:58 PM
create excel based standalone application Pete_R Excel Discussion (Misc queries) 0 December 4th 05 11:59 PM
cannot send excel worksheet (sheet only) to mail recipient Nancy Excel Discussion (Misc queries) 1 November 9th 05 08:54 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM


All times are GMT +1. The time now is 12:45 AM.

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

About Us

"It's about Microsoft Excel"