Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Petu
 
Posts: n/a
Default Function that gives Windows current user name?

I need to know current Windows user name and update it to Excel sheet by
function?
  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi

This needs a little VBA. In Win NT / Win 2000 / Win XP it's simply

Function CurrentUser() As String
CurrentUser = Environ("username")
End Function

Win 9x requires some windows programming. Post back if that's needed.

HTH. Best wishes Harald

"Petu" skrev i melding
...
I need to know current Windows user name and update it to Excel sheet by
function?



  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
in VBA use:
msgbox environ("username")


"Petu" wrote:

I need to know current Windows user name and update it to Excel sheet by
function?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date issue between Windows and Macintosh version dlg1967 Excel Discussion (Misc queries) 4 January 19th 05 03:51 PM
spreadsheet function Excel GuRu Excel Discussion (Misc queries) 2 January 6th 05 04:09 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
Windows ME and Windows XP Function of key F2 is different jimnav Excel Worksheet Functions 2 November 21st 04 07:05 PM
how to move user defined function Grant Excel Worksheet Functions 1 November 17th 04 06:38 PM


All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"