Inserting User Name into a cell

  • Thread starter Thread starter Trish
  • Start date Start date
T

Trish

I am setting up a tracking form, which will be accessed by
all staff members. If possible I would like the next cell
(log number) to recognise the computer user name. Can
anyone help please :-)
 
You need VBA. Create a sub with this code

Sub UserName()
ACtivecell.Offset(0,1).Value = Environ("username")
End Sub

and run it from the original cell.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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