Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am in need of some function or macro to populate a column in an excel
spreadsheet for existing rows with the user's network login id. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Add this code to a standard module in your project. You can then just add the
formula =loginid() to the cell that you want to display the user name... public function LoginId() as string application.volatile LoginID = Environ("UserName") end function -- HTH... Jim Thomlinson "Kalpana_Kar" wrote: I am in need of some function or macro to populate a column in an excel spreadsheet for existing rows with the user's network login id. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() environ("USERNAME") -- tony h ------------------------------------------------------------------------ tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074 View this thread: http://www.excelforum.com/showthread...hreadid=527842 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Log UserID | Excel Programming | |||
DSN UserId and Password Prompt | Excel Programming | |||
DSN UserId and Password Prompt | Excel Programming | |||
FileSystemObject CopyFile with UserID/Password | Excel Programming | |||
Looking for Excel function to resolve userid to fullname. | Excel Programming |