Z
Zander
Hi
I've created a bat file to be send to a certain user. I used VB to send the bat file, but I want the message to be send automatically when their are any changes made to the Excel file. I've tried to use an IF function, but didn't get right.
Function Message()
Range("A4").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
Range("A3").Select
Dim RetVal
RetVal = Shell("H:\Commands\ADR.bat", 1) ' Run bat
End Function
Thanks
Zander
I've created a bat file to be send to a certain user. I used VB to send the bat file, but I want the message to be send automatically when their are any changes made to the Excel file. I've tried to use an IF function, but didn't get right.
Function Message()
Range("A4").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
Range("A3").Select
Dim RetVal
RetVal = Shell("H:\Commands\ADR.bat", 1) ' Run bat
End Function
Thanks
Zander