How can I get network userid in a cell in excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top