Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
WDR WDR is offline
external usenet poster
 
Posts: 6
Default How do I determine OS (98 or XP)?

Using VBA...
1) How do I determine which operation system (98 or XP) is running on he
computer?
2) For the XP op sys, how do I determine which user is logged into the
computer?

I am using Excel 2000.

Thanks in Advance,
-Warren
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default How do I determine OS (98 or XP)?

you can try these

Sub test()
Range("a1") = Environ("os")
Range("a2") = Environ("UserName")
End Sub


--


Gary


"WDR" wrote in message
...
Using VBA...
1) How do I determine which operation system (98 or XP) is running on he
computer?
2) For the XP op sys, how do I determine which user is logged into the
computer?

I am using Excel 2000.

Thanks in Advance,
-Warren



  #3   Report Post  
Posted to microsoft.public.excel.programming
N10 N10 is offline
external usenet poster
 
Posts: 141
Default How do I determine OS (98 or XP)?

You could add

Range("a3") = Application.OperatingSystem

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
you can try these

Sub test()
Range("a1") = Environ("os")
Range("a2") = Environ("UserName")
End Sub


--


Gary


"WDR" wrote in message
...
Using VBA...
1) How do I determine which operation system (98 or XP) is running on he
computer?
2) For the XP op sys, how do I determine which user is logged into the
computer?

I am using Excel 2000.

Thanks in Advance,
-Warren





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
How to determine the value? Eric Excel Discussion (Misc queries) 1 August 4th 10 04:54 AM
How to determine the value? Eric Excel Discussion (Misc queries) 1 November 7th 08 06:52 AM
How to determine the value? Eric Excel Discussion (Misc queries) 2 March 7th 08 12:55 AM
How to determine the value? Eric Excel Worksheet Functions 1 January 20th 08 01:48 AM
How to Determine 1st, 2nd & 3rd for a PWD Pete n PWD Land Excel Discussion (Misc queries) 3 February 17th 05 09:25 PM


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