ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Send Email when spreadsheet is updated (https://www.excelbanter.com/excel-discussion-misc-queries/126450-send-email-when-spreadsheet-updated.html)

XFILES

Send Email when spreadsheet is updated
 
I have created a spreadsheet and I'm wondering if it possible to set the
spreadsheet up so that it emails me when a user changes it? Thanks.

Ron de Bruin

Send Email when spreadsheet is updated
 
Hi XFILES

You can set a boolean and use the beforesave event to mail maybe
Copy this In the thisworkbook module

Public OkToSend As Boolean

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If OkToSend = True Then
MsgBox "call your macrio here"
OkToSend = False
End If
End Sub

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
OkToSend = True
End Sub

For mail code look here
http://www.rondebruin.nl/sendmail.htm




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"XFILES" wrote in message ...
I have created a spreadsheet and I'm wondering if it possible to set the
spreadsheet up so that it emails me when a user changes it? Thanks.


Kooster

Send Email when spreadsheet is updated
 
Use the subscription featu

http://office.microsoft.com/en-us/he...701161033.aspx

P.
--
Overcome Sales Barriers
http://salesbarriers.typepad.com/


"Ron de Bruin" wrote:

Hi XFILES

You can set a boolean and use the beforesave event to mail maybe
Copy this In the thisworkbook module

Public OkToSend As Boolean

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If OkToSend = True Then
MsgBox "call your macrio here"
OkToSend = False
End If
End Sub

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
OkToSend = True
End Sub

For mail code look here
http://www.rondebruin.nl/sendmail.htm




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"XFILES" wrote in message ...
I have created a spreadsheet and I'm wondering if it possible to set the
spreadsheet up so that it emails me when a user changes it? Thanks.




All times are GMT +1. The time now is 04:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com