View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jacques Brun Jacques Brun is offline
external usenet poster
 
Posts: 7
Default 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