You can't do it directly from a formula -- you need VBA code. User
Function UserName() As String
UserName = Environ("UserName")
End Function
Then, call that function from a worksheet cell:
=UserName()
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
On Wed, 12 Nov 2008 05:00:02 -0800, Sirigeri Goutam Shetty <Sirigeri
Goutam
wrote:
I'm trying to retrieve windows user name or log in name on a excel sheet with
certain commands. But i'm not sure if excel supports this feature.
Currently i'm using MS Office 2003 and WindowsXP professional edition.