VBA TIPS
Find Windows version

Here are samples for getting Windows OS version. Since I'm using Windows2000, it returns Windows (32-bit) NT 5.00.

OS version return value
Windows XP Windows (32-bit) NT 5.01
Windows2000 Windows (32-bit) NT 5.00
Windows98 Windows (32-bit) 4.10
Windows95 Windows (32-bit) 4.00


Example

Place the following in a standard module.

Option Explicit


Sub Test1()
    MsgBox Application.Evaluate("INFO(""osversion"")")
End Sub


Sub Test2()
    MsgBox Application.OperatingSystem
End Sub



| HOME |
Copyright © cellmasters.net - colo's junk room All Right Reserved
ABOUT
WORKS
THE CELL MASTERS
CONTACT
LINKS
Tips and Information about Microsoft Excel|Masaru Kaji aka Colo