How do I determine OS (98 or XP)?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
you can try these

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top