Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nkoichev
 
Posts: n/a
Default Formula to show PC name, or IP, or personal windows ID


Is it posible some formula to show PC name, or IP, or personal windows
ID?
...or some computer characteristic that is different on every computer.


--
nkoichev
------------------------------------------------------------------------
nkoichev's Profile: http://www.excelforum.com/member.php...o&userid=30926
View this thread: http://www.excelforum.com/showthread...hreadid=506014

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Formula to show PC name, or IP, or personal windows ID

environ("ComputerName")

environ("UserName")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"nkoichev" wrote in
message ...

Is it posible some formula to show PC name, or IP, or personal windows
ID?
..or some computer characteristic that is different on every computer.


--
nkoichev
------------------------------------------------------------------------
nkoichev's Profile:

http://www.excelforum.com/member.php...o&userid=30926
View this thread: http://www.excelforum.com/showthread...hreadid=506014



  #3   Report Post  
Posted to microsoft.public.excel.misc
paul
 
Posts: n/a
Default Formula to show PC name, or IP, or personal windows ID

the cell or info functions may reveal something you can use to identify a
certain user/computer.I have asked users to input or choose a name to
identify themselves/computer/printer
--
paul
remove nospam for email addy!



"Bob Phillips" wrote:printer
environ("ComputerName")

environ("UserName")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"nkoichev" wrote in
message ...

Is it posible some formula to show PC name, or IP, or personal windows
ID?
..or some computer characteristic that is different on every computer.


--
nkoichev
------------------------------------------------------------------------
nkoichev's Profile:

http://www.excelforum.com/member.php...o&userid=30926
View this thread: http://www.excelforum.com/showthread...hreadid=506014




  #4   Report Post  
Posted to microsoft.public.excel.misc
nkoichev
 
Posts: n/a
Default Formula to show PC name, or IP, or personal windows ID


There's no such a formulas in excel like "=environ("ComputerName")

=environ("UserName")" !?

The result is "#NAME?"!


--
nkoichev
------------------------------------------------------------------------
nkoichev's Profile: http://www.excelforum.com/member.php...o&userid=30926
View this thread: http://www.excelforum.com/showthread...hreadid=506014

  #5   Report Post  
Posted to microsoft.public.excel.misc
Steve Yandl
 
Posts: n/a
Default Formula to show PC name, or IP, or personal windows ID

It's part of VBA.

Create a macro like

Sub GetUserName()
MsgBox Environ("UserName")
End Sub

run and see what you get. Instead of creating a subroutine, you could write
a custom function and the variables would be available the same as standard
Excel functions.

Steve

"nkoichev" wrote in
message ...

There's no such a formulas in excel like "=environ("ComputerName")

=environ("UserName")" !?

The result is "#NAME?"!


--
nkoichev
------------------------------------------------------------------------
nkoichev's Profile:
http://www.excelforum.com/member.php...o&userid=30926
View this thread: http://www.excelforum.com/showthread...hreadid=506014





  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Formula to show PC name, or IP, or personal windows ID

If you want it in a worksheet, create a UDF

Function attr(choice as string)
select case lower(choice)
case "computer": attr = Environ("Computername")
case "user": attr = Environ("UserName"
end select
End Function

and use like

=attr("User")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"nkoichev" wrote in
message ...

There's no such a formulas in excel like "=environ("ComputerName")

=environ("UserName")" !?

The result is "#NAME?"!


--
nkoichev
------------------------------------------------------------------------
nkoichev's Profile:

http://www.excelforum.com/member.php...o&userid=30926
View this thread: http://www.excelforum.com/showthread...hreadid=506014



  #7   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default Formula to show PC name, or IP, or personal windows ID

Belongs in VBA
missed the other replies, but there are still a couple of items
that were not mentioned.

install the following user defined function, if you need instructions see
http://www.mvps.org/dmcritchie/excel/getstarted.htm

function udf_ComputerName()
udf_computername = environ("ComputerName")
end function

=udf()
=personal.xls!udf()

More information on
http://www.mvps.org/dmcritchie/excel/property.htm

You can test in Intermediate (Ctrl+G) window of the VBE

msgbox environ("computername")

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"nkoichev" wrote in message
...

There's no such a formulas in excel like "=environ("ComputerName")

=environ("UserName")" !?

The result is "#NAME?"!


--
nkoichev
------------------------------------------------------------------------
nkoichev's Profile: http://www.excelforum.com/member.php...o&userid=30926
View this thread: http://www.excelforum.com/showthread...hreadid=506014




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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
leading zeros are not showing in the formula bar but do show in ce Debbie Excel Discussion (Misc queries) 2 October 2nd 05 03:26 PM
formula to show 97.826 as 97.825 KevinBoyden Excel Discussion (Misc queries) 3 July 25th 05 03:30 PM
My formula will not show the result, only the formula. MeredithWSR Excel Worksheet Functions 3 March 22nd 05 06:32 PM
I want the results of a formula to show in cell, NOT THE FORMULA! ocbecky Excel Discussion (Misc queries) 4 December 10th 04 08:39 PM


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