Compartilhar via


System.OperatingSystem Property

Word Developer Reference

Returns the name of the current operating system (for example, "Windows" or "Windows NT"). Read-only String.

Syntax

expression.OperatingSystem

expression   An expression that returns a System object.

Example

This example displays a message that includes the name of the current operating system.

Visual Basic for Applications
  MsgBox "This computer is running " & System.OperatingSystem

See Also