Computer lock time

  • Thread starter Thread starter Kashyap
  • Start date Start date
Within excel there is no event to track this; but you can probably lock your
computer from VBA using

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "rundll32 user32.dll,LockWorkStation"
 
Back
Top