Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default How to find Windows login name with code?

Dear all,

In my macro i want to get the login name.

For example, when i make a record macro, it writes "this macro was created
by superduck which is my login name on windows.

But i don't know how to do this with code :(

Regards,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default How to find Windows login name with code?

SupperDuck wrote:
Dear all,

In my macro i want to get the login name.

For example, when i make a record macro, it writes "this macro was
created by superduck which is my login name on windows.

But i don't know how to do this with code :(

Regards,


Well here's a strange thing. I just went to a search engine that you may
have heard of called Google and typed in:
vba windows login name
And the very top result returned was:
Function to return various Environment Names | Excelguru.ca The formula can
also be called in VBA in the same manner. For example:; msgbox
getname("windows") or msgbox getname(2) will return the Windows login name
....
excelguru.ca/node/2 - 32k - Cached - Similar pages


If you haven't heard of Google I suggest that you take a look, it tends to
be able to find lots of useful things like this in seconds.


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
VBA Code to Login to Excel Gimp Excel Discussion (Misc queries) 1 February 16th 07 05:38 PM
Excel and Windows Login ID problem... Tad Anglin Setting up and Configuration of Excel 2 January 11th 07 02:18 PM
Inserting windows login name to a new column? Niraj Manglam New Users to Excel 4 June 8th 06 12:08 PM
Determining User's Windows Login Name Chaplain Doug Excel Programming 3 April 19th 06 10:04 PM
Windows Login Password john.petty Excel Programming 1 September 15th 03 11:22 PM


All times are GMT +1. The time now is 11:01 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"