OperatingSystem Property [Excel 2007 Developer Reference]

Switch View :
ScriptFree
Application.OperatingSystem Property
Returns the name and version number of the current operating system — for example, "Windows (32-bit) 4.00" or "Macintosh 7.00". Read-only String.

Syntax

expression.OperatingSystem

expression   A variable that represents an Application object.

Example

This example displays the name of the operating system.

Visual Basic for Applications
MsgBox "Microsoft Excel is using " & Application.OperatingSystem