Using macro for UserID reading in Excel ( need help )

Boeypc
06-12-2008, 03:21 AM
Set myshell = CreateObject("WScript.Shell")
ItsMe = myshell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName")
Set myshell = Nothing

This program doesn't run. ( it's for reading User ID )
correct me if i am wrong , pls :)

Timbo
06-12-2008, 03:31 AM
This program doesn't run.
Could you try to be a little more descriptive please? :rolleyes:

nayasoe
06-15-2008, 10:25 PM
I got that problem.
Can anybody show me . how to track UserID using excel macro when the user is viewing on that excel file...
:)

Cas
06-15-2008, 10:48 PM
I'm not sure I know what you mean by "User ID"... there are quite a few names associated with an opened Excel document: There's the "Author" field in document properties, the user name you can set in the Options dialog, the name under which Office is registered, the current windows username, etc.

spacey123
06-19-2008, 12:55 AM
Is
msgbox environ("username")
any use?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum