SRMPURCHASE
Board Regular
- Joined
- Dec 23, 2014
- Messages
- 212
- Office Version
- 2016
- Platform
- Windows
What VBA would be needed to insert into a macro to notify an email recipient that a file has been modified?
Private Sub Workbook_Open()
Call MonitorFile
End Sub
Sub MonitorFile()
Dim x As Double: x = FileDateTime("C:\TestArea\Analysis.xlsx")
If x > Range("A1") Then
Call [I][B]SendEmail[/B] '[COLOR=#006400]add this procedure yourself[/COLOR][/I]
Range("A1") = x
End If
Application.OnTime Now + TimeValue("01:00"), "MonitorFile"
End Sub
NoI take it the 'add this procedure yourself noted in green type is where the email address goes?