Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Obtaining Username

Using a macro, how do I pull in the user's name, specifically, the last
character in the name?

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Obtaining Username

Dim myName as string
myname = application.username 'from the Tools|Options|General tab
msgbox right(myname,1)


WLMPilot wrote:

Using a macro, how do I pull in the user's name, specifically, the last
character in the name?

Thanks.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Obtaining Username

Right(Environ("UserName"),1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"WLMPilot" wrote in message
...
Using a macro, how do I pull in the user's name, specifically, the last
character in the name?

Thanks.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Obtaining min and max Ed Excel Programming 4 August 3rd 06 04:08 PM
Obtaining Checkbox Name RjS, CISSP Excel Programming 5 November 27th 05 12:32 AM
Obtaining Max and Min Values with Sumproduct Timmy Mac1 Excel Discussion (Misc queries) 2 October 20th 05 05:33 PM
Obtaining OS language Max Potters Excel Programming 3 December 31st 04 01:56 PM
obtaining the name of a button jmoffat[_4_] Excel Programming 2 December 2nd 03 02:57 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"