PC Review


Reply
Thread Tools Rate Thread

how do i get system id to a excel sheet

 
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      16th Jun 2007
i got a workbook. i need the system id to display in a cell on a work sheet.
i am doing vb programing
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      16th Jun 2007
Not sure what perameter you are looking for. Below ae some of the system
parameters for Windows XP. Are you looking for the username ?

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Joel\Application Data
CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=JOELSCOMPOUTER
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Joel
LOGONSERVER=\\JOELSCOMPOUTER
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
Files\QuickTime\QTSystem\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0209
ProgramFiles=C:\Program Files
PROMPT=$P$G
QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
TMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
USERDOMAIN=JOELSCOMPOUTER
USERNAME=Joel
USERPROFILE=C:\Documents and Settings\Joel
windir=C:\WINDOWS


"pswanie" wrote:

> i got a workbook. i need the system id to display in a cell on a work sheet.
> i am doing vb programing

 
Reply With Quote
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      16th Jun 2007
what would the text that i enter in the cell need to look like?

my user account name on the one computer are 'pswanie' and the other
computer are 'janphi'.

if i open and print the sheet on 'pswanie' i want the cell b2 to say
'pswanie' and if i open and print the sheet (wich is saved on separat on each
machin) on 'janphi' i want b2 to say 'janphi'


"Joel" wrote:

> Not sure what perameter you are looking for. Below ae some of the system
> parameters for Windows XP. Are you looking for the username ?
>
> ALLUSERSPROFILE=C:\Documents and Settings\All Users
> APPDATA=C:\Documents and Settings\Joel\Application Data
> CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
> CLIENTNAME=Console
> CommonProgramFiles=C:\Program Files\Common Files
> COMPUTERNAME=JOELSCOMPOUTER
> ComSpec=C:\WINDOWS\system32\cmd.exe
> FP_NO_HOST_CHECK=NO
> HOMEDRIVE=C:
> HOMEPATH=\Documents and Settings\Joel
> LOGONSERVER=\\JOELSCOMPOUTER
> NUMBER_OF_PROCESSORS=1
> OS=Windows_NT
> Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
> Files\QuickTime\QTSystem\
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
> PROCESSOR_LEVEL=15
> PROCESSOR_REVISION=0209
> ProgramFiles=C:\Program Files
> PROMPT=$P$G
> QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip
> SESSIONNAME=Console
> SystemDrive=C:
> SystemRoot=C:\WINDOWS
> TEMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
> TMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
> USERDOMAIN=JOELSCOMPOUTER
> USERNAME=Joel
> USERPROFILE=C:\Documents and Settings\Joel
> windir=C:\WINDOWS
>
>
> "pswanie" wrote:
>
> > i got a workbook. i need the system id to display in a cell on a work sheet.
> > i am doing vb programing

 
Reply With Quote
 
=?Utf-8?B?bWFyaw==?=
Guest
Posts: n/a
 
      16th Jun 2007
Put the following in a module:
Function UserName() As String
UserName = Environ("UserName")
End Function

then in B2:
=UserMame()

Mark

"pswanie" wrote:

