Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match then lookup | Excel Worksheet Functions | |||
leading zeros are not showing in the formula bar but do show in ce | Excel Discussion (Misc queries) | |||
formula to show 97.826 as 97.825 | Excel Discussion (Misc queries) | |||
My formula will not show the result, only the formula. | Excel Worksheet Functions | |||
I want the results of a formula to show in cell, NOT THE FORMULA! | Excel Discussion (Misc queries) |