Application.IsSandboxed (PowerPoint)
Returns True if the specified presentation is open in a Protected View window.
Use the IsSandboxed property to determine whether a presentation is open in a Protected View window.
Dim booIsSandboxed As Boolean
booIsSandboxed = IsSandboxed