Can I automatically add user name to excel spreadsheet

  • Thread starter Thread starter LRL_in_KC
  • Start date Start date
L

LRL_in_KC

We have a template to create a form that I would like to have the users name
added to so I can tell who created the form
 
hi
you could have a macro return the user name
Sub usename()
MsgBox Environ("UserName")
'or
'[A1]=environ("UserName")
End Sub

or you could create a functions to retrun the user name
Public Function UseName()
UseName = Environ("UserName")
End Function

then use the formula on the sheet.....
=UseName()

regards
FSt1
 

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