Application.IsSandboxed Property (Word)
True if the application window is a protected view window. Read-only.
Version Information
Version Added: Word 2010
Syntax
expression .IsSandboxed
expression An expression that returns a Application object.
Remarks
Use the IsSandboxed property to determine if a document is open within a protected view window.
Example
The following code example displays whether the specified document is open in a protected view window.
Sub CheckIfSandboxed(doc As Document)
MsgBox doc.Application.IsSandboxed
End Sub