> what would the text that i enter in the cell need to look like?
>
> my user account name on the one computer are 'pswanie' and the other
> computer are 'janphi'.
>
> if i open and print the sheet on 'pswanie' i want the cell b2 to say
> 'pswanie' and if i open and print the sheet (wich is saved on separat on each
> machin) on 'janphi' i want b2 to say 'janphi'
>
>
> "Joel" wrote:
>
> > Not sure what perameter you are looking for. Below ae some of the system
> > parameters for Windows XP. Are you looking for the username ?
> >
> > ALLUSERSPROFILE=C:\Documents and Settings\All Users
> > APPDATA=C:\Documents and Settings\Joel\Application Data
> > CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
> > CLIENTNAME=Console
> > CommonProgramFiles=C:\Program Files\Common Files
> > COMPUTERNAME=JOELSCOMPOUTER
> > ComSpec=C:\WINDOWS\system32\cmd.exe
> > FP_NO_HOST_CHECK=NO
> > HOMEDRIVE=C:
> > HOMEPATH=\Documents and Settings\Joel
> > LOGONSERVER=\\JOELSCOMPOUTER
> > NUMBER_OF_PROCESSORS=1
> > OS=Windows_NT
> > Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
> > Files\QuickTime\QTSystem\
> > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> > PROCESSOR_ARCHITECTURE=x86
> > PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
> > PROCESSOR_LEVEL=15
> > PROCESSOR_REVISION=0209
> > ProgramFiles=C:\Program Files
> > PROMPT=$P$G
> > QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip
> > SESSIONNAME=Console
> > SystemDrive=C:
> > SystemRoot=C:\WINDOWS
> > TEMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
> > TMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
> > USERDOMAIN=JOELSCOMPOUTER
> > USERNAME=Joel
> > USERPROFILE=C:\Documents and Settings\Joel
> > windir=C:\WINDOWS
> >
> >
> > "pswanie" wrote:
> >
> > > i got a workbook. i need the system id to display in a cell on a work sheet.
> > > i am doing vb programing

 
Reply With Quote
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      17th Jun 2007
do appreciate!! that worked...
thanx mark

"mark" wrote:

> Put the following in a module:
> Function UserName() As String
> UserName = Environ("UserName")
> End Function
>
> then in B2:
> =UserMame()
>
> Mark
>
> "pswanie" wrote:
>
> > what would the text that i enter in the cell need to look like?
> >
> > my user account name on the one computer are 'pswanie' and the other
> > computer are 'janphi'.
> >
> > if i open and print the sheet on 'pswanie' i want the cell b2 to say
> > 'pswanie' and if i open and print the sheet (wich is saved on separat on each
> > machin) on 'janphi' i want b2 to say 'janphi'
> >
> >
> > "Joel" wrote:
> >
> > > Not sure what perameter you are looking for. Below ae some of the system
> > > parameters for Windows XP. Are you looking for the username ?
> > >
> > > ALLUSERSPROFILE=C:\Documents and Settings\All Users
> > > APPDATA=C:\Documents and Settings\Joel\Application Data
> > > CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
> > > CLIENTNAME=Console
> > > CommonProgramFiles=C:\Program Files\Common Files
> > > COMPUTERNAME=JOELSCOMPOUTER
> > > ComSpec=C:\WINDOWS\system32\cmd.exe
> > > FP_NO_HOST_CHECK=NO
> > > HOMEDRIVE=C:
> > > HOMEPATH=\Documents and Settings\Joel
> > > LOGONSERVER=\\JOELSCOMPOUTER
> > > NUMBER_OF_PROCESSORS=1
> > > OS=Windows_NT
> > > Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
> > > Files\QuickTime\QTSystem\
> > > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> > > PROCESSOR_ARCHITECTURE=x86
> > > PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
> > > PROCESSOR_LEVEL=15
> > > PROCESSOR_REVISION=0209
> > > ProgramFiles=C:\Program Files
> > > PROMPT=$P$G
> > > QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip
> > > SESSIONNAME=Console
> > > SystemDrive=C:
> > > SystemRoot=C:\WINDOWS
> > > TEMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
> > > TMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
> > > USERDOMAIN=JOELSCOMPOUTER
> > > USERNAME=Joel
> > > USERPROFILE=C:\Documents and Settings\Joel
> > > windir=C:\WINDOWS
> > >
> > >
> > > "pswanie" wrote:
> > >
> > > > i got a workbook. i need the system id to display in a cell on a work sheet.
> > > > i am doing vb programing

 
Reply With Quote
 
Peter
Guest
Posts: n/a
 
      17th Jun 2007
Have you tried J-Walk's function for username and comptername ?
If not, here it is:

