LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Need Excel Macro

I don't know if the USERNAME on the local PC is the same name you are looking
for. Can get user ID with this code

UserName = Environ("USERNAME")
MsgBox (UserName)

It sounds like the same user will have a different UserName on different
machines? It seems that you need to look up the persons name to get the ID.


Is your data like this

Server1 Jdoe
Server1 mSmith
server2 badam
server2 cdown
Server2 mSmith


And you want the results like this

jDoe Server1
mSmith Server1 Server2
badam Server2
cdown Server2

"Anuj" wrote:

it should be designed in a way that we populate the list of machines in
column A, and if we run the macro user id gets displayed in column B.

not sure from where the user id will come, may be through some command, not
sure.

"Joel" wrote:

Need more description of your data. Details f wher the User Login comes from
and wehre the list of machines comes from.

"Anuj" wrote:

I Need a excel macro through which we check the users login on a list of
machines.
If we run a macro the script find the corresponding user of the machines
from one column, and writes the Login Id in the next column.
Any help please, not sure if this is the right group.


 
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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Call macro stored in Excel workbook from Outlook's macro Gvaram Excel Programming 0 October 4th 06 05:47 PM
Need syntax for RUNning a Word macro with an argument, called from an Excel macro Steve[_84_] Excel Programming 3 July 6th 06 07:42 PM
translate lotus 1-2-3 macro into excel macro using excel 2000 krutledge0209 Excel Programming 1 November 2nd 04 05:50 PM
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM


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