expression.OperatingSystem
expression Required. An expression that returns a System object.
Example
This example displays a message that includes the name of the current operating system.
MsgBox "This computer is running " & System.OperatingSystem