ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel to Lock Windows User Account? (https://www.excelbanter.com/excel-programming/389684-excel-lock-windows-user-account.html)

[email protected]

Excel to Lock Windows User Account?
 
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!


Jim Rech

Excel to Lock Windows User Account?
 
Declare Function LockWorkStation Lib "user32.dll" () As Long

Sub a()
LockWorkStation
End Sub

--
Jim
wrote in message
ups.com...
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!





All times are GMT +1. The time now is 04:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com