Originally Posted by
DubCap01
I just want it to fire the Windows "Lock the Computer" option, so that the user has to enter their password to reopen the screen at another point in the form (the VBA code determines and executes that whilst the user is re-logging back on)
If that's the goal to accomplish, I suggest you to go the command line route to call the "lock function" as shown here.
The code in vba is as simple as:
Code:
Shell "rundll32.exe user32.dll, LockWorkStation"
Why to use Shell? Its much easier and more robust than using any variant of sending keystrokes.