返回操作系统名称。只读。String 类型。
本示例检测 OperatingSystem 属性的值以确定 PowerPoint 是否运行在 32 位版本的 Microsoft Windows 中。
os = Application.OperatingSystem If InStr(os, "Windows (32-bit)") <> 0 Then MsgBox "Running a 32-bit version of Microsoft Windows" End If