Application.IsSandboxed (Word)
True if the application window is a Protected View window.
Use the IsSandboxed property to determine if a document is open within a Protected View window.
Sub CheckIfSandboxed(doc As Document)
MsgBox doc.Application.IsSandboxed
End Sub