Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default computer name find

I run code on two different computers with two different printer
arrangments. I want to print using the code but need to have the code
ascertain which computer it is running on first. I thought there may be
some code to do this by finding the IP Address or the computer name for
instance.

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default computer name find

Hi Craig,

Try:

MsgBox Environ("ComputerName")

---
Regards,
Norman



"Craig Wilks" wrote in message
...
I run code on two different computers with two different printer
arrangments. I want to print using the code but need to have the code
ascertain which computer it is running on first. I thought there may be
some code to do this by finding the IP Address or the computer name for
instance.

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default computer name find

"Computer Name" does not seem to ring any bells for VB.

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default computer name find

Hi Craig,

"Computer Name"


should be:

"ComputerName"

(without the space), as in my post.


---
Regards,
Norman



"Craig Wilks" wrote in message
...
"Computer Name" does not seem to ring any bells for VB.

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default computer name find


Hi Craig,
Here is a way for getting IP address.
http://puremis.net/excel/code/079.shtm

--
Col

-----------------------------------------------------------------------
Colo's Profile: http://www.excelforum.com/member.php...nfo&userid=322
View this thread: http://www.excelforum.com/showthread.php?threadid=26668



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
I cant find VLOOKUP on my French computer ? ExcelQuestion Excel Worksheet Functions 2 September 9th 06 01:52 PM
how do i find out the history i the excel on my computer? miumiu Excel Discussion (Misc queries) 0 June 13th 06 07:34 AM
I don't find the csv file in my computer renate Excel Discussion (Misc queries) 5 May 11th 06 09:37 PM
Autocomplete works with my home computer but not the office computer Andy Excel Discussion (Misc queries) 4 December 11th 04 07:21 PM
_How could I get the code to find out the resolution that user has in the computer U. Kõrsmaa Excel Programming 2 July 17th 03 10:00 AM


All times are GMT +1. The time now is 06:35 AM.

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"