Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mark,
Here's one way to do it: Private Declare Function GetComputerNameA Lib "kernel32" _ (ByVal lpBuffer As String, ByRef nSize As Long) As Long Sub GetMachineName() Dim lLength As Long Dim szNameBuffer As String lLength = 255 szNameBuffer = String$(lLength, vbNullChar) GetComputerNameA szNameBuffer, lLength MsgBox Left$(szNameBuffer, lLength) End Sub -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * "Mark Scholes" wrote in message ... Hi, I need to know the name of the machine that the spreadsheet is running on. So I can send the output to the local printer. Thanks MarkS |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Mark Scholes" wrote...
I need to know the name of the machine that the spreadsheet is running on. So I can send the output to the local printer. Sending output to the default printer won't work? -- To top-post is human, to bottom-post and snip is sublime. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Row Height variations from computer to computer on same workbook | Excel Discussion (Misc queries) | |||
Formulaed cell response varies from computer to computer | Excel Discussion (Misc queries) | |||
Display size difference- PC computer vs. Mac computer? | Excel Discussion (Misc queries) | |||
How do I copy all Excel files from old computer to new computer? | Excel Discussion (Misc queries) | |||
Autocomplete works with my home computer but not the office computer | Excel Discussion (Misc queries) |