Thread: Obtain User ID
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Obtain User ID

Use

Environ("Username")

This returns the Windows user name.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Thu, 26 Mar 2009 11:24:01 -0700, AL
wrote:

Using Visual Basic in Excel, how do I obtain the user ID of the user opening
the file?