PC Review


Reply
Thread Tools Rate Thread

Application.UserName

 
 
kalle
Guest
Posts: n/a
 
      3rd Apr 2010


Hi

I have an workbook that is used by many people and som of them hav
access to more functions.

Therefore I use Application.UserName to who is loged on.

If my real name is Carl Something I log on with abcaso but when I use
Application.UserName I get "Carl Something" but I want "abcaso"

Is it possible to get the name?

Thanks in advance

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      3rd Apr 2010
Use

LoggedOnUser = Environ("Username")

--

HTH

Bob

"kalle" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> Hi
>
> I have an workbook that is used by many people and som of them hav
> access to more functions.
>
> Therefore I use Application.UserName to who is loged on.
>
> If my real name is Carl Something I log on with abcaso but when I use
> Application.UserName I get "Carl Something" but I want "abcaso"
>
> Is it possible to get the name?
>
> Thanks in advance
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      3rd Apr 2010
Hi,

Is this what your looking for

MsgBox Environ("UserName")


--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"kalle" wrote:

>
>
> Hi
>
> I have an workbook that is used by many people and som of them hav
> access to more functions.
>
> Therefore I use Application.UserName to who is loged on.
>
> If my real name is Carl Something I log on with abcaso but when I use
> Application.UserName I get "Carl Something" but I want "abcaso"
>
> Is it possible to get the name?
>
> Thanks in advance
>
> *** Sent via Developersdex http://www.developersdex.com ***
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
environ username vs. application username jatman Microsoft Excel Programming 4 28th May 2009 08:40 AM
RE: Application.UserName Question =?Utf-8?B?U2VhbiBUaW1tb25z?= Microsoft Excel Misc 1 8th Jan 2007 04:53 PM
Re: Application.UserName Question Bob Phillips Microsoft Excel Misc 0 8th Jan 2007 04:43 PM
Username in smartdevice application =?Utf-8?B?S29tYW5kdXIgS2FubmFu?= Microsoft Dot NET 3 20th Jul 2005 12:11 PM
application.username Donald Stockton Microsoft Excel Programming 7 27th Feb 2004 07:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.