Getting Windows user (Account) from a VBA routine
I want to provide an audit trail of who did what and when for a shared Excel application. The "Application.Username"
returns an Id that can easily be forged (Tools Options etc.). I've been looking for a way to retrieve the userid (account)
used to log on to the operating system (Windows) but so far i didn't found anything in my documentation or on the Web.
Does anybody knows a solution ? Thanks
|