Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the name of the current operating system (for example, "Windows" or "Windows Server"). 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.
MsgBox "This computer is running " & System.OperatingSystem
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.