Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default Alert When A Document is Changed

Is there any mechanism in Microsoft Office which will send an email
when an Excel (or Word) document has been amended?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Alert When A Document is Changed

This will record a user's ID each time Excel file is opened:
Private Sub Auto_Open()

LogInformation ThisWorkbook.Name & " opened by " & _
Application.UserName & " " & Format(Date, "yyyy-mm-dd") & " " &
Format(Time, "hh:mm")
'LogInformation Variable1 & "," & Variable2 & "," & Now

End Sub

Sub LogInformation(LogMessage As String)
Const LogFileName As String = "C:\MyLog.txt"
Dim FileNum As Integer
FileNum = FreeFile ' next file number
Open LogFileName For Append As #FileNum ' creates the file if it doesn't
exist
Print #FileNum, LogMessage ' write information at the end of the text file
Close #FileNum ' close the file
End Sub

Notice, you must have a Text file named 'MyLog.txt' at this location:
"C:\MyLog.txt"


Regards,
Ryan--

--
RyGuy


"robzrob" wrote:

Is there any mechanism in Microsoft Office which will send an email
when an Excel (or Word) document has been amended?

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
Hyperlink changed when document was saved ... EFMN Links and Linking in Excel 0 November 30th 07 03:55 PM
alert Brian Excel Discussion (Misc queries) 0 December 21st 06 06:52 PM
Can excel update date when document last changed? Nic Excel Discussion (Misc queries) 1 July 26th 06 07:44 PM
Sound+color alert if cell changed in another worksheet florinel Excel Discussion (Misc queries) 0 May 25th 06 04:52 PM
i changed a document then saved the chnages, is there anything i . RaHeEL HuSsAIn Excel Discussion (Misc queries) 1 February 24th 05 10:42 PM


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