OperatingSystem Property
From Microsoft Excel Visual Basic
Returns the name and version number of the current operating system
Example
This example displays the name of the operating system.
MsgBox "Microsoft Excel is using " & Application.OperatingSystem