Send Email When Excel File Gets Unprotected (1 Viewer)

BowDan

New member
Local time
Today, 06:34
Joined
Jun 22, 2023
Messages
13
Hello Everyone,

Is there any way to send an email by vb script when Excel file gets unprotected? If there is, can you provide me the code as well? I need this for one of my review courses.

Thanks in advance for your suggestions.

Best Regards.
 

Gasman

Enthusiastic Amateur
Local time
Today, 01:34
Joined
Sep 21, 2011
Messages
14,317
Not when it actually happens, I would have thought? Always happy to be proved wrong though.
I would expect you would need to run some code on a timer to check the state of the file?

In VBA you could have some code in the workbook.
A quick Google reveals

Another Google or a quick search here would also give code on how to send an email from VBA.
 

Users who are viewing this thread

Top Bottom