Application.usermane

  • Thread starter Thread starter lanser
  • Start date Start date
L

lanser

I would like to be able to add the user name to a cell in a spreadshee
using Application.UserName can anyone help please
 
Range("A1") = Application.Username

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
lanser, you've identified the correct object. It really comes down to
how you want to use it? If you want it in a function:

Function AppInfo(AppInfoType As Integer)
If AppInfoType = 1 Then
AppInfo = Application.UserName
Else
AppInfo = "Enter Info Type"
End If
End Function


In a worksheet if you type ---> "=AppInfo(1)"
the result will be the user name

If you want it to be programmatic, then just stick that just assign
application.username to a variable and do what you will with that
variable. I might have misunderstood. Hope that helps.
 

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

Similar Threads

Shapes in 2010 1
Application.UserName 2
UserName Property 12
Author's Name 4
Unlocking Project When Condition is Met 2
locate add-in 5
Creating a path to save a file 5
Unique Computer ID 0

Back
Top