Excel to Lock Windows User Account?

  • Thread starter Thread starter Shaka215
  • Start date Start date
S

Shaka215

Hello,

I am in need of getting Excel to lock the current windows account
so as the end user is required to type in their user name and password
to regain access to windows. The desired result can not be achived by
SendKeys for whatever reason. I need Excel to do the following...

Press the Windows Key and L at the same time...

any ideas?

Thanks!
 
Declare Function LockWorkStation Lib "user32.dll" () As Long

Sub a()
LockWorkStation
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top