pbsl-it
asked on
Authenticate windows login password using VBA
I am writing an application using VBA in Excel and would like to have the user enter their windows password in an inputbox and then have the application check the password is correct against their actual windows login password. Is this possible?
(This doesn't answer your question, but...) Just a thought.. if you're running VBA, wouldn't that imply that the user has successfully passed the Windows password login, if the Windows password is set?
Yes, it's possible, but you must use some NETAPIs. So you will need to build an Activex DLL for it before you can use those APIs in VBA.
Here is a sample:
https://www.experts-exchange.com/questions/20430176/StrPtr-Problem.html
Regards,
Jungle
Here is a sample:
https://www.experts-exchange.com/questions/20430176/StrPtr-Problem.html
Regards,
Jungle
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the help. Using "NetUserChangePassword" will be sufficient for what I need.
Cheers
Barry
Cheers
Barry