http://j-walk.com/ss/excel/tips/tip94.htm

They use API calls. I encorporate them into just about any stand-alone
application.

"pswanie" <(E-Mail Removed)> schreef in bericht
news:C3B29E41-A62A-4272-A493-(E-Mail Removed)...
> do appreciate!! that worked...
> thanx mark
>
> "mark" wrote:
>
>> Put the following in a module:
>> Function UserName() As String
>> UserName = Environ("UserName")
>> End Function
>>
>> then in B2:
>> =UserMame()
>>
>> Mark
>>
>> "pswanie" wrote:
>>
>> > what would the text that i enter in the cell need to look like?
>> >
>> > my user account name on the one computer are 'pswanie' and the other
>> > computer are 'janphi'.
>> >
>> > if i open and print the sheet on 'pswanie' i want the cell b2 to say
>> > 'pswanie' and if i open and print the sheet (wich is saved on separat
>> > on each
>> > machin) on 'janphi' i want b2 to say 'janphi'
>> >
>> >
>> > "Joel" wrote:
>> >
>> > > Not sure what perameter you are looking for. Below ae some of the
>> > > system
>> > > parameters for Windows XP. Are you looking for the username ?
>> > >
>> > > ALLUSERSPROFILE=C:\Documents and Settings\All Users
>> > > APPDATA=C:\Documents and Settings\Joel\Application Data
>> > > CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
>> > > CLIENTNAME=Console
>> > > CommonProgramFiles=C:\Program Files\Common Files
>> > > COMPUTERNAME=JOELSCOMPOUTER
>> > > ComSpec=C:\WINDOWS\system32\cmd.exe
>> > > FP_NO_HOST_CHECK=NO
>> > > HOMEDRIVE=C:
>> > > HOMEPATH=\Documents and Settings\Joel
>> > > LOGONSERVER=\\JOELSCOMPOUTER
>> > > NUMBER_OF_PROCESSORS=1
>> > > OS=Windows_NT
>> > > Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
>> > > Files\QuickTime\QTSystem\
>> > > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>> > > PROCESSOR_ARCHITECTURE=x86
>> > > PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
>> > > PROCESSOR_LEVEL=15
>> > > PROCESSOR_REVISION=0209
>> > > ProgramFiles=C:\Program Files
>> > > PROMPT=$P$G
>> > > QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip
>> > > SESSIONNAME=Console
>> > > SystemDrive=C:
>> > > SystemRoot=C:\WINDOWS
>> > > TEMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
>> > > TMP=C:\DOCUME~1\Joel\LOCALS~1\Temp
>> > > USERDOMAIN=JOELSCOMPOUTER
>> > > USERNAME=Joel
>> > > USERPROFILE=C:\Documents and Settings\Joel
>> > > windir=C:\WINDOWS
>> > >
>> > >
>> > > "pswanie" wrote:
>> > >
>> > > > i got a workbook. i need the system id to display in a cell on a
>> > > > work sheet.
>> > > > i am doing vb programing


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel sheet bootom half sheet goes behind top part of sheet rob Microsoft Excel Worksheet Functions 2 17th Jan 2009 01:28 AM
Macro Import Excel Sheet into Excel Sheet =?Utf-8?B?UGF1bCBEZW5uaXM=?= Microsoft Excel Programming 3 12th Aug 2007 08:46 PM
need mail merge system for excel spread sheet =?Utf-8?B?VkVHQVM=?= Microsoft Excel Worksheet Functions 3 9th Apr 2007 11:46 PM
Loading data of a excel sheet or excel sheet format in Rich TextBox Control natrajsr@gmail.com Microsoft C# .NET 3 11th Sep 2006 07:23 PM
Can't display excel sheet within Word (EMBED Excel.Sheet.8) =?Utf-8?B?SFIgRHV2YWxs?= Microsoft Word Document Management 2 16th Feb 2005 10:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 PM.